Linux Tips--vim Multiple lines of comments and uncomment multiple lines

Source: Internet
Author: User


Multi-line Comments:

In normal mode, enter ctl+v;visual block mode, Press and hold the upper and lower keys to select the line to be commented , enter uppercase I; in insert mode, Enter//, Press the ESC key at the end.


Cancel multiple lines of comment

In normal mode, enter Ctl+v;in Visual block mode, press the lowercase l to select the columns to be canceled (for example, two columns, then the two columns are selected), press the up and down keys to select the row to uncomment, enter lowercase D


This article from "Momo is spicy moe" blog, please be sure to keep this source http://momo462.blog.51cto.com/10138434/1827490

Linux Tips--vim Multiple lines of comments and uncomment multiple lines

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.