Jump to the next commented line

If you’ve ever needed to jump quickly to the next commented line of code, there’s a trick for that. You’ll need to add a new commands to Vim, but that’s as easy as adding a few lines to your .vimrc file. The following maps ]c to jump to the next commented line of code and [c to the previous.

Continue reading »

Spell Check in Vim!?

Vim can totally spell check. It even goes further than that and identifies rare and regional words, too! None of this is enabled by default, however. To enable spell check in Vim just run :set spell and suddenly all misspelled words in your current window will be highlighted (The color and highlight method will depend on your vim color scheme, mine changes the font color to dark red and underlines the word).

Continue reading »

Undo and redo

If you’ve been using vim for long, you are likely acquainted with u, the undo command. All too often overzealous with u, I undo edits unintentionally. A quick peek at the vim help for u yields that C-r will redo edits previously unwound with u.

Continue reading »

Well Formatted Paragraphs

Many folks use vim for software development or systems administration but choose other editors when editing plain text or markdown. Vim has some pretty handy features for dealing with prose.

Continue reading »

Opening the previous buffer

Have you ever accidentally opened a file you didn’t intend to from somewhere like the quick fix window? Or dive deep into debugging a problem only to realize you need to fix something in one of those files somehwere in your wake? Then Vim “jumps” are for you!

Continue reading »
Top