From dfe55309a4961ac9143635e2c6b935214907315d Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Sun, 20 May 2018 16:57:12 +0100 Subject: [PATCH] Include `--listfullpaths` in `makeprg` Before this change, running `:make` on a file with errors when not in the same directory as the file would open a buffer in the cwd. This change fixes this: the compiler outputs the full path to the file, so a buffer is always opened for the correct file. `--listfullpaths` was used instead of `--listFullPaths` to be consistent with `autoload/nim.vim`. --- compiler/nim.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/nim.vim b/compiler/nim.vim index 740c6c7..6fd446b 100644 --- a/compiler/nim.vim +++ b/compiler/nim.vim @@ -11,7 +11,7 @@ endif let s:cpo_save = &cpo set cpo-=C -CompilerSet makeprg=nim\ c\ --verbosity:0\ $*\ %:p +CompilerSet makeprg=nim\ c\ --verbosity:0\ --listfullpaths\ $*\ %:p CompilerSet errorformat= \%-GHint:\ %m,