mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
在文件vimrc中添加:
execute pathogen#infect()
如果找不到vimrc文件可以新建一个文件.vimrc:
vim ~/.vimrc
然后将如下语句添加到新建的文件.vimrc
execute pathogen#infect()
syntax on
filetype plugin indent on
更新jedi
pip install jedi
安装jedi-vim
cd ~/.vim/bundle/
git clone --recursive https://github.com/davidhalter/jedi-vim.git ~/.vim/bundle/jedi-vim
添加如下语句到~/.vimrc
Plugin 'davidhalter/jedi-vim'
然后就可以使用了,默认自动补全
参考:
https://github.com/tpope/vim-pathogen
https://github.com/davidhalter/jedi-vim