[Vimoutliner] Obvious but don't get it: how do I move outline at
N+1 to N
Stefan Schmiedl
s at xss.de
Sun Sep 3 03:57:38 EDT 2006
GARY FURASH (02.09. 16:03):
> When I yank or delete a collapsed outline at level N (e.g., 5), and then
> move it elsewhere with a paste, I end up with that outline pasted at level
> N, not the current cursor position (e.g., I might want to make it a child of
> say a level 2 outline, so it should now be 3.). Is there a better/easier
> way to do this?
Apart from the manual workaround (zc2<) it's what you get for making
a plain text editor edit structured files. vim just does not "know"
what you're intending to do. A more or less elaborate vimscript function
would be possible (it's just a matter of inserting/deleting leading tabs).
You'd need a separate keystroke for this, too, as you'd need to
distinguish this "move-inside-target" action from a normal "move"
operation where indentation is to be preserved.
s.
--
Stefan Schmiedl
+-------------------------------+----------------------------------------+
|Approximity GmbH | EDV-Beratung Schmiedl |
|http://www.approximity.com | Am Bräuweiher 4, 93499 Zandt, Germany |
|mailto:stefan at approximity.com | Tel. (09944) 3068-98, Fax -97 |
+-------------------------------+----------------------------------------+
More information about the VimOutliner
mailing list