Created
March 1, 2013 03:20
-
-
Save otkrsk/5062243 to your computer and use it in GitHub Desktop.
Selecting and commenting multiple lines in Vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Go to start of block. | |
2. `Ctrl+V`, then traverse down the block. Only the beginning of the line will be selected. | |
3. `Shift+I` to insert text at the beginning of the marker. | |
4. Press the hash/pound key (`#`), then escape (`Ctrl+[`). Your block of code will magically be commented. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment