Re: why does :save not work with -stdin-

2007-06-06 Thread Bram Moolenaar
Edward L. Fox wrote: > On 6/6/07, Mohsin <[EMAIL PROTECTED]> wrote: > > I usually do search like this: > > > > $ grep Word *.* | vim -u myvimrc - > > > > $ cat myvimrc > > > >:autocmd StdinReadPost * :sav! /tmp/x > > > > but when I quit :q, vim always asks me to save the file again, > > why

Re: why does :save not work with -stdin-

2007-06-05 Thread Edward L. Fox
Hi Mohsin, On 6/6/07, Mohsin <[EMAIL PROTECTED]> wrote: I usually do search like this: $ grep Word *.* | vim -u myvimrc - $ cat myvimrc :autocmd StdinReadPost * :sav! /tmp/x but when I quit :q, vim always asks me to save the file again, why is the file marked as modified? I tried all co

why does :save not work with -stdin-

2007-06-05 Thread Mohsin
I usually do search like this: $ grep Word *.* | vim -u myvimrc - $ cat myvimrc :autocmd StdinReadPost * :sav! /tmp/x but when I quit :q, vim always asks me to save the file again, why is the file marked as modified? I tried all combinations of flags, but can't get vim to mark the file as