On Friday, January 16, 2015 at 9:55:13 AM UTC-6, Ben Fritz wrote:
> 
> Alternatively, there is no way in insert mode to insert a character after the 
> cursor, or delete the character after the cursor. Such a capability would 
> allow:
> 
> inore <expr> ( ")".PutCharAfter(")")
> inore <expr> ) GetNextChar()==")" ? DeleteNextChar().")" : ")"
> 

Someone here might suggest using <C-O> and an :undojoin operation inside those 
functions. And maybe that could work. That is basically the method used by the 
delimitMate pull request I keep mentioning. The problem with this method, is 
that the <C-O> triggers the special multi-line insert in visual block mode, and 
the rest of the insertion just affects one line. Perhaps just fixing this would 
allow this method to succeed?

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to