On Tuesday, June 17, 2014 12:50:46 PM UTC-5, Rob Retter wrote: > 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. > >
By default, Vim always places the cursor on the first line of a file when opening the file. However, a common addition to a .vimrc, included in vimrc_example.vim distributed with Vim, is to add an autocmd to resume editing from the last position when loading a file. Another suggested autocmd is in :help last-position-jump. If you find Vim starting up somewhere other than the first line of a file, that is NOT the default behavior. You probably have a similar autocmd in your .vimrc somewhere. -- -- 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.
