Last active 4 hours ago

jors's Avatar jors revised this gist 4 hours ago. Go to revision

1 file changed, 1 insertion, 1 deletion

gistfile1.txt

@@ -1,6 +1,6 @@
1 1 VIM block comment
2 2
3 - 1. Go to the first line you want to comment, press CtrlV. This will put the editor in the VISUAL BLOCK mode.
3 + 1. Go to the first line you want to comment, press Ctrl+V. This will put the editor in the VISUAL BLOCK mode.
4 4 2. Then using the arrow key and select until the last line.
5 5 3. Now press Shift+I, which will put the editor in INSERT mode and then press #. This will add a hash to the first line.
6 6 4. Then press Esc (give it a second), and it will insert a # character on all other selected lines.

jors's Avatar jors revised this gist 4 hours ago. Go to revision

1 file changed, 6 insertions

gistfile1.txt(file created)

@@ -0,0 +1,6 @@
1 + VIM block comment
2 +
3 + 1. Go to the first line you want to comment, press CtrlV. This will put the editor in the VISUAL BLOCK mode.
4 + 2. Then using the arrow key and select until the last line.
5 + 3. Now press Shift+I, which will put the editor in INSERT mode and then press #. This will add a hash to the first line.
6 + 4. Then press Esc (give it a second), and it will insert a # character on all other selected lines.
Newer Older