先安装好Vundle
vi ~/.vimrc文件代码
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
" python模块补全 例如 os.
Plugin 'davidhalter/jedi-vim'
" " python自动缩进
Plugin 'vim-scripts/indentpython.vim'
" " 缩进指示线
Plugin 'Yggdroot/indentLine'
"Plugin 'flazz/vim-colorschemes'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'preservim/nerdtree'
Plugin 'Valloric/YouCompleteMe'
call vundle#end()
vi 装态下:PluginInstall
安装:(以下二个都要装,不然会报错
apt install build-essential cmake vim-nox python3-dev
apt install mono-complete golang nodejs default-jdk npm
就进入
cd ~/.vim/bundle/YouCompleteMe
python3 install.py --all
安装完成