On Thu, March 25, 2010 3:41 pm, Jean Johner wrote: > A little problem however > Please test the 2 following situations > > 1) > gvim -y file1 > put the cursor on line 10, end of line (column 24) > Quit with the cross top-right of windows > gvim -y file1 (to reopen) > Result: the cursor is at end of line 10 (OK) > > 2) > gvim -y file1 > put the cursor on line 10, end of line (column 24) > Quit with Menu|Exit (or CTRL-O :q) > gvim -y file1 (to reopen) > Result: the cursor is on line 10, column 23
This happens, because ctrl-o moves the cursor when leaving insert mode. You can prevent this by using <c-\><c-o> The same is true for using the menu. The help menu is created using the :amenu command, which prepends each command with <c-o> in insert mode. For insert mode, this should probably be <c-\><c-o>. But I am not sure, if you can change this. May be, this needs another patch. regards, Christian -- 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 To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
