Vim中利用OmniCppComplete实现C++代码自动补全

本文介绍了如何在Vim中利用OmniCppComplete插件实现C++代码的自动补全功能。该插件支持匿名类型补全,并提供了详细的安装步骤,包括下载插件、创建ctags数据库目录、生成stdc++的catags数据库以及配置vimrc文件。
摘要由CSDN通过智能技术生成

        概述:OmniCppComplete适用于vim7.0及以上,OmniCppComplete利用catags产生的数据库实现C/C++的代码自动补全功能。

一、OmniCppComplete 特点:

    -   Complete namespaces, classes, structs and union members. 
    -   Complete inherited members for classes and structs (single and multiple inheritance). 
    -   Complete attribute members eg: myObject->_child->_child etc... 
    -   Complete type returned by a function eg: myObject->get()->_child. 
    -   Complete the "this" pointer. 
    -   Complete a typedef. 
    -   Complete the current scope (global and class scope). 
    -   Complete an object after a cast (C and C++ cast). 

    -   Complete anonymous types (eg: struct {int a; int b;}g_Var; g_Var.??

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值