Replace cd with pushd,

currently NOT working for windows
This commit is contained in:
Wilson Y. Wong
2013-08-19 19:16:32 -07:00
parent e07e6aa601
commit 6955f6dc91

View File

@@ -108,7 +108,7 @@ function! s:discard_stdout_and_stderr()
endfunction
function! s:command_in_directory_of_file(cmd)
let s:cmd_in_dir = 'cd ' . s:directory_of_file() . ' && ' . a:cmd
let s:cmd_in_dir = 'pushd ' . s:directory_of_file() . ' && ' . a:cmd
return substitute(s:cmd_in_dir, "'", '"', 'g')
endfunction