On Mon, 10 Jan 2011, Jeffrey 'jf' Lim wrote:
hi, I'm having trouble (is it possible?) trying to figure a way of
repeating a "shift" for a line quickly. Essentially, I want to be able
to shift the current (and only the current) line multiple times (let's
say 5 times)
I've tried the following:
5>>
=> results in 5 lines being shifted
>>5.
=> results in the current line shifted once, and then with '5.' 5 lines
being shifted
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?
I would have expected '5>>' to just do the shift 5 times _for the
*current* line_ - rather than its behaviour now of shifting 5 lines.
Especially when I can shift 5 lines with '>4j' (so it makes more sense
to interpret '5>>' as shifting 5 times for the current line).
I also would have also expected 5>> to shift five times.
Not sure that it's "better", but an alternative way to shift right five
times:
V5>
V starts linewise visual mode, and in visual mode [count]> behaves as
you and I had expected.
:h v_>
--
Best,
Ben
--
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