位置: 编程技术 - 正文

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语言编译器)

  • 取得投资款属于什么过程
  • 车辆出现质量问题
  • 工会经费余额在借方怎么办
  • 什么企业符合加计扣除的条件
  • 代收税款
  • 企业所得税减半征收政策
  • 联营扣点方案
  • 固定资产转为投资性房地产折旧
  • 分摊材料成本差异率怎么算
  • 公司开发票就会报税吗?
  • 补缴企业所得税滞纳金账务处理
  • 当月冲红发票会导致上月发票作废吗?
  • 补计提去年的增值税
  • 专票作废流程是什么意思
  • 何为销项税额
  • 普通发票个人所得税隔审了怎么弄
  • 独立核算分公司可以享受小型微利企业优惠吗
  • 全部出售子公司怎么做账
  • 公司充加油卡发票税额为0 怎么入账
  • 教育附加税怎么退
  • 资产处置收益属于利润表项目吗
  • 对账单和电子回单区别
  • 短期投资是会计准则吗
  • 更正或作废申报怎么填
  • 怀特岛郡国旗
  • macos big sur怎么恢复出厂设置
  • 商品结转成本后怎么做账
  • 低值易耗品的三级科目有哪些
  • 企业通讯费管理办法
  • php多图片上传到数据库
  • 工程分包合同
  • YOLOv5网络结构组成
  • html里面有什么
  • vue中的echarts
  • php中字符串的连接运算符是( )
  • 命令行延时
  • Python打开文件的代码
  • 外币交易的会计分录怎么写
  • 其他应收款利息按什么计算
  • 项目差旅费可以直接入成本吗
  • 小规模附加税减免政策2023最新
  • 应付劳务费怎么做账
  • 会计上需要结转的科目
  • 夏天单位发防暑茶
  • 上市公司股票增发条件
  • 机动车发票红冲后重新开具
  • 高新技术企业研发费用归集
  • 未开票收入账务处理分录
  • 递延所得税负债会计分录
  • 全资子公司并入母公司
  • 什么是委托加工原材料
  • 给投资人的利润属于什么科目
  • 投资性房地房地产
  • 营改增 交通运输
  • 在建工程转固后计提折旧
  • ubuntu git not found
  • centos挂载cd
  • win8.1输入法打不了中文
  • win 8系统怎么样
  • mac刻录工具
  • win7怎么运行itunes
  • 在linux系统中查看文件的内容命令
  • win8系统关机在哪
  • win10预览体验计划不显示
  • win7出现蓝屏怎么办
  • win10系统怎么找到桌面
  • 微信小程序选择地址
  • Android 让EditText失去焦点避免自动弹出输入法
  • 代码sd是什么意思
  • js双击触发
  • formatter参数
  • js中check
  • jquery网页跳转
  • js闭包详解
  • 简述python语言
  • 税控盘如何查询上报汇总成功
  • 停车场收费需要什么手续
  • 长沙的河西包含哪几个区
  • 代理记账公司简介模板范文
  • 重庆国税局官网登录入口查询
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设