bash - Set shell's working directory to the current file opened in vim -
i using windows gvim , trying invoke commands run on cygwin's bash. working, working directory set $home every time. possible set current file's directory?
i have following line in .vimrc:
set shell=c:/cygwin/bin/bash set shellcmdflag=--login\ -c set shellxquote=\" i have following lines in .profile:
if [ -n "$bash_version" ]; # include .bashrc if exists if [ -f "$home/.bashrc" ]; . "$home/.bashrc" fi fi
i think --login that; remove argument , shell opened in gvim's current directory.
Comments
Post a Comment