Duaine Hechler said the following on 02/28/2013 03:54 PM:
On 02/28/2013 02:42 PM, Anton Aylward wrote:
[..] So, can you do move lines 827 though 844 to before line 212 in one go? Trivial in VI (and variants).
Well, I'm not that deep in VI and maybe so BUT its not as simple as the other editors !
It would take :827,844m212 I don't see that as complicated. I you wanted to do it graphically, the key strokes might be 827G17dd212Gp That is, Goto line 827 Yank into the transient buffer 17 lines while deleting them Goto like 212 Put the contents of the transient buffer after the current line. I'll grant you there is the issue of 'familiarity'. Everything new looks difficult when you first see it. In practice I may make use of markers so I don't have to count lines, but then again it will depend on context. Those 17 lines might be a paragraph or a region in some kind of syntactic bracketing and I could use that instead. Many UNIX languages use "{" and "}" and its easy enough to say "move the stuff between the bracket the cursor is on and the matching one. This is why I hate HTML and XML! -- "Education must precede motivation." Jim Rohn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org