VI usage skills (1)

xiaoxiao2021-03-06  72

H (<-) j (^) K (! j) l (->): It is equivalent to the upper and lower keys.

CC: Delete the content of a line, but this is still

DD: Delete one line

Shift g: Jump to the end of the file

? Char: Search from the back?

/ char: Search from before?

N: Continue in the current search order.

N: Search in the reverse order of current search

Ctrl B: = Pageup

CTRL F ?: = PageDown

o: (insert a line) jump to the new line

$:

%: Parentheses match

: set nu: display line number

: SET NONU: Shut down line number

: SET NOWRAP,: SET WRAP: Set whether the text column is folded

Ng: n is the number of rows, which immediately jumps to the specified line.

W, b - make the cursor forward or back a word

-------------------------------

(2) Preview: How to implement the Copy and Paste of VI. How to implement UNDO / Redo.

转载请注明原文地址:https://www.9cbs.com/read-121352.html

New Post(0)