TIL: * and # in vim
When in normal mode in vim, you can use
* to start searching forwards for the word underneath the cursor and
# to search backwards.
You can then use
N to jump forward and backward, like a regular search.
You can also use
g# to find matches that aren’t a whole word themselves, e.g. find
line by searching on