vi editing utility command

1. How fast the cursor jumps to the current position of the file from the last row , the first line ?

First shift +: enter command mode, enter $ Enter to jump to the last line;

After the above into the command line input 1 or 0, Enter to jump to the first line;

 

2. How to display line numbers ? How will the cursor jump to the specified line ?

Displays the current line number: command input mode nu carriage;

Show all line number: command input mode set nu carriage;

The cursor jumps to the specified line: command mode directly into the transport line number;

 

3. How will the cursor jumps to the current line of the first line and the end of the line ?

After entering the INSERT mode, knocking home key to move the cursor jump to the beginning of the line the current line,

End knock button can move the cursor jumps to the end of the current line;

 

4. Find content

Enter command mode, input / + target string, if present, can be targeted to the target string;

If it is a Find, tap n, which is a shift + n; 

Assuming that the search key is hadoop, enter the command mode, typing / hadoop Enter.

 

Guess you like

Origin www.cnblogs.com/mylittlecabin/p/11666030.html