I'm trying to get vim to auto-close parenthesis and set it up so that the closing paren jumps past the end of the inserted one. This mapping does the trick:
inoremap ( ()<Left> inoremap ) <C-C>f)a But it breaks history so repeat (.) doesn't re-insert the entire string. Is there any built in way to do a normal mode movement command from insert mode? Or alternatively do what I want in a more robust way? I can write a <C-R> function that returns the appropriate number of <Right>, but I'm trying to avoid that.
