---

Matching Newlines in Vim

“It’s pleasingly straightforward: All you do is to add _ in
front of the character class you want to match. This will then
match the character class plus newline. So to search for a word
character:

/w
/ (from command mode) is the search command in vim, and w indicates
a word character. So, to search for a word character or
newline:”


Complete Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis