[Vimoutliner] Obvious but don't get it: how do I move outline at N+1 to N

Steve Litt slitt at troubleshooters.com
Sun Sep 3 11:16:31 EDT 2006


On Sunday 03 September 2006 10:41 am, Peter Princz wrote:
> Noel,
>
> On 03/09/06, Noel Henson <noel at noels-lab.com> wrote:
> > I think I can fix this. How about ,,p to place the 'y'anked lines as
> > children and ,,P to place them as siblings (ie. at the current level)?
> >
> > Does that sound cogent?
> >
> > Noel
> >
> > On Saturday 02 September 2006 16:03, GARY FURASH wrote:
> > > 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?
>
> that would be nothing but great! What I wrote, is a workaround only,
> but this would be The Solution. :)
>
> However, the ,,p/,,P mapping pair would contradict to the p/P (and a
> lot of others) mapping pair, i.e. putting after/before the cursor.
> I'd either put it *always* as a sibling after (,,p) or before (,,P)
> the element the cursor is on. Yes, then an extra indent would be
> needed in some cases, when you want it as a child and not a sibling,
> but at least it would be consistent with other vi mappings... :o

Or, you could use a letter other than P to minimize the resemblance to Vim's 
paste.

Or, you could always paste below and on the same level, but paste it folded, 
so that if someone really wants to make it a child, a double angle bracket 
wil do it.

Or howbout this: ,,P pastes above the current line, as a sibling, while ,,p 
pastes below the current line, as a child.

SteveT

>
> Have a nice day,
>   Peter

-- 
Steve Litt
Author: 
   * Universal Troubleshooting Process courseware
   * Troubleshooting Techniques of the Successful Technologist
   * Manager's Guide to Technical Troubleshooting
   * Twenty Eight Tales of Troubleshooting
   * Rapid Learning: Secret Weapon of the Successful Technologist

http://www.troubleshooters.com/bookstore
http://www.troubleshooters.com/utp/tcourses.htm

(Legal Disclaimer) Follow these suggestions at your own risk.


More information about the VimOutliner mailing list