位置: 编程技术 - 正文

Linux系统Vim编辑器如何安装YouCompleteMe插件?(linux系统vim编辑readonly option)

编辑:rootadmin

推荐整理分享Linux系统Vim编辑器如何安装YouCompleteMe插件?(linux系统vim编辑readonly option),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:linux系统vim编辑教程,linux系统vim编辑器里逗号标红,linux系统vim编辑器mvn,linux系统vim编辑readonly option,linux系统vim编辑器,linux系统vim编辑器里逗号标红,linux系统vim编辑后怎么退出,linux系统vim编辑器,内容如对您有帮助,希望把文章链接给更多的朋友!

  编译配置选项:

  /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 ~/.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   Plugin ‘L9’

  Plugin ‘FuzzyFinder’

  ” scripts not on GitHub

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

Linux系统Vim编辑器如何安装YouCompleteMe插件?(linux系统vim编辑readonly option)

  Plugin ‘  ” 。。。

  filetype plugin indent on “ required

  Bundle ‘Valloric/YouCompleteMe’

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

  进程如下,+号表示已经安装,》表示正在安装

  。 Plugin ‘gmarik/vundle’ |~

  + Plugin ‘tpope/vim-fugitive’ |~

  + Plugin ‘Lokaltog/vim-easymotion’ |~

  + Plugin ‘tpope/vim-rails.git’ |~

  + Plugin ‘rstacruz/sparkup’ |~

  + Plugin ‘L9’ |~

  + Plugin ‘FuzzyFinder’ |~

  》 Plugin ‘  t.git’ |~

  Plugin ‘  ugin’ |~

  Plugin ‘Valloric/YouCompleteMe’ |~

  Helptags

  备注:结束时有个错误,这是正常的,因为ycm需要手工编译出库文件

  Done! With errors; press l to view log

  ycm_client_support.[so|pyd|dll] and ycm_core.[so|pyd|dll] not detected; you need

  to compile YCM before using it. Read the docs!

  到 .vim/bundle/YouCompleteMe 下

  /install.sh --clang-completer

  参数是为了支持c/c++ 的补全。

  安装完成后,进行一些简单的配置就可以使用。

  YouCompleteMe 的补全配置文件在/bundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py,这是个隐藏文件。

  默认会使用这个文件,也可以把这个文件copy到工程的根目录中作修改,打开工程文件时会优先使用当前目录下的配置文件。

  如果找不到,会根据配置中的ycm_global_ycm_extra_conf 进行查找。

  在.vimrc 中添加

  let mapleader = ”,“ ” 这个leader就映射为逗号“,”

  let g:ycm_global_ycm_extra_conf = ‘~/.vim/bundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py’ “配置默认的ycm_extra_conf.py

  nnoremap 《leader》jd :YcmCompleter GoToDefinitionElseDeclaration《CR》 “按,jd 会跳转到定义

  let g:ycm_confirm_extra_conf=0 “打开vim时不再询问是否加载ycm_extra_conf.py配置

  let g:ycm_collect_identifiers_from_tag_files = 1 “使用ctags生成的tags文件

  

标签: linux系统vim编辑readonly option

本文链接地址:https://www.jiuchutong.com/biancheng/350450.html 转载请保留说明!

上一篇:Linux Kernel 4.2下载 更新内容一览

下一篇:linux下安装编译网卡驱动的方法(linux如何安装c语言编译器)

  • 应交增值税是什么意思
  • 税控盘开票软件访问数据库错误
  • 计算应纳税所得额时 不得扣除支出有哪些
  • 季度缴纳企业所得税计算方法
  • 什么是税务学
  • 国有企业投资方式
  • 资产减值损失影响利润吗
  • 会计核算是否健全 填错了有影响吗
  • 存货的领用
  • 报关单上消费使用单位可以交税么
  • 火车票增值税申报表怎么填
  • 建筑行业未收款先开发票如何做账?
  • 应收账款计提坏账准备是谨慎性原则吗
  • 电商刷单的成本如何处理?
  • 材料暂估价结算调整规定
  • 增值税没达到起征标准
  • 房地产预缴增值税是含税还是不含税
  • 普通发票企业有用吗
  • 开发票六位代码
  • 原材料增值税怎么算
  • 预付账款和其他应收款可以抵消吗
  • 分期开发是什么意思
  • 财务科目明细表格模板
  • 购置税和购车税一样吗
  • 城建税有哪些征税项目
  • 实收资本的期初余额在借方还是贷方
  • 拆迁的支出费用包括哪些
  • 结转基本生产成本
  • 公司股权分红款需要税吗
  • win7玩什么游戏流畅
  • 对于接受捐赠的资产价值,应计入当期损益
  • 双系统启动界面
  • 怎么删除win10开机多余选项
  • win10任务视图怎么用
  • 原材料因管理不善发生毁损
  • php生成随机数不重复
  • 评价类模型topsis
  • 六款小巧的HTTP Server[C语言] 贵贵的博客 开发|架构|开源|共享
  • 个人终止投资经营的条件
  • 普票退货需要开红字信息表吗
  • 企业收到银行未收到怎么做账
  • 公司交公积金可以上调吗
  • js reverse
  • 车间办公用品费用
  • 一联发票和二联发票
  • 有形动产租赁属于经营租赁吗
  • 库存现金的主要内容有哪些
  • 个体户需要给员工买五险一金吗
  • 销售费用期末余额
  • 存货周转率特别高说明什么
  • 股权转让印花税减半征收政策
  • 疫情期间公司购买物品
  • 建筑企业结转成本能不能不分人材机
  • 外币报表折算差额会计分录
  • 培训费产生的差额怎么算
  • 私营企业主的现金流特征
  • win7系统安装win10 怎么安装
  • 如何查看ubuntu系统的版本
  • centos docker安装部署
  • 在windows xp中说法正确的是
  • wfxswtch.exe - wfxswtch是什么进程
  • win8系统崩溃按f8没用
  • windowssystem32configsystem 损坏
  • macbook截
  • macbookpro屏幕显示
  • efs加密解除
  • win7系统账户名怎么看
  • windows7 usb
  • linux使用mv命令,结果文件不见了
  • 注册表cmd
  • 编程中的python
  • jquery json对象
  • jquery怎么实现单页面
  • saltstack安装
  • js初级教程
  • python发邮件代码
  • javascript面向对象编程指南
  • python汉字
  • 天津税务查询电话
  • 代账公司盈利水平如何
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设