Comment/Uncomment block of code
Comment:
- Press esc
- Press control + V to enter VISUAL BLOCK mode
- Move the cursor to the end of block that you want to comment
- Press shift + I to enter INSERT mode
- Type any comment (i.e.
#
), in the first line of block - Press esc to finish.
Uncomment:
- Press esc
- Press control + V to enter VISUAL BLOCK mode
- Move the cursor to select the code you want to delete
- Press X
- Press esc to finish.