From 70b2282e8994bf77a3303ba91128d764e7640736 Mon Sep 17 00:00:00 2001 From: Sonny Date: Fri, 26 May 2017 21:26:07 +0200 Subject: [PATCH] Remove tab bind --- vim/.vimrc | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index d5d5d48..cd43237 100755 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -88,27 +88,6 @@ vnoremap y "+y vnoremap x "+x vnoremap c "+c -"Built-in completion -function! Smart_TabComplete() - let line = getline('.') " current line - let substr = strpart(line, -1, col('.')+1) " from the start of the current - " of the 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() - " Plugins " Nerdtree