" core is written in Python for easy JSON/HTTP support " do not continue if Vim is not compiled with Python support if exists("g:github_issues_pyloaded") || !has("python") && !has("python3") finish endif let s:path = fnamemodify(resolve(expand(':p')), ':h') . '/../rplugin/python/ghissues.py' if has("python3") command! -nargs=1 Python python3 execute 'py3file ' . s:path else command! -nargs=1 Python python execute 'pyfile ' . s:path endif " Default to not having loaded xterm let g:gissues_xterm_colors = 0 function! ghissues#init() let g:github_issues_pyloaded = 1 " Load in colors if we're in terminal mode if &term == "xterm-256color" call gh_colors#init() endif endfunction " vim: softtabstop=2 expandtab shiftwidth=2 tabstop=2