Automatic Completion in vi editing mode: ctrl + n, ctrl + p.

Source: Internet
Author: User
In vi editing mode, the automatic completion full-featured command is implemented: Ctrl + n, Ctrl + p. In editing mode, after a word is entered in vi, the text word is remembered. In the vi editing mode, you can use Ctrl + n, ctrl + p to automatically complete and input the word (for some characters of the word to be queried...

 

In vi editing mode, the automatic completion full-featured command is implemented: Ctrl + n, Ctrl + p.

 

In editing mode, after a word is entered in vi, the text word is remembered.

 

In the vi editing mode, you can use Ctrl + n, ctrl + p to automatically complete words (some characters of the word to be queried) and enter prompts.

 

 

 

Where:

 

N in Ctrl + n is n in next;

 

In Ctrl + p, p is in previous.

 

 

 

In command mode, Ctrl + n is equivalent to j (down), Ctrl + p is equivalent to k (up ).

 

 

 

 

 

 

 

 

 

 

 

In the shell command terminal, Ctrl + n is equivalent to the downward direction key, and Ctrl + p is equivalent to the upward direction key.

 

You can use them or the arrow keys in the command terminal to quickly find historical commands. This is also a quick command input technique.

 

In the command terminal, you can use Ctrl + r to quickly retrieve used historical commands. In Ctrl + r, r is in retrieve.

 

Ctrl + a: move the cursor back to the beginning of the command line. (A: ahead)

 

Ctrl + e: Move the cursor back to the end of the command line. (E: end)

 

Ctrl + B: Move the cursor to the first character of the line. (B: backward)

 

Ctrl + f: move a character to the end of the line. (F: fforwards)

 

Ctrl + w: delete the character from the cursor to the beginning of the line.

 

Ctrl + k: delete the character from the cursor to the end of the line.

 

Ctrl + u: delete the entire command line text character.

 

Ctrl + h: Delete a character from the beginning of the line.

 

Ctrl + d: Delete a character from the end of the line.

 

 

 

Ctrl + y: paste Ctrl + u, Ctrl + k, Ctrl + w to delete the text.

 

Ctrl + p: the previous historical command. (P: previous)

 

Ctrl + n: the next historical command. (N: next)

 

Ctrl + r: the quick search history command. (R: retrieve ).

 

Ctrl + t: the character where the cursor is located and the character before it.

 

Ctrl + I: equivalent to the Tab key.

 

Ctrl + o: equivalent to Ctrl + M.

 

Ctrl + m: equivalent to the Enter key.

 

 

 

Other control keys:

 

Ctrl + s: to make the terminal daze and static, you can stop the terminal screen for quick output.

 

Ctrl + q: exit the daze caused by Ctrl + s.

 

Ctrl + z: run the task running on the terminal on the background. (Fg recovery available)

 

Ctrl + c: the task being executed in the terminal town.

 

Ctrl + d: exit the terminal if the command line is empty.

 

Ctrl + [: equivalent to the Esc key.

 

Esc key: displays all supported terminal commands three times in a row.

 

Tab key: the key command is automatically completed.

 

From the wzb56 column

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.