From 9f781f1e166430da683b3a2296de5777ae08431d Mon Sep 17 00:00:00 2001 From: Simone Date: Wed, 27 May 2015 03:50:21 +0200 Subject: [PATCH] Fixed project path folder l:fileName always results as /path/to/file.php path. 'tabe .' transform openFileCommand in tabe ./path/to/file.php or rather, ... current folder --- plugin/vim-composer.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/vim-composer.vim b/plugin/vim-composer.vim index 1fc3d61..caa5b8e 100644 --- a/plugin/vim-composer.vim +++ b/plugin/vim-composer.vim @@ -62,7 +62,7 @@ function! ComposerKnowWhereCurrentFileIs() let l:numberOfResults = system(l:commandFileFound) if l:numberOfResults == 1 let l:fileName = system(l:command) - let l:openFileCommand = 'tabe ' g:project_path . l:fileName + let l:openFileCommand = 'tabe .' . l:fileName exec l:openFileCommand else echo "No unique file found in composer's generated files"