On Friday, June 13, 2014 4:48:48 PM UTC-7, Ben Fritz wrote: > > I disagree, I think the help is wrong. > > +/pattern/ is actually saying "run the command /pattern/ after launching Vim". > > This command is just giving a range specifier without a following command, > which always jumps to the line. Since a search pattern as a range always > starts the search at the cursor position, then it should always start from > the current cursor position.
I can see how, given the definitions you describe, the current behavior results. But that result, while technically consistent, is not desirable in the context of starting vim with a search pattern. In this context, I believe the concept of "current position" is problematic, rather than useful. > If you want it to start at the top of the file, then do: > > vim +1 +/pattern/ > > or: > > vim +1,/pattern/ This is very useful information for me, and I thank you for your help. -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
