From 7b655a7b5c0fae30359763b2d90ac89022eb183f Mon Sep 17 00:00:00 2001 From: Hendrik Purmann Date: Sun, 21 Sep 2014 21:08:54 +0200 Subject: [PATCH] Going back to formerly active directory after running command --- plugin/vimux.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/vimux.vim b/plugin/vimux.vim index e0bf981..f0ce0ee 100644 --- a/plugin/vimux.vim +++ b/plugin/vimux.vim @@ -20,7 +20,7 @@ function! VimuxRunCommandInDir(command, useFile) if a:useFile ==# 1 let l:file = shellescape(expand('%:t'), 1) endif - call VimuxRunCommand("cd ".shellescape(expand('%:p:h'), 1)." && ".a:command." ".l:file) + call VimuxRunCommand("cd ".shellescape(expand('%:p:h'), 1)." && ".a:command." ".l:file." && cd - > /dev/null") endfunction function! VimuxRunLastCommand()