On 01/11/2011 05:45 AM, John Little wrote:

On Jan 10, 6:59 pm, "Jeffrey 'jf' Lim"<[email protected]>  wrote:
hi, I'm having trouble (is it possible?) trying to figure a way of repeating
a "shift" for a line quickly....
The only key combination I've found that works (although not as efficient as
I would like) is '>l', and then '5.' to repeat. Is there anything better
than this?

Surely
....
is quite easy.

I would have expected '5>>' to just do the shift 5 times _for the *current*
line_

Well, I can't agree:
     - 5dd delete 5 lines, 5>>  shift 5 lines... doubling the operator
means "lines" in vi and vim
     - 5>>  followed by . however many times is just so useful for block
structured code.

Regards, John


I agree 5>> should shift 5 lines because it's a much more common use
case and >4j feels a bit awkward because I want 5 lines but I have
to type in '4', and the command is just more difficult to type. Other
than that, I can see '5' applying to either lines or shift amount. I
don't think the argument about 5dd is very convincing because it
would make no sense to delete the same line 5 times.. well, unless
you *really* don't like the current line! It makes perfect sense to
shift one line 5 times though, and in fact I've often tried to use
5>> for that even though I know it does something else.

The v5>> trick is great, I'm glad I learned it in this thread. -ak

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to