[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdesdk/scripts
From:       Mario Teijeiro Otero <emeteo () escomposlinux ! org>
Date:       2005-04-22 8:50:23
Message-ID: 20050422085023.CAF6D663 () office ! kde ! org
[Download RAW message or body]

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 <Tab> <C-R>=SmartTab()<CR>
@@ -76,5 +84,5 @@
 set incsearch
 
-function SmartTab()
+function! SmartTab()
     let col = col('.') - 1
     if !col || getline('.')[col-1] !~ '\k'


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic