Vim Editor Bulk Add and delete annotations

Source: Internet
Author: User

To add a comment:

Method One:

(1) Press Control+v (win below CTRL+Q) into the column mode;

(2) Press the larger "I" into insert mode, enter the comment "#" or "//", then press ESC immediately (two)

Method Two: Replace command

: Starting line number, ending line number s/^/comment/g

To delete a comment:

Method One:

Ctrl + V Enter block selection mode, select the comment symbol for the beginning of the line you want to delete, note//To select two, then press D to delete the comment

Method Two:

: Starting line number, ending line number s/^ comment//g



Reference Documentation:

http://blog.csdn.net/xiajun07061225/article/details/8488210

Thanks to the bloggers for their sharing. Thank you


This article from "for the Dream and strive!" "Blog, be sure to keep this provenance http://815632410.blog.51cto.com/1544685/1677726

Vim Editor Bulk Add and delete annotations

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.