Oct
29
Just added the following to my ~/.vimrc. Something I should’ve done a long time ago…
" Map tab, s-tab to indent/unindent in visual and normal mode
vmap <tab> >gv
vmap <s-tab> <gv
nmap <tab> >>
nmap <s-tab> <<
This basically lets you indent/unindent in Vims visual mode, aswell as normal mode, by using tab/s-tab, instead of C-d/C-t or »/«, which are the defaults.
This really feels more intuitive.