Common commands in the vi editor and Common commands in the vi Editor

Source: Internet
Author: User

Common commands in the vi editor and Common commands in the vi Editor

After so many years of work, the vi editor can use only a few commands at most.

1. yy: copy the row where the current cursor is located
2. nyy: n is a number. Copy the N rows after the current cursor starts.
3. p: paste the copied content to the row where the cursor is located.
4. dd: Delete the current row
5. ndd: delete n rows
6./name: Search
7. G: move the cursor to the end of the file
8. nG: move the cursor to line n.
9. u cancels the previous action
10. $ first line
End of line 3

12. n: Forward search, N: reverse search

You can check other commands.

Zookeeper

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.