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