Re: Move cursor in insert mode without breaking history?

2006-09-29 Thread Karl Guertin
On 9/28/06, Karl Guertin [EMAIL PROTECTED] wrote: 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 A followup. I do have this working inoremap ()C-R=NoUndoMove(-1)CR inoremap )

Move cursor in insert mode without breaking history?

2006-09-28 Thread Karl Guertin
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-Cf)a But it breaks history so repeat (.) doesn't re-insert the entire string. Is there any built in way to

Re: Move cursor in insert mode without breaking history?

2006-09-28 Thread A.J.Mechelynck
Karl Guertin wrote: 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-Cf)a But it breaks history so repeat (.) doesn't re-insert the entire string. Is there