Linux系统Vim如何安装YouCompleteMe插件


在Linux系统中想要让Vim编辑器发挥更大的作用,就要对给给它安装一些插件。比如说YouCompleteMe插件(名字就很形象)。本文就来介绍一下Linux系统Vim如何安装YouCompleteMe插件。

编译配置选项:

。/configure --with-features=huge --enable-pythoninterp --enable-python3interp --enable-luainterp --enable-multibyte --enable-sniff --enable-fontset

在我的机器上装有python2.7.5 和 python3.3, 但加了enable-python3interp参数依然没有支持py3,不知何故,先不管,YouCompleteMe 只要求有py2.6以上。

安装vundle插件

git clone github.com/gmarik/vundle.git ~/.vim/bundle/vundle

在.vimrc中配置

set nocompatible be iMproved, required

filetype off required

set the runtime path to include Vundle and initialize

set rtp+=~/.vim/bundle/vundle/

call vundle#rc()

alternatively, pass a path where Vundle should install plugins

let path = ‘~/some/path/here’

call vundle#rc(path)

let Vundle manage Vundle, required

Plugin ‘gmarik/vundle’

The following are examples of different formats supported.

Keep Plugin commands between here and filetype plugin indent on.

scripts on GitHub repos

Plugin ‘tpope/vim-fugitive’

Plugin ‘Lokaltog/vim-easymotion’

Plugin ‘tpope/vim-rails.git’

The sparkup vim script is in a subdirectory of this repo called vim.

Pass the path to set the runtimepath properly.

Plugin ‘rstacruz/sparkup’, {‘rtp’: ‘vim/’}

scripts from vim-scripts.org/vim/scripts

Plugin ‘L9’

Plugin ‘FuzzyFinder’

scripts not on GitHub

Plugin ‘git://git.wincent.com/command-t.git’

git repos on your local machine (i.e. when working on your own plugin)

Plugin ‘file:///home/gmarik/path/to/plugin’

。。。

filetype plugin indent on required

Bundle ‘Valloric/YouCompleteMe’

保存退出,打开vim,输入 :BundleInstall 进行自动安装

上一篇:Linux系统如何安装和配置Vim IDE

下一篇:Linux终端查看公有IP的技巧


Linuxvim youcompleteme安装 youcompleteme配置
Copyright © 2002-2019 测速网 www.inhv.cn 皖ICP备2023010105号
测速城市 测速地区 测速街道 网速测试城市 网速测试地区 网速测试街道
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!

热门搜索 城市网站建设 地区网站制作 街道网页设计 大写数字 热点城市 热点地区 热点街道 热点时间 房贷计算器