VIM Add a partial configuration of annotations

Source: Internet
Author: User

1 "The following is a partial configuration of my vim2 au FileType php call addphpfunclist ()3 functionaddphpfunclist ()4Set Dictionary-=~/.vim/php_funclist.txt dictionary+=~/.vim/Php_funclist.txt5Set Complete-=k complete+=k6 endfunction7 "That's what I said from the beginning.8 "Add a comment to the function above the current line9Map <F5> ms:call addnotes () <cr>'sTen functionaddnotes () OneCall Append (".")-1,"/**") ACall Append (".")-1,"* @description \ t") -     "I'll use it for a lot of people. -     "Let name= $USER the     "Call Append (".")-1,"* @author \ t". Name."\ t". Strftime ("%y-%m-%d%h:%m")) -Call Append (".")-1,"* @author \t\zhaoyingnan\t". Strftime ("%y-%m-%d%h:%m")) -Call Append (".")-1,"* @param \tint\t\t\t$ivar") -Call Append (".")-1,"* @param \tstring\t\t$svar") +Call Append (".")-1,"* @param \tarray\t\t$avar") -Call Append (".")-1,"* @return \ t") +Call Append (".")-1," **/") ANormal gg=G at endfunction -  - "Add a header file comment -Map <F4> ms:call addtitle () <cr>'s - functionAddTitle () -Call Append (1,"/**") inCall Append (2,"* Description:") -Call Append (3,"* Create Date:". Strftime ("%y-%m-%d%h:%m")) to     "Call Append (4,"* ModifiedDate:". Strftime ("%y-%m-%d%h:%m")) +Call Append (4,"* Author:zhaoyingnan") -Call Append (5," **/") theEndfunction

VIM Add a partial configuration of annotations

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.