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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

node.js - Bad Request - node js ajax post -

uitableview - Create and use custom prototype table cells in xamarin ios using storyboard -