vim add bulk delete comments

vim is a special case of a single line comment multi-line comments, unified multi-line comment here to explain

(1) add bulk Note

ctrl + v column enters edit mode to move the cursor up or down, the beginning of the line marking up comment is required , then press uppercase I (shift + i), then insert a comment character, such as "#", then the Esc, it will all annotated. Is not it simple?

(2) removing the bulk Note

ctrl + v column enters Edit mode, the number of the selected column lateral (e.g. '#' comment symbol, need to select the two), and then press d, the comment is deleted symbol.

It's that simple.

 

 

 

vim syntax highlighting

vi ~ / .vimrc

syntax enable

Guess you like

Origin www.cnblogs.com/hnhycnlc888/p/11722954.html