帮助配置Vim for C ++ [英] Help With Configuring Vim For C++

查看:176
本文介绍了帮助配置Vim for C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让vim的c ++编辑器。我有非常小的经验使用它
和需要帮助配置vim使用c ++。
我需要这样的功能

I would like to make vim my c++ editor. I have very small experience working with it and need help in configuring vim to work with c++. I need such features as


  • 代码完成(用于stl和我的课程)

  • 在.cc和.h文件之间切换

  • 可能是你,c ++和vim gurus的一些技巧。

您可以提供一些配置(带解释),或者链接到教程,我可以使用的插件。

May be you could provide some configs (with explanations), or links to tutorials, plugins I could make use of?

推荐答案


  • 代码完成:全方位完成剪辑自动填充 YouCompleteMe

  • 实时语法检查: Syntastic

  • 在源文件和头文件之间切换:插件

  • 片段: Snipmate UltiSnip

  • 搜索变量,函数,类等的引用: Cscope

  • 转到定义: Ctags < a>或上述 YouCompleteMe子命令的一部分

  • 重构工具: Refactor lh-refactor

  • 实用的文本对象: Arg文字对象类文字对象

  • Vim Tips wiki中的C ++类别

  • Luc Hermitte的C / C ++外挂程式

  • 不是C + +特定的,但我也推荐 FuzzyFinder 命令-T Unite 进行文件导航。有了这些,您甚至不需要标签(不能扩展为10个以上的文件)来管理您的项目。

  • 类导航:标签 Tagbar

    • Code complete: Omni completion or Clang autocomplete or YouCompleteMe
    • Real time syntax checking: Syntastic
    • Switching between source and header file: A plugin
    • Snippets: Snipmate or UltiSnip
    • Search for reference of variables, functions, classes, etc.: Cscope
    • Go to definition: Ctags or part of YouCompleteMe subcommands mentioned above
    • Refactoring tools: Refactor, lh-refactor
    • Useful text objects: Arg text object and Class text object
    • C++ category in Vim Tips wiki
    • Luc Hermitte's C/C++ plugin
    • Not C++ specific but I also recommend either FuzzyFinder or Command-T or Unite for file navigation. With either of these, you don't even need tabs (which does not scale for 10+ files) to manage your project.
    • Class navigation: Taglist or Tagbar
    • 编辑:自2013年7月起更新

      Updated as of July 2013

      这篇关于帮助配置Vim for C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆