On 02/09/2011 06:10 PM, Ben Schmidt wrote:
an operator. I.e. so I can do things like Jap in normal mode
to join a paragraph.
If it doesn't exist I can quite easily make a little script to
do it, but I thought it was already possible.
Well, it does work if you're in visual mode, so you can do
vapJ
It's not an operator-pending mode expecting a "join over this
motion" but rather a "mark some text to operate on, and then join
it", so it's not quite what you asked for, but close enough that
it might suffice for what you want. Otherwise, you may have to
go spelunking in backwaters of 'opfunc' and "g@" to get what you
want. It's still 2 characters ("g@<motion>" instead of
"v<motion>J"), it would just be in the order you want.
-tim
:help v_J
:help 'opfunc'
:help g@
:help :map-operator
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php