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)
Written by Aleksey V. Zapparov
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#