Created
April 6, 2012 15:57
-
-
Save thegengen/2320989 to your computer and use it in GitHub Desktop.
use Tab instead of Enter for VIM's completion (including acp.vim)
This file contains hidden or 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
" put this in your .vimrc | |
inoremap <Tab> <C-R>=pumvisible() ? "\<lt>C-N>" : "\<lt>Tab>"<CR> | |
inoremap <CR> <C-R>=pumvisible() ? "\<lt>ESC>o" : "\<lt>CR>"<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment