Last Updated: February 25, 2016
·
490
· ixti

Searching like a pro

To start searching for a substring foo, you must type (in normal mode): /foo[ENTER]</code>, that will lead you to the first first found "foo" from the point of your cursor. Hit n</code> to search for the next one. Hit N</code> to search previous one (useful to get one step back).

You can also search "backward". Use </code> instead of /</code>. In this case n</code> and N</code> will be inverted.

Same for the searching of the word under cursor with ***** (search forward) and # (search backward)