Browse files

Move insert mode mappings from .vimrc to plugin.

  • Loading branch information...
1 parent c4c8702 commit 777666dd0deb66fdcdf22d465650cb0893b6bf8b @nelstrom committed Jan 21, 2012
Showing with 3 additions and 12 deletions.
  1. +3 −0 vim/plugin/insert-mappings.vim
  2. +0 −12 vimrc
View
3 vim/plugin/insert-mappings.vim
@@ -0,0 +1,3 @@
+" 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
View
12 vimrc
@@ -104,7 +104,6 @@ nmap <silent> <leader>l :set list!<CR>
nmap <silent> <leader>w :set wrap!<CR>
nmap <silent> <buffer> <leader>s :set spell!<CR>
nmap <silent> <leader>n :silent :nohlsearch<CR>
-nmap <silent> <leader>c :IndentGuidesToggle<CR>
command! -nargs=* Wrap set wrap linebreak nolist
command! -nargs=* Maxsize set columns=1000 lines=1000
" CTags {{{1
@@ -175,20 +174,9 @@ endfunction
" Substitute command repetition {{{2
nnoremap & :&&<Enter>
xnoremap & :&&<Enter>
-" Alignment commands {{{1
-if exists(":Tabularize")
- nmap <Leader>a= :Tabularize /=<CR>
- vmap <Leader>a= :Tabularize /=<CR>
- nmap <Leader>a: :Tabularize /:\zs<CR>
- vmap <Leader>a: :Tabularize /:\zs<CR>
-endif
" TextObject tweaks {{{1
nnoremap viT vitVkoj
nnoremap vaT vatV
-" Insert mode mappings {{{1
-" 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 777666d

Please sign in to comment.