lyuts / vim-rtags

Vim bindings for rtags, llvm/clang based c++ code indexer.
BSD 2-Clause "Simplified" License
282 stars 56 forks source link

rtags#InitPython can not work with python3 #93

Closed pangchol closed 6 years ago

pangchol commented 6 years ago

The rtags#InitPython can not work with python3 , suggest modify:

function! rtags#InitPython() if has('python') python << endpython import vim

script_folder = vim.eval('s:script_folder_path') sys.path.insert(0, script_folder)

import vimrtags

endpython elseif has('python3') python3 << endpython import vim

script_folder = vim.eval('s:script_folder_path') sys.path.insert(0, script_folder)

import vimrtags

endpython endif