[gentoo-user] Re: Commenting out multiple lines in vim

2009-02-13 Thread Nicolas Sebrecht
On Fri, Feb 13, 2009 at 10:24:34AM +0100, Joost Roeleveld wrote: True, but with this method, you don't use the mouse, just the keyboard: 1) Go to first line Press gg 2) Press CTRL+V 3) go to last line Press G 4) Press ESC Why this stage ? 5) Press SHIFT+I 6) Press '#' 7) Press ESC

Re: [gentoo-user] Re: Commenting out multiple lines in vim

2009-02-13 Thread Joost Roeleveld
On Fri, February 13, 2009 1:37 pm, Nicolas Sebrecht wrote: On Fri, Feb 13, 2009 at 10:24:34AM +0100, Joost Roeleveld wrote: True, but with this method, you don't use the mouse, just the keyboard: 1) Go to first line Press gg Actually meant going to first line of block you want to comment

[gentoo-user] Re: Commenting out multiple lines in vim

2009-02-13 Thread Nicolas Sebrecht
On Fri, Feb 13, 2009 at 07:58:52PM +, Stroller wrote: Not when you are working with the keyboard most of the time. Taking your hands off the keyboard to use the mouse is time consuming and becomes rather annoying. LOL! But so true. -- Nicolas Sebrecht

Re: [gentoo-user] Re: Commenting out multiple lines in vim

2009-02-13 Thread Stroller
On 13 Feb 2009, at 21:45, Nicolas Sebrecht wrote: On Fri, Feb 13, 2009 at 07:58:52PM +, Stroller wrote: Not when you are working with the keyboard most of the time. Taking your hands off the keyboard to use the mouse is time consuming and becomes rather annoying. LOL! But so true.

[gentoo-user] Re: Commenting out multiple lines in vim

2009-02-13 Thread daid kahl
In vim, you can just select the rectangular region with Ctrl-v, then type I#ESC. This will insert # in each line at the same column. If you want to comment a series of lines m-n , it's quicker to do : :m,ns/^/#/ I saw similar comments in my Google searches, but I am flummoxed

Re: [gentoo-user] Re: Commenting out multiple lines in vim

2009-02-13 Thread Stroller
On 14 Feb 2009, at 04:21, daid kahl wrote: You can also enable line numbering, either in command mode using set nu, or in ~/.vimrc (which I prefer since I always like line numbers, except if I'm copy and pasting...then it's annoying). There is also a macro I made (stole from somewhere and

Re: [gentoo-user] Re: Commenting out multiple lines in vim

2009-02-13 Thread daid kahl
Is there any way to access the vim buffers from other than vi? Using Konsole, if I want to copy something from vim I have to highlight with the mouse and right click, which is annoying. I really just want a better way to copy from Konsole that doesn't involve right click. At least

Re: [gentoo-user] Re: Commenting out multiple lines in vim

2009-02-13 Thread Stroller
On 14 Feb 2009, at 05:03, daid kahl wrote: Is there any way to access the vim buffers from other than vi? Using Konsole, if I want to copy something from vim I have to highlight with the mouse and right click, which is annoying. I really just want a better way to copy from Konsole that