From 337c5b2b4205aa14d9c65d1c455fd37c106673fd Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Thu, 5 Sep 2019 18:16:33 +0200 Subject: [PATCH] keep selection after pasting --- init.vim | 3 +++ 1 file changed, 3 insertions(+) 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 %