On 10/18/11 06:50, Elias Diem wrote:
Without giving the '-' argument to 'less'. Why doesn't this work with vim?
Because Vim can take piped commands: [2]tim@bigbox:~/tmp$ seq 10 > test.txt [3]tim@bigbox:~/tmp$ (echo ':5s/$/five'; echo ":wq") | vi test.txt Vim: Warning: Input is not from a terminal [4]tim@bigbox:~/tmp$ cat test.txt 1 2 3 4 5five 6 7 8 9 10 -tim -- 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
