Thursday, July 19, 2012

vim and .bat files with Windows Server 2008

I'm using vim in a .bat file to search for and remove quotation marks
from a series of .txt files. This .bat file works fine with XP but
not with Windows Server 2008. The issue appears to be that the :q in
the source file not only quits the vim session but also quits the
batch file. Is this a bug or is there something in the configuration
of vim on Windows Server 2008 that will prevent this. specifically,
the .bat file is
dir
vim -c "source control.txt" "file1.txt"
dir

and the control file is
:g/\"/s/\"//g
:w
:q

The second dir never executes.

--
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

No comments:

Post a Comment