[Vimoutliner] Obvious but don't get it: how do I move outline at
N+1 to N
Noel Henson
noel at noels-lab.com
Sun Sep 3 11:52:06 EDT 2006
On Sunday 03 September 2006 07:41, you 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
>
> Have a nice day,
> Peter
Good point. I'll see what I can do. Perhaps the <localleader>p and
<localleader>P can have a bit of intelligence so VO can try to put the
yanked lines in the correct place. If I can get it to work the way you (we)
want, it can even be mapped to 'p' and 'P'.
Noel
--
------------------------------------------------------------------
Noel Henson
www.noels-lab.com Chips, firmware and embedded systems
www.vimoutliner.org Work fast. Think well.
More information about the VimOutliner
mailing list