[vim] remove WhatFunction in statusbar by default.

This function could cause auto scrolling on long line
This commit is contained in:
Mathieu Maret 2011-05-26 09:22:44 +02:00
parent 4f53be82f3
commit 0764a40230
1 changed files with 4 additions and 1 deletions

5
.vimrc
View File

@ -611,7 +611,10 @@ function! WhatFunction()
return ret
endfunction
set statusline=%<%f\ %h%w%m%r%3.(\ %)%{fugitive#statusline()}%=%([%{Tlist_Get_Tagname_By_Line()}%{WhatFunction()}]%)%3.(\ %)%-14.(%l,%c%V%)\ %P
set statusline=%<%f\ %h%w%m%r%3.(\ %)%{fugitive#statusline()}%=%([%{Tlist_Get_Tagname_By_Line()}]%)%3.(\ %)%-14.(%l,%c%V%)\ %P
" Use WhatFunction could create some problems with lines longer that the
" screen size. WhatFunction could be interesting for C++ function
" set statusline=%<%f\ %h%w%m%r%3.(\ %)%{fugitive#statusline()}%=%([%{Tlist_Get_Tagname_By_Line()}%{WhatFunction()}]%)%3.(\ %)%-14.(%l,%c%V%)\ %P
"""""""""""""""""""""""""""""""""""""""""""
" Language