VIM: Keep selection when using < or > in visual mode

When indenting or unindenting a code block, I normally visually select
it and use < or >. However, both of these unselect the selection.

The mappings make vim also do gv after such an action which re-selects
the previous selection.
This commit is contained in:
Jonathan Hodgson 2021-01-19 16:20:10 +00:00
parent d8e3b894c0
commit 9b4c064acd
4 changed files with 12 additions and 0 deletions

6
.gitmodules vendored
View file

@ -67,3 +67,9 @@
[submodule "nvim/.config/nvim/pack/bundle/opt/firenvim"]
path = nvim/.config/nvim/pack/bundle/opt/firenvim
url = https://github.com/glacambre/firenvim
[submodule "nvim/.config/nvim/pack/bundle/opt/ultisnips"]
path = nvim/.config/nvim/pack/bundle/opt/ultisnips
url = https://github.com/SirVer/ultisnips
[submodule "nvim/.config/nvim/pack/bundle/opt/vim-snippets"]
path = nvim/.config/nvim/pack/bundle/opt/vim-snippets
url = https://github.com/honza/vim-snippets