diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index 6f59079..52ab9bc 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -41,6 +41,10 @@ if (has('clipboard')) map P "+P endif +" Do not move the cursor to the start of the selection after a yank +" https://stackoverflow.com/a/3806664/20927629 +vmap y ygv + " Ctrl-Backspace should delete words in insert mode and on command-line. noremap! map!