Today I Learned

hashrocket A Hashrocket project

Search for a word on a specific line

Every vimmer knows that you can use the / command to search for text in a file. But do you, as a vimmer, know that you can search for a word on a specific line?

/\%10lmassive

If line 10 is:

The sun is massive.

Then with the /\%10lmassive command, the cursor will land on the m in that sentence.

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.