Download:
child 164:84e6c489ca2a
parent 162:3a9410f18f71
163:41a60371e872
Anton Shestakov <av6@dwimlabs.net>, Fri, 18 Jan 2019 20:42:56 +0800
.vimrc: add word bounds to python 2 vs 3 check, just in case

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
.vimrc file | annotate | diff | comparison | revisions
--- a/.vimrc Fri Jan 18 20:41:51 2019 +0800
+++ b/.vimrc Fri Jan 18 20:42:56 2019 +0800
@@ -110,7 +110,7 @@
au FileType python call s:check_if_python3()
fun! s:check_if_python3()
- if getline(1) =~ '#!.*python3'
+ if getline(1) =~ '#!.*\<python3\>'
let g:syntastic_python_checkers=["pyflakes3"]
endif
endfun