Vi: Difference between revisions

151 bytes added ,  4 years ago
 
(4 intermediate revisions by the same user not shown)
Line 22:
*The .vimrc file
The EX commands (those that you key in after typing : in the Vi editor), which you want to execute whenever you start the Vi editor, can be saved in the .vimrc file in your home directory.
 
* Pages:
Control + F Next Page
Control + B Previous Page
 
== Searching ==
 
/string Search for "string"
Enter ScrollHighlight throughthe allfirst keyword matchesmatch
N Scroll through next keyword matches
Shift + G Go to bottom of the file
Shift + N Search from Bottom to top for all keyword matches
 
= Intermediate =
Line 88 ⟶ 93:
*Going to any line
:50
 
* Show Line Numbers:
:set nu
 
*In the command mode to get the same result: