zoukankan      html  css  js  c++  java
  • 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
    

      

     
  • 相关阅读:
    复合索引、主键
    使用PDO持久化连接
    使用PDO连接多种数据库
    数据库连接池php-cp介绍
    php有三种工作模式
    小型Web应用扫描工具Grabber
    Web目录全能扫描工具DirBuster
    子域名/目录暴力工具Gobuster
    Xamarin XAML语言教程构建ControlTemplate控件模板 (二)
    Xamarin XAML语言教程构建ControlTemplate控件模板
  • 原文地址:https://www.cnblogs.com/rainboy/p/3704008.html
Copyright © 2011-2022 走看看