On 24 Sep 2014, <random...@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@

Cheers,
Rob

Reply via email to