Skip to content

Commit

Permalink
Make <c-e> map play well with autocorrect popup
Browse files Browse the repository at this point in the history
  • Loading branch information
nelstrom committed Aug 28, 2011
1 parent 00af763 commit a279547
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions vim/spell/en.utf-8.add
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,4 @@ sysadmin
sysadmins
yay
ic
popup
Binary file modified vim/spell/en.utf-8.add.spl
Binary file not shown.
9 changes: 3 additions & 6 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a279547

Please sign in to comment.