Vim Batch File
This is my vim.bat file. I use this to launch vim from any place (sendto, about:config->view_source.editor.path, etc). This is very handy!
1 @echo off
2 FOR /F "TOKENS=*" %%A IN ('C:\cygwin\bin\cygpath.exe -m "%~f1"') DO SET FN=%%A
3
4 C:
5 chdir C:\cygwin\bin
6
7 bash --login -i -c "rxvt -g 142x54+150+20 -sr -sl 2000 -title \" caseman@screamR [%~f1]\" -e vim \"+set nowrap\" \"+set lbr\" \"%FN%\" %2"
8
9