Skip to content

Commit

Permalink
add ability to disable supertab via a buffer local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ervandew committed May 22, 2011
1 parent 21cd55b commit 344016d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/supertab.vim
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@ endfunction " }}}
" previous entry in a completion list, and determines whether or not to simply
" retain the normal usage of <tab> based on the cursor position.
function! s:SuperTab(command)
if exists('b:SuperTabDisabled') && b:SuperTabDisabled
return "\<tab>"
endif

call s:InitBuffer()

if s:WillComplete()
Expand Down

0 comments on commit 344016d

Please sign in to comment.