- keep the cursor on the first letter of first line to comment
- in command mode, press ctrl + v
- move cursor down until last line to comment
- press I (you may not see vim going to insert mode, don't worry, you will see cursor moving to first line)
- press # (you may not see # inserted yet, don't worry)
- press Escape ( you should see lines commented out, otherwise, press escape two times)
No comments:
Post a Comment