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