Last Updated: February 25, 2016
·
831
· spf13

Fixing Visual Shifting

One of my biggest pet peeves about vim is that visual mode isn't persistent. When you shift it one time it automatically unhighlights.

Add the following to your .vimrc to fix this.

" visual shifting (does not exit Visual mode)
vnoremap < <gv
vnoremap > >gv

... or simply install spf13-vim, a popular vim configuration & distribution that stays true to the feel of vim while providing modern features like a plugin management system, autocomplete, tags and tons more.