CVS commit by mteijeiro: * If TagList is loaded, get a more funny statusline, showing the current function. * Note: Only works if kde-devel-vim.vim is loaded after taglist. Droping it in ~/.vim/plugin works fine. M +9 -1 kde-devel-vim.vim 1.37 --- kdesdk/scripts/kde-devel-vim.vim #1.36:1.37 @@ -30,4 +30,12 @@ set mp=makeobj +" If TagList is Loaded then get a funny statusline +" Only works if kde-devel-vim.vim is loaded after taglist. +" Droping this script in ~/.vim/plugin works fine +if exists('loaded_taglist') + let Tlist_Process_File_Always=1 + set statusline=%<%f:[\ %{Tlist_Get_Tag_Prototype_By_Line()}\ ]\ %h%m%r%=%-14.(%l,%c%V%)\ %P +endif + " Insert tab character in whitespace-only lines, complete otherwise inoremap =SmartTab() @@ -76,5 +84,5 @@ set incsearch -function SmartTab() +function! SmartTab() let col = col('.') - 1 if !col || getline('.')[col-1] !~ '\k'