vi search - dylanwan/dylanwan.github.io GitHub Wiki
You just type / , enter the search keyboard, and hit
It search the text after your cursor.
You can keep moving to the next matched text in the file.
< / key>, < / key>, and = < n key >
n is much easier.
It will find the matched text above where your cursor is.
You do not need to re-enter the keyword, it will search based on the current entered keyword.
It reuses the keyword entered last time.
</ key> then or <? key> then = < N key>
N is much easier. < Shift > + < n >
- use * to quickly move to the next place with the same word as the cursor is on
- use # to move back
These help you to move to the starting point, before you start searching.
- gg or 1G - the top of the file
- G - the bottom of the file
- H - the top of the screen
- L - the bottom of the screen
- { begin of the previous paragraph
- } the begin of the next paragraph
- < enter a number >, } - quickly move multiple paragraphs