From 0764a4023081acf26f2cbea48a8a70a5b12e1dfc Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Thu, 26 May 2011 09:22:44 +0200 Subject: [PATCH] [vim] remove WhatFunction in statusbar by default. This function could cause auto scrolling on long line --- .vimrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index ca58826..c4c2aac 100644 --- a/.vimrc +++ b/.vimrc @@ -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