Summary Files CommitsBranches @commit@diff
diff options
context:
space:
mode:
Commit7a77ea13aea29b1caec0b7fc3a131ae7783d5141 (patch )
AuthorSyndamia <kamen@syndamia.com>2023-03-16 20:34:57 +0200
CommitterSyndamia <kamen@syndamia.com>2023-03-16 20:34:57 +0200
Files7b3b73002c2129623bed77b658a6527d92bc0b64
dotfiles-7a77ea13aea29b1caec0b7fc3a131ae7783d5141.tar
dotfiles-7a77ea13aea29b1caec0b7fc3a131ae7783d5141.tar.gz
dotfiles-7a77ea13aea29b1caec0b7fc3a131ae7783d5141.zip
Parent74888eca423e3787b19f2a903f0d3696a5fec121 (diff)
[.vim/s/m] Improved Ctrl-C, Ctrl-V, ... mappings
1 files changed, 6 insertions, 8 deletions
-rw-r--r--.vim/startup/mappings.vim14
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
+ 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> <Esc>:w<CR>
+ nnoremap <C-S> :w<CR>
nnoremap <C-A> ggVG
xnoremap <C-V> c<ESC>"+Pl