Created
June 4, 2012 15:28
-
-
Save evilchili/2869051 to your computer and use it in GitHub Desktop.
sample .vimrc config for supertabcompletion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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