YCM安装教程,来自YCM插件的github官网
2017-07-08 11:40
525 查看
YCM是一个vim的代码自动补全插件,而且还可以提示语法错误,提示错误行号。
安装教程
Ubuntu Linux x64
These instructions (using install.py) are the quickest way to install YouCompleteMe, however they may not work
for everyone. If the following instructions don't work for you, check out the full
installation guide.
Make sure you have Vim 7.4.1578 with Python 2 or Python 3 support. Ubuntu 16.04 and later have a Vim that's recent enough. You can see the version of Vim installed by running
vim --version. If the version is too old, you may need to compile Vim from
source (don't worry, it's easy).
Install YouCompleteMe with Vundle.
Remember: YCM is a plugin with a compiled component. If you update YCM using Vundle and the ycm_core library APIs have changed (happens rarely), YCM will notify you to recompile it. You
should then rerun the install process.
Install development tools and CMake:
sudo apt-get install build-essential cmake
Make sure you have Python headers installed:
sudo apt-get install python-dev python3-dev
Compiling YCM with semantic support for C-family languages:
cd ~/.vim/bundle/YouCompleteMe ./install.py --clang-completer
Compiling YCM without semantic support for C-family languages:
cd ~/.vim/bundle/YouCompleteMe ./install.py
The following additional language support options are available:
C# support: install Mono and add
--omnisharp-completerwhen
calling
./install.py.
Go support: install Go and add
--gocode-completerwhen
calling
./install.py.
TypeScript support: install Node.js and npm then install the
TypeScript SDK with
npm install -g typescript.
JavaScript support: install Node.js and npm and add
--tern-completerwhen
calling
./install.py.
Rust support: install Rust and add
--racer-completerwhen
calling
./install.py.
To simply compile with everything enabled, there's a
--allflag. So, to install with all language features, ensure
xbuild,
go,
tsserver,
node,
npm,
rustc,
and
cargotools are installed and in your
PATH,
then simply run:
cd ~/.vim/bundle/YouCompleteMe ./install.py --all
That's it. You're done. Refer to the User Guide section on how to use YCM. Don't forget that if you want the C-family semantic completion engine to work, you will need to provide the compilation flags for your project to YCM. It's all
in the User Guide.
YCM comes with sane defaults for its options, but you still may want to take a look at what's available for configuration. There are a few interesting options that are conservatively turned off by default that you may want to turn on.
附官网跳转地址:https://github.com/Valloric/YouCompleteMe#ubuntu-linux-x64
相关文章推荐
- MyEclipse 安装插件 Github安装/使用 教程
- MyEclipse 安装插件 Github安装/使用 教程
- github atom 安装activate-power-mode插件详细教程
- github atom 安装activate-power-mode插件详细教程
- 从github上安装插件
- [游戏技术]求生之路插件安装教程
- (转)eclipse3.2.1及插件安装基础教程
- eclipse3.2.1及插件安装基础教程
- Visual Studio 2005插件编写与安装教程
- Discuz! X2截屏插件整合教程-自动安装方法-Xproer.ScreenCapture
- Eclipse 3.5.2 安装VE插件详细教程
- eclipse及插件安装基础教程[copy and verify from web]
- wordpress信息安全插件 HTTPS(SSL)的安装教程
- Ubuntu Linux 官网 u盘安装 u盘系统 图文教程
- 火狐浏览器自带抓包插件及httpWatch9.1安装软件+教程
- WordPress初级教程-15: Wordpress插件的安装和使用/ Plugins
- Visual Studio 2005插件编写与安装教程
- eclipse3.2.1及插件安装基础教程
- Silverlight 2学习教程(八):检测客户端是否安装 Silverlight 插件
- maemo IDE eclipse插件esbox for linux安装教程