Use of linuxvi command line

Source: Internet
Author: User
Use the vi file name of the linuxvi command line to enter the vi editing example: vihello. c type I enter insert mode type Esc back to command line mode type: wq save and exit command line mode: yy: copy the current row [n] yy: Copy the specified number of rows to np: paste www.2cto.com...
In the linux vi command line, use the vi file name to enter the vi editing example: vi hello. c type I enter insert mode type Esc back to command line mode type: wq save and exit command line mode: yy: copy the current row [n] yy: Copy the specified number of rows to np: paste www.2cto.com dd: delete the current row [n] dd: delete the specified number of rows n/name: Search for the name string G: move to the end u: cancel the previous operation baseline mode:: w save: q exit (the system prompts to save and modify): q! Force exit do not save: wq save exit: w [filename] File Save as: set nu show row number: set nonu do not show row number

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.