Official VIM Tips Thread
Name:
Anonymous
2008-04-19 13:25
What is the best way to comment out a region of text?
Feel free to post other ``VIM Tips'' in this thread as well.
Name:
Anonymous
2008-04-19 13:26
:q is short for :quit!
Name:
Anonymous
2008-04-19 13:28
>>2
Official VIM Tip
Use :wq just in case you need the data in the future!
Name:
Anonymous
2008-04-19 13:28
Yet another proof that VIM tries to imitate everything EMACS does, no matter how nonsensical it would be.
Name:
Anonymous
2008-04-19 13:30
VjjjjjjI//^[
Name:
Anonymous
2008-04-19 13:36
>>3
Haha, awesome.
Never knew that. I usually used :save and :quit-ed only after that.
Thanks!
Name:
Anonymous
2008-04-19 13:43
>>2
No, it's not.
:quit! is different than :q.
>>3
ZZ or gtfo
Name:
Anonymous
2008-04-19 13:44
Name:
Anonymous
2008-04-19 13:50
I'm so accustomed to :wq that I always seem to forget about ZZ
Shame really.
Name:
Anonymous
2008-04-19 13:51
>>1
What is the best way to comment out a region of text?
M-;
NEXT!
Name:
Anonymous
2008-04-19 13:51
Name:
Anonymous
2008-04-19 13:56
jjjjjj considered harmful.
Name:
Anonymous
2008-04-19 14:04
>>1,4
Same person. We haven't been trolled constantly though.
Name:
Anonymous
2008-04-19 14:11
CTRL-V, select the lines, I, # (or comment characters), ESC
Thread over.
Name:
Anonymous
2008-04-19 14:12
Yet another proof that VIM tries to imitate everything EMACS does, no matter how nonsensical it would be.
M-x vi-mode
Name:
Anonymous
2008-04-19 14:54
Name:
Anonymous
2008-04-20 0:17
:!xterm -e sh -c "cat `tty` | tee `tty`" &
MULTI-TRACK DRIFTING!!
Name:
Anonymous
2010-12-27 4:24