Vi: Difference between revisions

343 bytes added ,  4 years ago
 
(6 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 Highlight the first keyword match
N Scroll through next keyword matches
Shift + G Go to bottom of the file
Shift + N Search from Bottom to top for keyword matches
 
= Intermediate =
Line 81 ⟶ 93:
*Going to any line
:50
 
* Show Line Numbers:
:set nu
 
*In the command mode to get the same result: