草庐IT

vim-plugin

全部标签

c++ - vim 你完成了我关于 c++11 语法的错误

我用Vundle安装了YouCompleteMe然后运行了cd~/.vim/bundle/YouCompleteMe./install.sh--clang-completer并添加了letg:ycm_global_ycm_extra_conf='~/.vim/bundle/YouCompleMe/cpp/ycm/.ycm_extra_conf.py'到我的vimrc文件。现在,当我编写C++11代码时,ycm会给我语法错误!我做错了什么? 最佳答案 在~/.vim/bundle/YouCompleMe/cpp/ycm/.ycm_ex

c++ - 如何使 vim 标签跳转与 OmniCppComplete 一样智能?

我像这样生成我的标签(ExuberantCtags5.9~svn20110310):ctags--c++-kinds=+p--fields=+iaS--extra=+q-Lctags.files我大致有这样的类结构:classRenderObject{InterpolatedVectoroffset;};classQuad:publicRenderObject{};classKeyframeWidget:publicQuad{voidshiftRight(){if(!offset.isInterpolating())offset.interpolateTo(Vector(offset.

c++ - vim C++ 配置

按照目前的情况,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visitthehelpcenter指导。关闭10年前。我是vim的新手。我想将它用作C++IDE或类似的东西。我已经安装了这些插件:c.vim:C/C++IDEproject.tar.gz:Organize/Navigateprojectsoffiles但我仍然无法使用它们,存在不同的错误或问题。此外,我还有很多问题如何配置vim以运行/构建/调试C++代码,例如使用cmake,如何通过单独的调试/发布配置

c++ - 使用 maven-nar-plugin 在 Maven 中构建 C++ 项目

有没有人使用maven-nar-plugin为不同的平台、使用不同的编译器构建C++代码?如果有人请给我更多关于这方面的信息。我只是想知道如何使用Maven为不同平台构建NAR文件。我知道,为了能够在特定平台上构建项目,您应该在该平台上运行构建,并使用该平台的特定编译器和链接器。但是我的经验与Java项目和Maven相关,而且正如您已经知道的那样,java具有很好的平台可移植性,所以直到现在我还没有遇到像thin这样的问题。因此,我们将不胜感激有关如何使用maven-nar-plugin构建项目的任何帮助和详细信息!谢谢 最佳答案

c++ - 在 vim 中使用 syntastic 启用 cpp 头文件检查

我刚开始为vim使用syntastic,到目前为止我很喜欢它,但我有一个小问题。如果文件扩展名不是cpp,则运行“:SyntasticCheck”绝对没有任何作用。这是一个问题,因为我也想在头文件上运行syntastic,扩展名为“.h”或“.hpp”。谁能帮我吗?如果有帮助,我正在使用“gcc”作为我的cppsyntastic-checker。 最佳答案 将以下内容添加到您的vimrcletg:syntastic_cpp_check_header=1此设置是通过阅读/syntax_checker/cpp/gcc.vim顶部的评论找

c++ - C++ 模板的 Vim 缩进?

有没有人知道或知道可以很好地缩进C++模板的vim插件/宏/函数?当我在vim.hpp/.h文件中突出显示模板定义并用“=”缩进时,我得到如下内容:>templateclassTFilter,>classTParser,>classTConsumer,>classTDataProcessor,>classTDataFeed,>classTSymbolMap>>>structDataFeedTraits>{>typedefTFilterFilter;>typedefTParserParser;>typedefTConsumerConsumer;>typedefTDataProcessor

c++ - VIM 语法折叠 : disable folding multi-line comments

我在vim7.3中使用“语法”折叠方法。在.vimrc中:setfoldmethod=syntax当我打开Test.cpp时,包含:/*Afunctionwithamulti-line*comment.Thistakesatleast*fourlinesandIwanttobe*abletoreadallofthem.*/voidTheFunction(){DoStuff();}折叠时我看到以下内容:+--5lines:Afunctionwithamulti-line---------------------------------------------voidTheFunction

java - 目标 org.springframework.boot 的执行默认值 :spring-boot-maven-plugin:1. 0.2.RELEASE:repackage failed: Source must refer to an existing file

这是我第一个使用Spring的项目(我对Maven也不太熟悉),运行mvnpackage时出现标题错误。这是我的pom.xml:4.0.0hu.infolaverage.europress.imageproviderimageprovider1.0-SNAPSHOTpomorg.springframework.bootspring-boot-starter-parent1.0.2.RELEASEUTF-8hu.infolaverage.europress.imageprovider.Apporg.springframework.bootspring-boot-startercom.fa

java - 目标 org.springframework.boot 的执行默认值 :spring-boot-maven-plugin:1. 0.2.RELEASE:repackage failed: Source must refer to an existing file

这是我第一个使用Spring的项目(我对Maven也不太熟悉),运行mvnpackage时出现标题错误。这是我的pom.xml:4.0.0hu.infolaverage.europress.imageproviderimageprovider1.0-SNAPSHOTpomorg.springframework.bootspring-boot-starter-parent1.0.2.RELEASEUTF-8hu.infolaverage.europress.imageprovider.Apporg.springframework.bootspring-boot-startercom.fa

ios - phonegap-plugin-push 不适用于 iOS 9

我正在使用新插件“phonegap-plugin-push”,它会覆盖旧的PushPlugin以通过cordovaApps推送通知。通知在android和iOS8上都运行良好,但当我使用iOS9时,它注册成功并返回token,后端代码返回成功,但设备没有收到通知!这是前端代码varpush=PushNotification.init({"android":{"senderID":"12345679"},"ios":{"alert":"true","badge":"true","sound":"true"},"windows":{}});push.on('registration',fu