On Thu, March 25, 2010 4:43 pm, Christian Brabandt wrote: > On Thu, March 25, 2010 3:41 pm, Jean Johner wrote: >> 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.
BTW: I noticed some unpleasant side effects when playing around with Andy's solution. The plugin seems to interfer with jumping to the correct help section. Using :h topic this put me somewhere near the topic, but not at the right position. This does not happen everytime and I assume this only happens, when a help page is opened for the first(?) time. 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.
