Re: the files can not open
> Hi everyone , tonight I found something puzzled.I think you'd have to explicitly copy what you typed; where you
> I use the command sentence :sed 's/Too/Too much/w>> a.txt'
> to deal with quote.txt file ;
> at last there a file with name ">>a.txt" ;
> so I want to open it to see what is in it.
> but i can not open;
typed it; what you got back; and what you want it to do. Vim
doesn't have a ":sed" command. Possibilities are that you want
:g/Too/s//Too much/|.w >> a.txt
:w !sed 's/Too/Too much/;w a.txt'
:! sed 's/Too/Too much/' quote.txt >>a.txt
(that last one is the same as just executing that command on the
which you can read about at
If you give a clearer picture of what you want to do (and why you
want to bring sed into the picture instead of doing everything in
vim), other solutions might manifest.
You received this message from the "vim_use" 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