sudo add-apt-repository ppa:fcwu-tw/ppa; sudo apt-get update; sudo apt-get install vim
UTF-8
:locale
/etc/default/locale
,修改变量LANG:LANG="zh_CN.UTF-8"
LANG="en_US.UTF-8"
localectl set-locale.utf8
localectl set-locale.UTF-8
/etc/locale.conf
修改LANG=zh_CN.utf8
sudo apt-get install libclang-dev
;首先要确保你已经安装类cmake。如果没有,请按如下安装:sudo apt-get install cmake
;其次需要确保你有一些 Python 头文件。如果没有,请按如下安装:sudo apt-get install python-dev
sudo apt-get install python-dev
。~/.vim/bundle/YouCompleteMe
;如果~/.vim/没有bundle文件夹,执行命令:git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
。~/.vim/bundle
手动下载YouCompleteMe,输入如下命令:git clone https://github.com/Valloric/YouCompleteMe.git
; 手动下载完后检查仓库的完整性,切换到 YouCompleteMe 目录下,输入如下命令:git submodule update --init --recursive
cd ~/.vim/bundle/YouCompleteMe; ./install.sh --clang-completer
;如果不需要对C-family的语义?持:cd ~/.vim/bundle/YouCompleteMe; ./install.sh
;如果需要支持C#,添加 --omnisharp-complete。如果需要支持Go添加--gocode-completerg++: internal compiler error: Killed (program cc1plus) Please submit a full bug report
sudo dd if=/dev/zero of=/swapfile bs=64M count=16 sudo mkswap /swapfile sudo swapon /swapfile
sudo swapoff /swapfile sudo rm /swapfile
filetype off " required! set rtp+=~/.vim/bundle/vundle/ call vundle#rc() Plugin 'Valloric/YouCompleteMe' filetype plugin indent on " required! let g:ycm_global_ycm_extra_conf='~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
vim ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py
;添加信息如下:'-isystem', '/usr/include', '-isystem', '/usr/include/c++/4.8.4', '-isystem', '/usr/include/c++/4.9.2', '-isystem', '/usr/include', '/usr/include/x86_64-linux-gnu/c++',
/usr/local/include
里面,则添加以下信息:'-isystem', '/usr/local/include',
/usr/include/c++/
中的文件夹名称(即C++版本号)修改:'-isystem', '/usr/include/c++/4.8.4', '-isystem', '/usr/include/c++/4.9.2',
Copyright © 2013-2021 8a.hk All Rights Reserved. 八艾云 版权所有 中山市八艾云计算有限公司 粤ICP备14095776号