1
0
mirror of https://github.com/amix/vimrc synced 2025-07-13 06:35:01 +08:00
This commit is contained in:
vsooda
2015-08-18 15:21:35 +08:00
parent 3bf7cc5629
commit 0e2abf1262
3 changed files with 4 additions and 2 deletions

View File

@ -70,7 +70,7 @@ function! s:init_python()
" avoids starting both of them.
" Get default python version from interpreter in $PATH.
let s:def_py = system("python -c 'import sys; sys.stdout.write(str(sys.version_info[0]))'")
let s:def_py = system('python -c '.shellescape('import sys; sys.stdout.write(str(sys.version_info[0]))'))
if v:shell_error != 0 || !len(s:def_py)
if !exists("g:jedi#squelch_py_warning")
echohl WarningMsg