位置: 编程技术 - 正文

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

  • 个人所得税年终奖单独计税怎么操作
  • 税控是干什么用的
  • 应交税费会计分录怎么做明细科目
  • 多交增值税怎么算
  • 应交税费和应交增值税
  • 实收资本印花税怎么申报税目
  • 无形资产摊销完后有余额吗
  • 小企业会计准则2023电子版
  • 增值税加计扣除5%政策
  • 林业一般纳税人的税率是多少?
  • 出口企业退税分录
  • 出售商品取得的收入300万元存入银行
  • 公司电子承兑汇票
  • 长期借款工程完工时会计处理怎么做?
  • 企业哪些研发费用可以资本化?
  • 劳务报酬算公积金基数吗
  • 劳务派遣差额征税会计分录
  • 商品进销差价进哪个科目
  • 当期免抵税额如何做账
  • 财税()
  • 股东转让股份怎么转让
  • 缴纳社保需要什么东西
  • 企业收到退款应该如何做会计处理?
  • 会计准则规定的关联方
  • 建安企业增值税税率是多少
  • 以太网连接网络
  • 票据状态提示付款
  • 小规模纳税人增值税税收优惠政策
  • 事业单位需要交个人所得税吗
  • 职工教育经费超过可以结转以后年度怎么做账
  • 为什么u盘里的文件无法删除
  • 现行小规模纳税人增值税税率
  • echarts图表绘制步骤
  • 影响当期损益的税费
  • 一键部署web应用
  • 赡养老人专项扣除标准
  • 小程序的生命周期函数有哪些
  • 设置cmd命令
  • php die exit
  • php 密码加密
  • 预付款项属于什么
  • 小规模建筑公司经营范围大全
  • 汇兑损益计算器
  • 多计提费用可以不用以前年度损益调整吗
  • 开了专票就不能享受政策
  • 详解增发万亿国债细节
  • 小规模纳税人会自动转为一般纳税人
  • 营业执照是什么字体
  • 初级会计实务中第二章第四节存货(5)费琪
  • 国企注册资本实缴
  • 报销原材料运输费怎么算
  • 报销差旅费属于付款凭证还是收款凭证
  • 不动产经营租赁属于什么服务
  • 通过注册表修改office默认字体
  • win7系统怎么连接
  • windows7旗舰版怎么扩展c盘
  • win10系统虚拟机安装教程win7
  • msoxmled.exe是什么软件
  • kwconfig.exe
  • unity shaderlab
  • js设计模式有什么用
  • ansi std
  • ping命令的基本使用方法
  • shell命令行参数个数
  • unity ulua
  • shell的变量分为哪三种
  • js实现的简洁二次函数
  • javascript的引用类型
  • pythonnumpy报错
  • ImageView的android:maxHeight,android:minHeight的正确设置
  • jquery跨域请求有哪些方式
  • 当jquery ajax遇上401请求的解决方法
  • android:exported 属性详解
  • flask框架下使用scrapy框架
  • 怎么打印纳税申报清单
  • 山西省国家税务局王旭斌局长
  • 财务负责人变更了之后还有影响吗
  • 企业所得税按开票金额的多少计算税率
  • 飞度节油模式在哪里
  • 上海买房退税政策2023最新
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设