From f9fe109baa19da6ce138dd2b7f18dd9b9d56dc09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Sat, 2 Aug 2014 14:19:17 +0200 Subject: [PATCH] systemroot preferable to windiw --- autoload/latex/latexmk.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/latex/latexmk.vim b/autoload/latex/latexmk.vim index 83bd09f..a659da3 100644 --- a/autoload/latex/latexmk.vim +++ b/autoload/latex/latexmk.vim @@ -266,7 +266,7 @@ function! s:latexmk_set_pid(data) " {{{1 silent execute '!cmd /c "wmic process where ' \ . '(CommandLine LIKE "latexmk\%' . a:data.base . '\%") ' \ . 'get ProcessId /value' - \ . '| \%WINDIR\%\system32\find "ProcessId" ' + \ . '| \%systemroot\%\system32\find "ProcessId" ' \ . '>' . tmpfile . ' "' let pids = readfile(tmpfile) let a:data.pid = strpart(pids[0], 10)