On Fri, February 13, 2009 7:49 am, Eray Aslan wrote:
> On 13.02.2009 07:48, Stroller wrote:
>> On 13 Feb 2009, at 00:53, Philip Webb wrote:
>>> 090212 Stroller quoted:
>>>> 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 how one
>> could find it so.
>>
>> Is it only on my keyboard that forward-slash is a "lower-case" character
>> that is accessed *without* the shift key deployed?
>>
>> How do you know m & n?
>
> Column and line numbers are shown on the lower right part of the screen.
>
>> Surely it's easier just to highlight the lines?
>
> 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.

True, but with this method, you don't use the mouse, just the keyboard:
1) Go to first line
2) Press <CTRL>+V
3) go to last line
4) Press <ESC>
5) Press <SHIFT>+I
6) Press '#'
7) Press <ESC>

On my system I then need to move the cursor to actually see the change, is
this normal?

--
Joost


Reply via email to