Permalink
Browse files

Make <c-e> map play well with autocorrect popup

  • Loading branch information...
1 parent 00af763 commit a2795473c4ab784e7dda6d09ddf22eaf7aca3232 @nelstrom committed Aug 28, 2011
Showing with 4 additions and 6 deletions.
  1. +1 −0 vim/spell/en.utf-8.add
  2. BIN vim/spell/en.utf-8.add.spl
  3. +3 −6 vimrc
@@ -124,3 +124,4 @@ sysadmin
sysadmins
yay
ic
+popup
Binary file not shown.
View
@@ -209,12 +209,9 @@ endif
nnoremap viT vitVkoj
nnoremap vaT vatV
" Insert mode mappings {{{1
-" emacs style jump to end of line
-imap <C-e> <C-o>A
-imap <C-a> <C-o>I
-" Open line above (ctrl-shift-o much easier than ctrl-o shift-O)
-imap <C-Enter> <C-o>o
-imap <C-S-Enter> <C-o>O
+" http://stackoverflow.com/questions/6926034/creating-a-mapping-for-insert-mode-but-not-for-autocomplete-submode/6926691#6926691
+inoremap <expr> <c-e> pumvisible() ? "\<c-e>" : "\<c-o>A"
+inoremap <C-a> <C-o>I
" Easily modify vimrc {{{1
nmap <leader>v :e $MYVIMRC<CR>
" http://stackoverflow.com/questions/2400264/is-it-possible-to-apply-vim-configurations-without-restarting/2400289#2400289

0 comments on commit a279547

Please sign in to comment.