Posts Tagged: vi

Commenting out multiple lines in vim

To add hashes to multiple lines:

to enter visual mode Arrow Keys to highlight the lines to be changed Inserting: Use one of the following to insert hashes depending on the version of vim

, then the ‘

’ key, then ‘

Deleting: Use the ‘

’ keyboard key