Today I Learned

hashrocket A Hashrocket project

Vim Cursorline

Yesterday I learned that Vim has a feature called the Cursorline.

Cursorline highlights the screen column of the cursor. It's useful for reading dense code like raw SQL or minified anything. It will also make screen redrawing slower.

Activate this feature with :set cursorline or :set cul. Deactivate with :set nocursorline or :set nocul. As with anything Vim, you can add it to your ~/.vimrc if you want to have it on by default.

vim-unimpaired gives us a mapping for this. [oc turns it on; ]oc turns it off.

See :help cul for the Vim feature, and :help [oc for the plugin.

See More #vim TILs
Every developer at Hashrocket is a Vim expert. Check out our development environment, Dotmatrix, and if you are in Chicago, come to the Vim Chicago Meetup hosted at our Chicago office.