I would like to map <Tab>
in select mode to indent my selection.
So I have this:
$ vim -u /dev/null
:set nocompatible
:behave mswin
:xnoremap <Tab> >gv
:xnoremap <S-Tab> <gv
:snoremap <Tab> <C-g>>gvV<C-g>
:snoremap <S-Tab> <C-g><gvV<C-g>
The idea is to switch to S-LINE
or V-LINE
when identing. The problem with the above mapping is the V
will toggle between VISUAL
-> V-LINE
-> NORMAL
.
How can I correct these mappings?