]> git.mdlowis.com Git - archive/vim_config.git/commitdiff
Removed dead code
authorMike D. Lowis <mike@mdlowis.com>
Wed, 29 Feb 2012 20:45:50 +0000 (15:45 -0500)
committerMike D. Lowis <mike@mdlowis.com>
Wed, 29 Feb 2012 20:45:50 +0000 (15:45 -0500)
vimrc

diff --git a/vimrc b/vimrc
index 39844e6e61a4d7e6ce01f9367eb11e829fcc3f77..0f565f1c3c63977d53e4189f540989df04e94e3a 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -60,14 +60,12 @@ let g:BufsRight = "" " Buffers to the right of the current buffer
 "==============================================================================
 " Function and Command Definitions
 "==============================================================================
-set statusline=%-(%{g:BufsLeft}%#CurBuf#%{g:CurBuffer}%#SyntaxLine#%{g:BufsRight}%)%=[%l][%c][%P][%L]
-
-"set statusline=%(%{g:BufsLeft}
-"set statusline+=%#CurBuf#
-"set statusline+=%{g:CurBuffer}
-"set statusline+=%#SyntaxLine#
-"set statusline+=%{g:BufsRight}%)
-"set statusline+=%<%=[%l][%c][%P][%L]%<
+set statusline=%{g:BufsLeft}
+set statusline+=%#CurBuf#
+set statusline+=%{g:CurBuffer}
+set statusline+=%#SyntaxLine#
+set statusline+=%{g:BufsRight}
+set statusline+=%<%=[%l][%c][%P][%L]%<
 
 "==============================================================================
 " Function and Command Definitions
@@ -130,32 +128,6 @@ function! UpdateStatus()
     endif
 endfunction
 
-"function! UpdateStatus()
-"    let g:CurBuffer = '[' . bufnr('%') . ' ' . expand('%:t') . ((&modified) ? ' +]' : ']')
-"    let max_len = winwidth(0) - len(g:CurBuffer)
-"    let g:BufsLeft = ""
-"    let g:BufsRight = ""
-"    let i = bufnr('$')
-"
-"    while(i > 0)
-"        if buflisted(i) && getbufvar(i, "&modifiable") && i != bufnr('%')
-"            let bufName  =  '[' . i . ' ' . fnamemodify(bufname(i), ":t")
-"            let bufName .= (getbufvar(i, "&modified") ? ' +]' : ']' )
-"            if i < bufnr('%')
-"                let g:BufsLeft = bufName . g:BufsLeft
-"            else
-"                let g:BufsRight = bufName . g:BufsRight
-"            endif
-"        endif
-"        let i -= 1
-"    endwhile
-"
-"    if (len(g:BufsLeft) + len(g:CurBuffer)) > max_len
-"        let strstart = (len(g:BufsLeft) + len(g:CurBuffer)) - max_len
-"        let g:BufsLeft = '<' . strpart(g:BufsLeft, strstart, max_len)
-"    endif
-"endfunction
-
 " ---- ToFn - Converts a group of C function prototypes to definitions ----
 command! -range=% -nargs=0 ToFn execute "<line1>,<line2>s/;/\r{\r\r}\r/"