On Tuesday, March 4, 2014 1:15:40 AM UTC-6, Gary Johnson wrote: > > > Using a GUI file manager, I opened this file with gvim. I made some > > changes to it, then tried comparing the changed buffer with the > > copy on disk with this command which I have used for years: > > > > :w !diff "%" - > > > > The result surprised me. > > > > diff: Dropbox/vimfiles/filetype \(toucan's conflicted copy > 2014-03-01\).vim: No such file or directory > > > > shell returned 2 > > > > However, if instead I typed > > > > :w !diff "^R%" - > > > > where ^R means Ctrl-R, the command became > > > > :w !diff "Dropbox/vimfiles/filetype (toucan's conflicted copy > 2014-03-01).vim" - > > > > and worked fine. > > >
Isn't this situation what shellescape() is designed for? That's not saying shellescape() will work, but I think it's supposed to work, unlike using a bare % which should always work for internal Vim commands but will only work by accident in external commands. -- -- 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.
