linux command --- vi editor to quickly locate the line number

linux command -vi editor quickly locate rows, delete the current line, the current line and delete the entire contents of the back

1, vi editor how to quickly locate the N-th line
command mode at: n-

http://bbs.chinaunix.net/ 2243934-1-1.html-Thread

2, delete the current line number
dd deletes the current line. (Dd directly press the letter is deleted in the edit vi current line)

3, delete all contents of the current row behind
dG delete the entire contents of which is behind the current (vi pressing the letter dG directly edit the contents of the current row is deleted and all later )

http://bbs.chinaunix.net/thread-1932388-1-1.html

 

Cursor
G first moves trekking
nG moved trekking first n-
n + n trekking first shift
n- trekking first shift n
n n $ shift row (represented Bank 1) end of the line
head trekking 0
$ done end of the line
^ done initials
h, j, k, l left shift shift right
H trekking header before the first screen
M is displayed between the first file trekking
L trekking bottom of the screen before the first

more reference description
transitional channel 20 ^ (shift + 6) of the first character line point whitespace differences
transitional tail $ (shift + 4)
Cursor
G first moves trekking
nG moved trekking first n-
n + n trekking first shift
n- trekking first shift n
n n $ shift row (represented Bank 1) end of the line
head trekking 0
$ done end of the line
^ done initials
h, j, k, l left shift shift right
H trekking header before the first screen
M is displayed between the first file trekking
L trekking bottom of the screen before the first

more reference description
transitional channel 20 ^ (shift + 6) of the first character line point whitespace differences
transitional tail $ (shift + 4)

Guess you like

Origin www.cnblogs.com/zhuyeshen/p/10968967.html