Git Product home page Git Product logo

snipmate.vim's Introduction

更新:

2015-11-24 增加了对javascript/HTML代码格式化的支持 2015-11-24 增加today, time, now 三个snippets

Quickly install with:

  • git clone git://github.com/raywill/snipmate.vim.git
  • cd snipmate.vim
  • cp -R * ~/.vim

##使用说明 输入前缀,按下tab,帮助你自动补全代码。下面针对OceanBase Dev的需求,介绍相关前缀的含义。

  • tbe, tbw, tbi, tbd
TBSYS_LOG(ERROR, "error_msg"); 
TBSYS_LOG(WARN, "warn_msg");
TBSYS_LOG(INFO, "info");
TBSYS_LOG(DEBUG, "debug_msg");
  • if
if (OB_SUCCESS != (ret = function()))
{
}
  • for
for (i = 0; OB_SUCCESS == ret && i < count; i++)
{
    /* code */
}
  • class

自动生成类框架,包括.h和.cpp部分。

  • class_cpp

仅生成cpp部分

  • class_h

仅生成h部分

  • class_operator

自动生成一个物理运算符的接口框架

  • serialize, deserialize, get_serialize_size

自动生成类的序列化相关函数

  • gtest

自动生成一个GTest测试框架

更多功能请自行定制,参考~/.vim/snippets/cpp.snippets

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.