Skip to content

Instantly share code, notes, and snippets.

@evilchili
Created June 4, 2012 15:28
Show Gist options
  • Save evilchili/2869051 to your computer and use it in GitHub Desktop.
Save evilchili/2869051 to your computer and use it in GitHub Desktop.
sample .vimrc config for supertabcompletion
set ofu=syntaxcomplete#Complete
" remap completion to control+space
inoremap <expr> <C-Space> pumvisible() \|\| &omnifunc == '' ?
\ "\<lt>C-n>" :
\ "\<lt>C-x>\<lt>C-o><c-r>=pumvisible() ?" .
\ "\"\\<lt>c-n>\\<lt>c-p>\\<lt>c-n>\" :" .
\ "\" \\<lt>bs>\\<lt>C-n>\"\<CR>"
imap <C-@> <C-Space>
" use the tab key as the tab key
let g:SuperTabMappingTabLiteral = '<tab>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment