diff --git a/init.vim b/init.vim index 18e4b45..e2124bc 100644 --- a/init.vim +++ b/init.vim @@ -123,6 +123,9 @@ inoremap jj noremap o o noremap O O +" keep selection after p +xnoremap p p:let @+=@0 + " save with sudo cmap w!! w !sudo tee > /dev/null %