I am using Windows gVim and I am trying to invoke commands to run on cygwin's bash. It is working, but the working directory is set to $HOME every time. Would it possible to set to the current file's directory?
I have the following line in my .vimrc:
set shell=C:/cygwin/bin/bash set shellcmdflag=--login\ -c set shellxquote=\" I have the following lines in my .profile:
if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi fi