位置: 编程技术 - 正文

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

  • 缴纳增值税的会计科目
  • 高档珍珠镶嵌
  • 税控盘抵扣可以跨年吗
  • 制造费用在借方表示什么
  • 金蝶kis暂存的凭证怎样
  • 负数发票报税不让填怎么办
  • 收到公司退货会计分录
  • 融资租赁咨询服务合同需要交印花税吗
  • 年终结账后,应当更换新账的有( )
  • 电子商业承兑汇票
  • 固定资产减半征收2%申报如何填增值税纳税申报表
  • 开了红字发票印花税怎么处理?
  • 产品定价的含义
  • 个税返还增值税申报表填哪里
  • 股权转让需要什么资料
  • 专票私人能开吗?
  • 税局代开专票季度未达起征点怎么缴纳地税?
  • 多给员工交了社保能退回吗
  • 个人出租车辆给公司个人所得税
  • 上月计提费用下月一定要冲回吗
  • 企业安全库存是什么
  • 打印机疑难解答显示打印机问题
  • 工资薪金所得具体包括哪些
  • 劳务报酬所得的计税标准
  • 存货盘盈盘亏的账务处理
  • 广告代理费收取比例
  • javaweb购物
  • vue子组件监听父组件
  • react-router6.4+的项目种路由实现方式(列举两种)
  • 用python编写素数
  • 节假日加班工资是几倍
  • 社保已经扣款还可以减人员吗
  • 物流货运发票要交税吗
  • 发现以前年度损益调整怎么记账
  • 差旅费必须填写差旅费报销单吗
  • 物流公司驾驶员工资计算方式
  • 什么是小微企业
  • 报销差旅费的进项税额
  • 无形资产摊销完以后得账务处理
  • 小规模普票怎么开
  • 增值税普通发票和专用发票有什么区别
  • 合并资产负债表与母公司资产负债表要看那一个好
  • 金税盘锁死341101
  • 注销的企业
  • 进口关税税款的计税依据
  • 预付账款有余额吗
  • 出资方式现金
  • 分包抵扣金额
  • 企业支付宝能买东西吗
  • 工商联络注册
  • 商业银行的固定资产
  • 安卓系统强制竖屏
  • win7旗舰版系统还原无法启动
  • 怎么提升命令提示符
  • 怎么用u盘装xp系统教程
  • Windows如何自动关机
  • ubuntu20.04安装配置
  • dwm exe是什么
  • centos7安装视频教程
  • 移动硬盘做win7系统盘
  • win10应用商店更新比蜗牛还慢
  • window预览
  • win10预览版和正式版区别
  • win10新版磁贴
  • nodejs web3
  • Python自然语言处理PDF
  • jquery开发
  • mac如何打开两个微信
  • jquery处理json格式数据
  • nodejs怎么连接mysql
  • 手机端apk反编译工具_android反编译工具
  • bootstraptable方法
  • 设计模式的原则
  • 重庆电子税务局网页版登录
  • 税务局上班周末上班吗
  • 党建联建是什么部门负责
  • 我的电脑为什么没有微软商店
  • 江苏电子税务局网站官网
  • 定额发票作废了还能报销吗
  • 香水与香精有啥不一样
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设