diff options
| author | jdhao <jdhao@hotmail.com> | 2019-12-09 23:21:28 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2019-12-09 23:21:28 +0800 |
| commit | 62d8266f0778724d8f2510e8b3df9b4d57a29da2 (patch) | |
| tree | 26843c9b95b4a69d240f2a81b4975ef8e08acba1 /variables.vim | |
| parent | 0e89d956fd59729a08d51d0d5865bea0aa3ed42d (diff) | |
Update system check method
Diffstat (limited to 'variables.vim')
| -rw-r--r-- | variables.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/variables.vim b/variables.vim index 9aaf692..562e154 100644 --- a/variables.vim +++ b/variables.vim @@ -6,9 +6,9 @@ let g:loaded_python_provider=0 " Path to Python 3 interpreter (must be an absolute path), make startup " faster. See https://neovim.io/doc/user/provider.html. if executable('python') - if has('win32') + if g:is_win let g:python3_host_prog=substitute(exepath('python'), '.exe$', '', 'g') - elseif has('unix') + elseif g:is_linux || g:is_mac let g:python3_host_prog=exepath('python') endif else @@ -39,4 +39,4 @@ let g:loaded_tarPlugin = 1 let g:loaded_matchit = 1 let g:loaded_matchparen = 1 "}} -"}} +"} |
