Skip to content

Instantly share code, notes, and snippets.

@ghillairet
Created March 11, 2014 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghillairet/9485386 to your computer and use it in GitHub Desktop.
Save ghillairet/9485386 to your computer and use it in GitHub Desktop.
let g:neocomplcache_disable_auto_complete = 1
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : <SID>check_back_space() ? "\<TAB>" : "\<C-x>\<C-u>"
function! s:check_back_space()"{{{
let col = col('.') - 1
return !col || getline('.')[col - 1] =~ '\s'
endfunction"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment