Fievel work for python3 support

This commit is contained in:
David Beniamine
2016-09-05 15:26:03 +02:00
5 changed files with 13 additions and 13 deletions

View File

@@ -51,10 +51,12 @@ highlight default link TodoDate PreProc
highlight default link TodoProject Special
highlight default link TodoContext Special
let b:curdir = expand('<sfile>:p:h')
let s:script_dir = b:curdir . "/python/"
if has('python')
let b:curdir = expand('<sfile>:p:h')
let s:script_dir = b:curdir . "/python/"
execute "pyfile " . s:script_dir. "todo.py"
elseif has('python3')
execute "py3file " . s:script_dir. "todo.py"
endif
let b:current_syntax = "todo"