Re: [dev] [RFC] Design of a vim like text editor

From: Rob <robpilling_AT_gmail.com>
Date: Thu, 25 Sep 2014 20:56:09 +0100 (BST)

On 24 Sep 2014, <random832_AT_fastmail.us> wrote:
>
> On Wed, Sep 24, 2014, at 15:36, Marc Andr=C3=A9 Tanner wrote:
> > > - 'J' in visual mode is not implemented
> >
> > Why would one use it?
>
> To be able to select lines to be joined interactively instead of having
> to count the lines by hand (since there's no J<movement>, only
> <count>J). I do this all the time.
>

You might find this useful - I think J makes more sense working as an
operator, once you get used to it.

" fix J to be an operator command
func! Joinoperator(submode)
   norm $mj
   '[,']join
   norm 'jl
endfunc
nnoremap J :silent set operatorfunc=3DJoinoperator<CR>g_AT_

Cheers,
Rob
Received on Thu Sep 25 2014 - 21:56:09 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 25 2014 - 22:00:09 CEST