diff options
Diffstat (limited to '.vim')
| -rw-r--r-- | .vim/startup/mappings.vim | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/.vim/startup/mappings.vim b/.vim/startup/mappings.vim index 6c0ff40..557c7ae 100644 --- a/.vim/startup/mappings.vim +++ b/.vim/startup/mappings.vim @@ -1,14 +1,12 @@ " Ctrl-C, Ctrl-V, ... {{{ " Partly taken from: https://gist.github.com/jshih/3423345 - " Most use "li" instead of "i" because for some (good?) reason my cursor - " goes to the right after executing any of those - inoremap <C-S> <Esc>:w<CR>li - inoremap <C-V> <ESC>"+pli - inoremap <C-A> <ESC>ggVG - inoremap <C-R> <ESC><C-r>i - inoremap <C-U> <ESC>uli - - nnoremap <C-S> <Esc>:w<CR> + inoremap <C-S> <C-O>:w<CR> + inoremap <C-V> <C-R>+ + inoremap <C-A> <Esc>ggVG + inoremap <C-R> <C-O><C-r> + inoremap <C-U> <C-O>u + + nnoremap <C-S> :w<CR> nnoremap <C-A> ggVG xnoremap <C-V> c<ESC>"+Pl |
