Tuesday, March 30, 2010

Possible error with jumplist management in insert mode with

Hello,
Please do the following:
1)
gvim -u NONE file1 (cursor is on line1, column1)
/pattern1 (cursor at the beginning of pattern1)
/pattern2 (cursor at the beginning of pattern2)
CTRL-End (to go to end-of-file)

Now do CTRL-O several times. You go to pattern2, then to pattern1,
then to line1, column 1. All as expected.
CTRL-I goes to pattern1, pattern2, end-of-file (OK)

2) Now do the same in insert mode.
gvim -u NONE file1 (cursor is on line1, column1)
i (to go to insert mode)
<C-O>/pattern1 (cursor at the beginning of pattern1)
<C-O>/pattern2 (cursor at the beginning of pattern2)
CTRL-End (to go to end-of-file)

Now do "CTRL-O CRTL-O" several times. You go to pattern1, then to
line1, column1.
"CTRL-O CTRL-I" goes to pattern1, end-of-file.

Conclusion: pattern2 has vanished from the jumplist in 2).

NB: It does not occur if you repalce CTRL-End with <C-O>G in 2)
(this can be a work-around)

Best regards
Jean Johner

--
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.

No comments: