On Sun, Aug 28, 2016 at 03:46:13AM -0700, JohnBeckett wrote: > On Sunday, August 28, 2016 at 8:05:29 PM UTC+10, toothpik wrote: > >> :tabe expected.txt > >> :vert diffs output.txt > > > >> When I last viewed those files, I may have exited with the cursor > >> on the last line. I use the code from ":help restore-cursor" to > >> restore the cursor position, so the diff shows the cursor at the > >> bottom. > > > > there's your problem right there
> What are you saying? That I should never exit a file with the cursor > at the end? Or I should not use the documented restore-cursor code? I've been an advocate of Least Surpise for years, and I have argued that recommending newbies source example_vimrc is a bad idea, because it does things that change vim's behavior in fundamental and, to me at least, unpleasant ways, not to mention complicate my own script writing this restore-cursor business is the most glaring example of these behavior changing things that they should understand before they go sourcing with the blessing of the experts complicating diff is a good example of how a basic behavior modification can throw a monkey wrench into the script writing world er I just looked -- vimrc_example.vim no longer does the restore-cursor trick -- I'm going to have to tone down my rhetoric about the example but, much as 'autochdir' comes with a caution (1) as to side effects on some scripts, so also should an auto-g` (1) When this option is on some plugins may not work. -- -- 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.
