From 2d5ad299a5f7527f7a82148680024436faaa90b7 Mon Sep 17 00:00:00 2001 From: nojhan Date: Thu, 31 Jan 2013 21:52:22 +0100 Subject: [PATCH] remove homemade tab completion, use tagbar instead of taglist --- .vimrc | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.vimrc b/.vimrc index 174e57b..a7be273 100644 --- a/.vimrc +++ b/.vimrc @@ -162,25 +162,25 @@ au BufRead,BufNewFile *.mwiki setf Wikipedia au BufRead,BufNewFile *.wikipedia.org.* setf Wikipedia " autocomplétion with instead of , depending on the context -function! Smart_TabComplete() - let line = getline('.') " curline - let substr = strpart(line, -1, col('.')+1) " from start to cursor - let substr = matchstr(substr, "[^ \t]*$") " word till cursor - if (strlen(substr)==0) " nothing to match on empty string - return "\" - endif - let has_period = match(substr, '\.') != -1 " position of period, if any - let has_slash = match(substr, '\/') != -1 " position of slash, if any - if (!has_period && !has_slash) - return "\\" " existing text matching - elseif ( has_slash ) - return "\\" " file matching - else - return "\\" " plugin matching - endif -endfunction +" function! Smart_TabComplete() +" let line = getline('.') " curline +" let substr = strpart(line, -1, col('.')+1) " from start to cursor +" let substr = matchstr(substr, "[^ \t]*$") " word till cursor +" if (strlen(substr)==0) " nothing to match on empty string +" return "\" +" endif +" let has_period = match(substr, '\.') != -1 " position of period, if any +" let has_slash = match(substr, '\/') != -1 " position of slash, if any +" if (!has_period && !has_slash) +" return "\\" " existing text matching +" elseif ( has_slash ) +" return "\\" " file matching +" else +" return "\\" " plugin matching +" endif +" endfunction -inoremap =Smart_TabComplete() +" inoremap =Smart_TabComplete() " Append modeline after last line in buffer. @@ -215,7 +215,8 @@ imap :call MySpellLang() map TaskList " side pane of class and functions -map :TlistToggle +"map :TlistToggle +nmap :TagbarToggle " side pane of files map :NERDTreeToggle