Download:
child 253:c5a20fa03fe4
parent 249:ba383577c9db
250:3318af99d579
Anton Shestakov <av6@dwimlabs.net>, Sun, 27 Nov 2022 01:44:17 +0400
.vimrc: default to pyflakes3 and python3

1 файлов изменено, 5 вставок(+), 5 удалений(-) [+]
.vimrc file | annotate | diff | comparison | revisions
--- a/.vimrc Sat Nov 26 03:08:28 2022 +0400
+++ b/.vimrc Sun Nov 27 01:44:17 2022 +0400
@@ -115,17 +115,17 @@
let g:syntastic_enable_highlighting = 1
let g:syntastic_html_checkers = ["jshint"]
let g:syntastic_html_jshint_exec = "~/node_modules/jshint/bin/jshint"
-let g:syntastic_python_checkers = ["pyflakes"]
+let g:syntastic_python_checkers = ["pyflakes3"]
let g:syntastic_lua_checkers = ["luac", "luacheck"]
let g:syntastic_lua_luacheck_exec = "~/.luarocks/bin/luacheck"
let g:syntastic_javascript_checkers = ["jshint"]
let g:syntastic_javascript_jshint_exec = "~/node_modules/jshint/bin/jshint"
-au FileType python call s:check_if_python3()
+au FileType python call s:check_if_python2()
-fun! s:check_if_python3()
- if getline(1) =~ '#!.*\<python3\>'
- let g:syntastic_python_checkers=["pyflakes3"]
+fun! s:check_if_python2()
+ if getline(1) =~ '#!.*\<python2?\>'
+ let g:syntastic_python_checkers=[]
endif
endfun