Vim 8.2 makeprg does not inherit PATH
authorSergey Matveev <stargrave@stargrave.org>
Sat, 14 Dec 2019 11:35:52 +0000 (14:35 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 14 Dec 2019 11:35:52 +0000 (14:35 +0300)
vim/.vim/ftplugin/python/pep8.vim

index 5570eb608107ca341f3b8e0390aa93a1bea89b0e..7143e752f5d2c41090c9b3fce3a55f8a5d48f80f 100644 (file)
@@ -6,7 +6,7 @@
 
 sign define P8 text=P8 texthl=Error
 function! s:pep8()
-    set makeprg=pycodestyle\ --select=E,W\ %
+    set makeprg=PATH=$PATH\ pycodestyle\ --select=E,W\ %
     silent make
     sign unplace *
     let l:id = 1