Vim: Keep selection when changing indent

This commit is contained in:
Leon Grünewald 2024-04-04 10:46:44 +02:00
parent f43db4d7a9
commit 4043a451be
2 changed files with 6 additions and 0 deletions

View file

@ -8,3 +8,6 @@ set sneak
" Copy to system clipboard as well " Copy to system clipboard as well
set clipboard+=unnamedplus set clipboard+=unnamedplus
vnoremap < <gv
vnoremap > >gv

View file

@ -42,3 +42,6 @@ colorscheme tokyonight
com! FormatXML :%!python3 -c "import xml.dom.minidom, sys; print(xml.dom.minidom.parse(sys.stdin).toprettyxml())" com! FormatXML :%!python3 -c "import xml.dom.minidom, sys; print(xml.dom.minidom.parse(sys.stdin).toprettyxml())"
nnoremap = :FormatXML<Cr> nnoremap = :FormatXML<Cr>
vnoremap < <gv
vnoremap > >gv