Giter Site home page Giter Site logo

xcomments's Introduction

xcomments

This is a littile plugin of vim, it's support php/java/python/javascript comments.Welcome to use it, join it :D

file comment example

//f - <C-M>

===>

/**

* @version $Id: Xcomments.vim 88 2012-05-20 06:15:48Z [email protected] $

* @package: None

* @copyRight: Copyright (c) 2011-2012 http://www.xjiujiu.com.All right reserved

* @license: Apache GNU

*/

class comment example

//c - <C-M>

===>

/**

* @point

*

* @desc

*

* @author 九九 [email protected]

* @package None

* @version $Id: Xcomments.vim 88 2012-05-20 06:15:48Z [email protected] $

*/

Method Or Function comment example

//m - <C-M>

function GetName(string test, int yes)

===>

/**

* @point

*

* @desc

*

* @access public

* @param string test

* @param int yes

* @return void

* @throws none

*/

function GetName(string test, int yes)

Variable comment example

//v - <C-M>

$string = "test"

===>

/**

* var $string

*/

$string = "test"

定义自己的注释全局配置信息示例

let g:myCodeCommenterConfigItems = {

        \ 'author': 'xjiujiu',                         ==> To config the author of these code 
        \ 'siteUrl': 'http://www.xjiujiu.com',         ==> To config the site of the author 
        \ 'email': '[email protected]',              ==> To config the email of the author 
        \ 'linsence': 'BSD NEW',                       ==> To config the code linsence 
        \ 'copyright': 'Copyright (c) 2011-2012 http://www.xjiujiu.com.All right reserved',    ==> To config the copyright information 
        \ 'companyName': 'HongJuZi',                   ==> Your company name 
        \ 'projectDecription': 'HongJuZi Framework',   ==> To config the decsription of the project 
        \ 'since': '1.0.0',                            ==> To config the decsription of the project 
        \ 'versionBySvn': 1                            ==> To config the version of the file is gen by subversion or by the script function
        \ }

=============================================================================

"快捷键配置

noremap <C-M> :call WriteComment()

xcomments's People

Contributors

xjiujiu avatar

Watchers

James Cloos avatar yangbinfx avatar

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.