Commenting out a range of lines in VIM

Reference:http://vim.wikia.com/wiki/Commenting_out_a_range_of_lines

A -VISUAL BLOCK- can also be used to comment out lines.

Start by typing "Ctrl-V" and then highlight a strip downwards by hitting "down/j".

After that, type capital "I" to insert for all highlighted lines. Type the comment, in this case "#<Space>". Then hit "Esc".

你可能感兴趣的:(vim)