我已经安装了 powerline,但是“you complete me”总是会抛出一个错误(我尝试过 Ubuntu 16.04 和 Ubuntu 14.04,但两者都有同样的问题)
我已经重新安装了所有我能想到的东西。
我使用脚本来运行它
错误信息:
当我进入 vim 时也会出现错误
电力线安装脚本:
if $POWERLINE; then
echo "POWERLINE"
# Install pip
sudo apt-get install -y python-dev
sudo apt-get install -y python-setuptools
sudo apt-get install -y easy_install
sudo easy_install pip
# Install powerline
sudo pip install powerline-status
# Install git complete
sudo apt-get install -y git bash-completion
# Install Fonts
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
mkdir -p ~/.fonts/
mv PowerlineSymbols.otf ~/.fonts/
fc-cache -vf ~/.fonts/
mkdir -p ~/.config/fontconfig/conf.d/
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
fi
rc文件替换脚本:
if $RC; then
echo "RC"
# Copy rc file
sudo apt-get install -y vim
sudo apt-get install build-essential cmake
sudo apt-get install -y python-dev
cp ./.vimrc ~
cp ./.bashrc ~
cp ./.bash_profile ~
cp ./.screenrc ~
# Install vim plugin
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall
cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer --omnisharp-completer --gocode-completer --tern-completer
fi