Pages

Wednesday, March 15, 2017

vi editor

vi Reference
vi Short reference.pdf

vi Editing  commands
vi commanddescription
iinsert at the current position
Iinsert at the beginning of line
aappend just after the current cursor position
Aappend at the end of line
oOpen a new line below the current line
OOpen a new line above the current line

vi Navigation commands
vi commanddescription
0move to beginning of the current line
$move to end of line
Hmove to the top of the current window (high)
Mmove to the middle of the current window (middle)
Lmove to the bottom line of the current window (low)
1Gmove to the first line of the file
20Gmove to the 20th line of the file
Gmove to the last line of the file

No comments:

Post a Comment