Download:
child 148:dc17a553936b
parent 146:7d814c3e7446
147:de46ad38abf8
Anton Shestakov <av6@dwimlabs.net>, Wed, 28 Feb 2018 21:48:46 +0800
.vimrc: use pyflakes3 for python 3

1 файлов изменено, 8 вставок(+), 0 удалений(-) [+]
.vimrc file | annotate | diff | comparison | revisions
--- a/.vimrc Wed Feb 28 21:45:12 2018 +0800
+++ b/.vimrc Wed Feb 28 21:48:46 2018 +0800
@@ -107,6 +107,14 @@
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()
+
+fun! s:check_if_python3()
+ if getline(1) =~ '#!.*python3'
+ let g:syntastic_python_checkers=["pyflakes3"]
+ endif
+endfun
+
" signify
let g:signify_vcs_list = ["git", "hg"]