Hi Roger, On Fri, Mar 13, at 10:59 roger koenker wrote:
[...] > on which I would like to operate on with a file, v.vim that looks > something like this: > > %s/^M\([A-Z][ A-Z]\)/\r\1/g > %s/^M//g I think you have to escape the "^", otherwise it matches "start of line" > g/^ /-1join > write tmp > quit > > If, interactively, I use > > :source v.vim > > where v.vim contains the first 3 lines of the above file, everything > seems fine, but when I try > on the command line > > vim -e -s data.txt <v.vim Try this instead: vim -e -s < v.vim data.txt Regards, Ag. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---