Hmm.. My imap is definitely invoked (it does the save just fine; it just moves the cursor). I don't have any InsertEnter or InsertLeave autocommands, either (Vim 7f).
I guess it must be some setting somewhere -- I'll start with a clean Vim and see what happens, unless someone else can shed some insight on this, please. At least now I know that it's an isolated case and doesn't happen to everybody else. Thanks, Salman. > -----Original Message----- > From: Yakov Lerner [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 25, 2006 9:58 AM > To: Halim, Salman > Cc: [email protected] > Subject: Re: <c-o> vs. <esc> and gi > > On 4/25/06, Halim, Salman <[EMAIL PROTECTED]> wrote: > > > nmap <f2> :update<cr> > > imap <f2> <c-o><f2> > > > > The inconsistency I have noticed is when I am at the end of a line, > > typing away (making the line longer). If, while in insert > mode, I hit > > <f2>, it performs the update, but leaves the cursor just before the > > last character on the line (one character to the left of where I > > actually was). > > For me, cursor remains where it was after f2 in insert mode. > I don't have paste and I see for sure that imapping is indeed invoked. > > Yakov >
