Proved to be quite useful when editing system configuration files (Apache2, etc.). Thanks!
Commenting in blocks of code
Similarly, you may go the reverse direction and comment in blocks of code as follows:
- Go to the first line of the block of comments signs you would like to delete: <line>gg
- Enable block selection mode: Ctrl+V
- Important: Only mark the comment tokens you want to delete, nothing else!
- Navigate to the end of the block either with
- <line>gg or
- arrow up/down; j/k
- Press d for deletion
(If necessary undo your changes with u)