• VIM snipMate pascal 代码补全


    源文件
     
    #
    snippet int
    	integer
    #
    snippet lo
    	longint
    #
    snippet var
    	var ${1:i}:${2:integer}
    #
    snippet array
    	var ${1:a}:array[1..${2:num}] of ${3:integer}
    #comment
    snippet comment
    	//==================================================================
    	//  ${1}
    	//==================================================================
    #
    snippet comau
    	//==================================================================
    	//    author:Rainboy
    	//        QQ:597872644
    	//      date:`strftime("%Y-%m-%d")`
    	//      `&enc[:2] == "utf" ? "?" : "(c)"` Copyright `strftime("%Y")` ${1:`g:snips_author`}. All Rights Reserved.${2}
    	//==================================================================
    # begin end
    snippet be
    	begin
    		${1}
    	end;
    snippet be.
    	begin
    		${1}
    	end.
    # If Condition
    snippet if
    	if ${1:/* condition */} then ${2:/* code */}
    ##################
    snippet ife
    	if ${1:/* condition */} 
        then ${2:/* code */}
    		else ${3:/* code */}
    #####################		
    snippet elif    else if
    	else if ${1:/* condition */} then
    	    ${2:/* code */}
    snippet elb
    	else
    	begin
    		${1}
    	end;
    # writeln write
    snippet wn
    	writeln(${1:/* content */});
    snippet w
    	write(${1:/* content */});
    # readln read
    snippet rn
    	readln(${1:/* content */});
    snippet r
    	read(${1:/* content */});
    # Do While Loop
    snippet do
    	do begin
    		${2:/* code */}
    	end while (${1:/* condition */});
    # While Loop
    snippet wh
    	while ${1:/* condition */} do
    	begin
    		${2:/* code */}
    	end;
    # For Loop
    snippet for
    	for ${2:i} := ${1:1} to ${3:10} do
    		${4:/* code */}
    snippet forb
    	for ${2:i} := ${1:1} to ${3:10} do
    	begin
    		${4:/* code */}
    	end;
    # Custom For Loop
    #
    #sinppet 函数
    snippet fun
    function  	${1:fun_name}(${3}):${2:Integer}
      begin
      ${4:/* code */}
    

      

    快捷键
    comment
    comau
    be
    be.
    if
    ife
    elif
    elb
    wn
    w
    rn
    r
    wh
    for
    forb
    

      

     
  • 相关阅读:
    java开发中的重中之重-------mysql(基础篇)
    开发中的重点-----设计模式
    java 不可不知的数据库知识-----事物
    redis 入门笔记
    转 Java对日期Date类进行加减运算一二三
    Ajax 中的高级请求和响应
    Ajax之基础总结
    Spring中的国际化资源以及视图跳转
    javascript基础总结
    SpringMVC的表单标签
  • 原文地址:https://www.cnblogs.com/rainboy/p/3704008.html
Copyright © 2020-2023  润新知