ycm添加自定义补全路径
修改~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py的flags变量
未改前如下:
flags = [
'-Wall',
'-Wextra',
'-Werror',
'-Wc++98-compat',
'-Wno-long-long',
'-Wno-variadic-macros',
'-fexceptions',
'-DNDEBUG',
# You 100% do NOT need -DUSE_CLANG_COMPLETER in your flags; only the YCM
# source code needs it.
'-DUSE_CLANG_COMPLETER',
# THIS IS IMPORTANT! Without a "-std=<something>" flag, clang won't know which
# language to use when compiling headers. So it will guess. Badly. So C++
# headers will be compiled as C headers. You don't want that so ALWAYS specify
# a "-std=<something>".
# For a C project, you would set this to something like 'c99' instead of
# 'c++11'.
'-std=c++11',
# ...and the same thing goes for the magic -x option which specifies the
# language that the files to be compiled are written in. This is mostly
# relevant for c++ headers.
# For a C project, you would set this to 'c' instead of 'c++'.
'-x',
'c++',
'-isystem',
'../BoostParts',
'-isystem',
# This path will only work on OS X, but extra paths that don't exist are not
# harmful
'/System/Library/Frameworks/Python.framework/Headers',
'-isystem',
'../llvm/include',
'-isystem',
'../llvm/tools/clang/include',
'-I',
'.',
'-I',
'./ClangCompleter',
'-isystem',
'./tests/gmock/gtest',
'-isystem',
'./tests/gmock/gtest/include',
'-isystem',
'./tests/gmock',
'-isystem',
'./tests/gmock/include',
'-isystem',
'/usr/local/include']
在后面添加搜索路径:如/opt/nginx/include
则:
flags = [
'-Wall',
'-Wextra',
'-Werror',
'-Wc++98-compat',
'-Wno-long-long',
'-Wno-variadic-macros',
'-fexceptions',
'-DNDEBUG',
# You 100% do NOT need -DUSE_CLANG_COMPLETER in your flags; only the YCM
# source code needs it.
'-DUSE_CLANG_COMPLETER',
# THIS IS IMPORTANT! Without a "-std=<something>" flag, clang won't know which
# language to use when compiling headers. So it will guess. Badly. So C++
# headers will be compiled as C headers. You don't want that so ALWAYS specify
# a "-std=<something>".
# For a C project, you would set this to something like 'c99' instead of
# 'c++11'.
'-std=c++11',
# ...and the same thing goes for the magic -x option which specifies the
# language that the files to be compiled are written in. This is mostly
# relevant for c++ headers.
# For a C project, you would set this to 'c' instead of 'c++'.
'-x',
'c++',
'-isystem',
'../BoostParts',
'-isystem',
# This path will only work on OS X, but extra paths that don't exist are not
# harmful
'/System/Library/Frameworks/Python.framework/Headers',
'-isystem',
'../llvm/include',
'-isystem',
'../llvm/tools/clang/include',
'-I',
'.',
'-I',
'./ClangCompleter',
'-isystem',
'./tests/gmock/gtest',
'-isystem',
'./tests/gmock/gtest/include',
'-isystem',
'./tests/gmock',
'-isystem',
'./tests/gmock/include',
'-isystem',
'/usr/local/include',
'-I',
'/opt/nginx/include']
转载于:https://www.cnblogs.com/chimmu/p/6212304.html
ycm添加自定义补全路径相关推荐
- YCM代码补全插件找不到c++头文件
开发环境: Ubuntu22.04 LTS x86_64架构Intel CPU YCM(YouCompleteMe)是一款用于vim编辑器的强大代码补全插件. YCM提供许多强大功能: 代码补全: 语 ...
- macos 10.15.3 安装vim+python3 +ycm自动补全+第三方库补全
效果: macos 10.15.3 Catalina 默认安装是 vim8.1 / python2.7.16/python3.7.3 . vim8.1 没有带python3支持,需要更新到最新版 ...
- linux bash gt,linux之bash的基础特性(一)--gt;命令历史(history命令),命令补全,路径补全...
关于命令历史-->history 1.与之相关的环境变量:HISTSIZE,HISTFILE-->~/.bash_history,HISTFILESIZE,HISTCONTROL,HIST ...
- vscode自动补全路径
一.安装插件 二.配置 //导入文件时是否携带文件的拓展名"path-autocomplete.extensionOnImport": true,//配置@的路径提示"p ...
- centos 自动补全c语言,YouCompleteMe自动补全C语言大型项目 ycm
YouCompleteMe自动补全C语言大型项目 我的ycm在vimrc中的配置" YouCompleteMe相关配置 let g:ycm_server_python_interpreter ...
- shell 补齐路径_bash shell:命令的文件名自动补全设置
大家都知道 bash 里有个文件自动补全功能,按两下 Tab 键显示出候选补全文件名,不同程序会显示相应的文件类型(根据扩展名来判断),例如 mplayer 会显示媒体文件(如 avi.mpg.mkv ...
- 3D点云补全算法汇总及最新进展
点击上方"3D视觉工坊",选择"星标" 干货第一时间送达 Part 1 前言 在探讨3D 点云补全专题前,先介绍三个概念: 概念一:partial obser ...
- Vim: 使用tags文件扩展YCM对C族语言第三方库的代码自动补全功能
前言 在众多Vim编辑器的自动补全插件中,YouCompleteMe(YCM)绝对是最好用的插件之一,但其配置过程往往令初学者望而却步.经过笔者多年折腾,至今基本达到满足日常使用水平. 如果读者对Yo ...
- 在windows中python安装sit-packages路径位置 在Pycharm中导入opencv不能自动代码补全问题
一.在windows中python安装sit-packages路径位置 C:\Users\shl\AppData\Local\Programs\Python\Python36\Lib\site-pac ...
最新文章
- Unity Android 2021:用C#打造3D ZigZag赛车游戏
- 什么是CNN?机器学习入门贴,Facebook员工打造,47k访问量
- 013_JavaScript函数
- jQuery 元素操作——遍历元素
- pep8 python 编码规范_「原创」「python自学笔记」python编码规范
- 计算机刷帖知识点,09计算机408分(沙滩帖)
- jeecg怎么样好用吗?
- JQueryEasyUI datagrid框架的基本使用
- hb:一个简单的 http/web bench 工具
- 腾讯想拿到Big Data资源,8h删抓紧时间!!
- 使用Shader进行UGUI的优化
- 托业词汇汇总(修订版)
- 百度BAE平台使用(一)注册开发者BAE环境
- 《速度与激情》男主演保罗沃克车祸身亡,再见速度再见难续的激情
- (一) 一元线性回归方程 梯度下降
- springboot之微信支付与退款
- 华为Linux如何安装微信,华为手机怎么重新安装微信?
- 2022年初级审计师考试综合试题及答案
- bates chock_2019资生堂中国杯世界花样滑冰大奖赛-冰舞前瞻
- 腾讯通 admin.php,配置RTX腾讯通升级使用SQL Server数据库
热门文章
- pd虚拟机改中文_Parallels Desktop for Mac v15.1.3.47255 PD虚拟机中文TNT和谐版
- Node.js定时邮件的那些事儿
- openstack 之 novnc流程分析
- 使用sublime编写python、php代码并运行
- mysql5.7集群方案
- JavaScript split() 方法:把一个字符串分割成字符串数组
- 童心制物布局国内STEAM 教育:5月将发布2款新品,未来同时聚焦B端和C端
- 关于虚拟机 shared folders文件共享问题
- 今日代码:Java冒泡排序
- js运算符之三目运算符