Under ":help +cmd" in doc/editing.txt, I think something should be added
or changed to mention that +/pattern positions the cursor, not on the
*first* line matching /pattern/ (from the top of the file), but on the
*next* matching line after wherever the cursor ends up after (at least)
BufReadPost autocommands have been run (I haven't tested BufWinEnter,
but I happen to have a BufReadPost autocommand to recover the latest
known cursor position, see lines 77sqq. of vimrc_example.vim): if the
cursor was previously on the only line matching the pattern, I get a
"search hit BOTTOM, continuing at TOP" message (fleetingly, but recorded
in the message history); that message doesn't appear if I use +1/pattern
instead of just +/pattern .
Best regards,
Tony.
--
"I don't believe in astrology. But then I'm an Aquarius, and Aquarians
don't believe in astrology."
-- James R. F. Quirk
--
You received this message from the "vim_dev" 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