Thanks, Gerald. I did notice that when I ran with gvim -u NONE -U NONE, the behaviour wasn't noticed. I'm thinking it might be one of my BufWrite/Pre autocommands that's doing something, but I'll worry about it if it becomes a huge problem. I just wanted to make sure there wasn't an inconsistency in Vim.
I admit, I never use Replace mode, so I wouldn't have noticed this problem. Thanks for the information, though. Salman. > -----Original Message----- > From: Gerald Lai [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 25, 2006 11:48 AM > To: Halim, Salman > Cc: Yakov Lerner; [email protected] > Subject: RE: <c-o> vs. <esc> and gi > > On Tue, 25 Apr 2006, Halim, Salman wrote: > > > 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). > [snip] > > For me (Vim 7.0c), the Insert cursor appears to be out of > place by one character only for the duration of an error > message. After waiting a little while for the red error > message to go away, the Insert cursor snaps back into place. > > To test, try to <C-o>:update a new modified buffer or a > read-only buffer. > > The only difference between <Esc><cmd> and <C-o><cmd>gi is > that with "gi", you potentially lose REPLACE mode. "gi" > always brings back INSERT mode. I have asked in the past for > "gi" to remember Replace mode, but it was never picked up. > -- > Gerald >
