-##
-## STL Collections
-# std::array
-snippet array
- std::array<${1:T}, ${2:N}> ${3};
-# std::vector
-snippet vector
- std::vector<${1:T}> ${2};
-# std::deque
-snippet deque
- std::deque<${1:T}> ${2};
-# std::forward_list
-snippet flist
- std::forward_list<${1:T}> ${2};
-# std::list
-snippet list
- std::list<${1:T}> ${2};
-# std::set
-snippet set
- std::set<${1:T}> ${2};
-# std::map
-snippet map
- std::map<${1:Key}, ${2:T}> ${3};
-# std::multiset
-snippet mset
- std::multiset<${1:T}> ${2};
-# std::multimap
-snippet mmap
- std::multimap<${1:Key}, ${2:T}> ${3};
-# std::unordered_set
-snippet uset
- std::unordered_set<${1:T}> ${2};
-# std::unordered_map
-snippet umap
- std::unordered_map<${1:Key}, ${2:T}> ${3};
-# std::unordered_multiset
-snippet umset
- std::unordered_multiset<${1:T}> ${2};
-# std::unordered_multimap
-snippet ummap
- std::unordered_multimap<${1:Key}, ${2:T}> ${3};
-# std::stack
-snippet stack
- std::stack<${1:T}> ${2};
-# std::queue
-snippet queue
- std::queue<${1:T}> ${2};
-# std::priority_queue
-snippet pqueue
- std::priority_queue<${1:T}> ${2};
-##
-## Access Modifiers
-# private
-snippet pri
- private
-# protected
-snippet pro
- protected
-# public
-snippet pub
- public
-# friend
-snippet fr
- friend
-# mutable
-snippet mu
- mutable
-##
-## Class
-# class
-snippet cl
- /*! \class $1
- * \brief ${3:Brief class description}
- *
- * ${4:Detailed description}
- */
- class ${1:`vim_snippets#Filename('$1', 'name')`}
- {
- public:
- $1(${2});
- virtual ~$1();
-
- protected:
- m_${5}; /*!< ${6:Member description} */
- };
-# member function implementation
-snippet mfun
- ${4:void} ${1:`vim_snippets#Filename('$1', 'ClassName')`}::${2:memberFunction}(${3}) {
- ${0}
- }
-# member function implementation without parameters
-snippet dmfun0
- /*! \brief ${4:Brief function description here}
- *
- * ${5:Detailed description}
- *
- * \return ${6:Return parameter description}
- */
- ${3:void} ${1:`vim_snippets#Filename('$1', 'ClassName')`}::${2:memberFunction}() {
- ${0}
- }
-# member function implementation with one parameter
-snippet dmfun1
- /*! \brief ${6:Brief function description here}
- *
- * ${7:Detailed description}
- *
- * \param $4 ${8:Parameter description}
- * \return ${9:Return parameter description}
- */
- ${5:void} ${1:`vim_snippets#Filename('$1', 'ClassName')`}::${2:memberFunction}(${3:Type} ${4:Parameter}) {
- ${0}
- }
-# member function implementation with two parameter
-snippet dmfun2
- /*! \brief ${8:Brief function description here}
- *
- * ${9:Detailed description}
- *
- * \param $4 ${10:Parameter description}
- * \param $6 ${11:Parameter description}
- * \return ${12:Return parameter description}
- */
- ${7:void} ${1:`vim_snippets#Filename('$1', 'ClassName')`}::${2:memberFunction}(${3:Type} ${4:Parameter},${5:Type} ${6:Parameter}) {
- ${0}
- }
-# namespace
-snippet ns
- namespace ${1:`vim_snippets#Filename('', 'my')`} {
- ${0}
- } /* namespace $1 */
-##
-## Input/Output
-# std::cout
-snippet cout
- std::cout << ${1} << std::endl;
-# std::cin
-snippet cin
- std::cin >> ${1};
-##
-## Casts
-# static
-snippet sca
- static_cast<${1:unsigned}>(${2:expr})${3}
-# dynamic
-snippet dca
- dynamic_cast<${1:unsigned}>(${2:expr})${3}
-# reinterpret
-snippet rca
- reinterpret_cast<${1:unsigned}>(${2:expr})${3}
-# const
-snippet cca
- const_cast<${1:unsigned}>(${2:expr})${3}
-## Iteration
-# for i
-snippet fori
- for (int ${2:i} = 0; $2 < ${1:count}; $2${3:++}) {
- ${4}
- }
-
-# foreach
-snippet fore
- for (${1:auto} ${2:i} : ${3:container}) {
- ${4}
- }
-# iterator
-snippet iter
- for (${1:std::vector}<${2:type}>::${3:const_iterator} ${4:i} = ${5:container}.begin(); $4 != $5.end(); ++$4) {
- ${6}
- }
-
-# auto iterator
-snippet itera
- for (auto ${1:i} = ${2:container}.begin(); $1 != $2.end(); ++$1) {
- ${3:std::cout << *$1 << std::endl;}
- }
-##
-## Lambdas
-# lamda (one line)
-snippet ld
- [${1}](${2}){${3}};
-# lambda (multi-line)
-snippet lld
- [${1}](${2}){
- ${3}
- };
-# snippets exception
-snippet try
- try {
-
- }catch(${1}) {
-
- }
-
-
-
diff --git a/vim/snippets/vim-snippets/snippets/crystal.snippets b/vim/snippets/vim-snippets/snippets/crystal.snippets
deleted file mode 100644
index 34d2540..0000000
--- a/vim/snippets/vim-snippets/snippets/crystal.snippets
+++ /dev/null
@@ -1,82 +0,0 @@
-snippet req require
- require "${1}"
-snippet case
- case ${1:object}
- when ${2:condition}
- ${0}
- end
-snippet when
- when ${1:condition}
- ${0}
-snippet def
- def ${1:method_name}
- ${0}
- end
-snippet pdef
- private def ${1:method_name}
- ${0}
- end
-snippet if
- if ${1:condition}
- ${0:${VISUAL}}
- end
-snippet ife
- if ${1:condition}
- ${2:${VISUAL}}
- else
- ${0}
- end
-snippet wh
- while ${1:condition}
- ${0:${VISUAL}}
- end
-snippet cla class .. end
- class ${1:`substitute(vim_snippets#Filename(), "\(_\|^\)\(.\)", "\u\2", "g")`}
- ${0}
- end
-snippet mod class .. end
- module ${1:`substitute(vim_snippets#Filename(), "\(_\|^\)\(.\)", "\u\2", "g")`}
- ${0}
- end
-snippet r
- getter ${0:name}
-snippet r!
- getter! ${0:name}
-snippet r?
- getter? ${0:name}
-snippet w
- setter ${0:name}
-snippet w!
- setter! ${0:name}
-snippet w?
- setter? ${0:name}
-snippet rw
- property ${0:name}
-snippet rw!
- property! ${0:name}
-snippet rw?
- property? ${0:name}
-snippet defs
- def self.${1:class_method_name}
- ${0}
- end
-snippet defi
- def initialize(${1})
- ${0}
- end
-snippet do
- do
- ${0:${VISUAL}}
- end
-snippet dov
- do |${1:v}|
- ${2}
- end
-snippet desc
- describe ${1:`substitute(substitute(vim_snippets#Filename(), "_spec$", "", ""), "\(_\|^\)\(.\)", "\u\2", "g")`} do
- ${0}
- end
-snippet it
- it "${1}" do
- ${0}
- end
diff --git a/vim/snippets/vim-snippets/snippets/cs.snippets b/vim/snippets/vim-snippets/snippets/cs.snippets
deleted file mode 100644
index 110c85f..0000000
--- a/vim/snippets/vim-snippets/snippets/cs.snippets
+++ /dev/null
@@ -1,531 +0,0 @@
-# cs.snippets
-# ===========
-#
-# Standard C-Sharp snippets for snipmate.
-#
-# Largely ported over from Visual Studio 2010 snippets plus
-# a few snippets from Resharper plus a few widely known snippets.
-#
-# Most snippets on elements (i.e. classes, properties)
-# follow suffix conventions. The order of suffixes to a snippet
-# is fixed.
-#
-# Snippet Suffix Order
-# --------------------
-# 1. Access Modifiers
-# 2. Class Modifiers
-#
-# Access Modifier Suffix Table
-# ----------------------------
-# + = public
-# & = internal
-# | = protected
-# - = private
-#
-# Example: `cls&` expands to `internal class $1`.
-# Access modifiers might be doubled to indicate
-# different modifiers for get/set on properties.
-# Example: `pb+-` expands to `public bool $1 { get; private set; }`
-#
-# Class Modifier Table
-# --------------------
-# ^ = static
-# % = abstract
-#
-# Example: `cls|%` expands to `protected abstract class $1`
-#
-# On method and property snippets, you can directly set
-# one of the common types int, string and bool, if desired,
-# just by appending the type modifier.
-#
-# Type Modifier Table
-# -------------------
-# i = integer
-# s = string
-# b = bool
-#
-# Example: `pi+&` expands to `public int $1 { get; internal set; }`
-#
-# I'll most propably add more stuff in here like
-# * List/Array constructio
-# * Mostly used generics
-# * Linq
-# * Funcs, Actions, Predicates
-# * Lambda
-# * Events
-#
-# Feedback is welcome!
-#
-# Main
-snippet sim
- ${1:public} static int Main(string[] args)
- {
- ${0}
- return 0;
- }
-snippet simc
- public class Application
- {
- ${1:public} static int Main(string[] args)
- {
- ${0}
- return 0;
- }
- }
-snippet svm
- ${1:public} static void Main(string[] args)
- {
- ${0}
- }
-# if condition
-snippet if
- if (${1:true})
- {
- ${0:${VISUAL}}
- }
-snippet el
- else
- {
- ${0:${VISUAL}}
- }
-snippet ifs
- if (${1})
- ${0:${VISUAL}}
-# ternary conditional
-snippet t
- ${1} ? ${2} : ${0}
-snippet ?
- ${1} ? ${2} : ${0}
-# do while loop
-snippet do
- do
- {
- ${0:${VISUAL}}
- } while (${1:true});
-# while loop
-snippet wh
- while (${1:true})
- {
- ${0:${VISUAL}}
- }
-# for loop
-snippet for
- for (int ${1:i} = 0; $1 < ${2:count}; $1${3:++})
- {
- ${0}
- }
-snippet forr
- for (int ${1:i} = ${2:length}; $1 >= 0; $1--)
- {
- ${0}
- }
-# foreach
-snippet fore
- foreach (${1:var} ${2:entry} in ${3})
- {
- ${0}
- }
-snippet foreach
- foreach (${1:var} ${2:entry} in ${3})
- {
- ${0}
- }
-snippet each
- foreach (${1:var} ${2:entry} in ${3})
- {
- ${0}
- }
-# interfaces
-snippet interface
- public interface ${1:`vim_snippets#Filename()`}
- {
- ${0}
- }
-snippet if+
- public interface ${1:`vim_snippets#Filename()`}
- {
- ${0}
- }
-# class bodies
-snippet class
- public class ${1:`vim_snippets#Filename()`}
- {
- ${0}
- }
-snippet cls
- ${2:public} class ${1:`vim_snippets#Filename()`}
- {
- ${0}
- }
-snippet cls+
- public class ${1:`vim_snippets#Filename()`}
- {
- ${0}
- }
-snippet cls+^
- public static class ${1:`vim_snippets#Filename()`}
- {
- ${0}
- }
-snippet cls&
- internal class ${1:`vim_snippets#Filename()`}
- {
- ${0}
- }
-snippet cls&^
- internal static class ${1:`vim_snippets#Filename()`}
- {
- ${0}
- }
-snippet cls|
- protected class ${1:`vim_snippets#Filename()`}
- {
- ${0}
- }
-snippet cls|%
- protected abstract class ${1:`vim_snippets#Filename()`}
- {
- ${0}
- }
-# constructor
-snippet ctor
- public ${1:`vim_snippets#Filename()`}()
- {
- ${0}
- }
-# properties - auto properties by default.
-# default type is int with layout get / set.
-snippet prop
- ${1:public} ${2:int} ${3} { get; set; }
-snippet p
- ${1:public} ${2:int} ${3} { get; set; }
-snippet p+
- public ${1:int} ${2} { get; set; }
-snippet p+&
- public ${1:int} ${2} { get; internal set; }
-snippet p+|
- public ${1:int} ${2} { get; protected set; }
-snippet p+-
- public ${1:int} ${2} { get; private set; }
-snippet p&
- internal ${1:int} ${2} { get; set; }
-snippet p&|
- internal ${1:int} ${2} { get; protected set; }
-snippet p&-
- internal ${1:int} ${2} { get; private set; }
-snippet p|
- protected ${1:int} ${2} { get; set; }
-snippet p|-
- protected ${1:int} ${2} { get; private set; }
-snippet p-
- private ${1:int} ${2} { get; set; }
-# property - bool
-snippet pi
- ${1:public} int ${2} { get; set; }
-snippet pi+
- public int ${1} { get; set; }
-snippet pi+&
- public int ${1} { get; internal set; }
-snippet pi+|
- public int ${1} { get; protected set; }
-snippet pi+-
- public int ${1} { get; private set; }
-snippet pi&
- internal int ${1} { get; set; }
-snippet pi&|
- internal int ${1} { get; protected set; }
-snippet pi&-
- internal int ${1} { get; private set; }
-snippet pi|
- protected int ${1} { get; set; }
-snippet pi|-
- protected int ${1} { get; private set; }
-snippet pi-
- private int ${1} { get; set; }
-# property - bool
-snippet pb
- ${1:public} bool ${2} { get; set; }
-snippet pb+
- public bool ${1} { get; set; }
-snippet pb+&
- public bool ${1} { get; internal set; }
-snippet pb+|
- public bool ${1} { get; protected set; }
-snippet pb+-
- public bool ${1} { get; private set; }
-snippet pb&
- internal bool ${1} { get; set; }
-snippet pb&|
- internal bool ${1} { get; protected set; }
-snippet pb&-
- internal bool ${1} { get; private set; }
-snippet pb|
- protected bool ${1} { get; set; }
-snippet pb|-
- protected bool ${1} { get; private set; }
-snippet pb-
- private bool ${1} { get; set; }
-# property - string
-snippet ps
- ${1:public} string ${2} { get; set; }
-snippet ps+
- public string ${1} { get; set; }
-snippet ps+&
- public string ${1} { get; internal set; }
-snippet ps+|
- public string ${1} { get; protected set; }
-snippet ps+-
- public string ${1} { get; private set; }
-snippet ps&
- internal string ${1} { get; set; }
-snippet ps&|
- internal string ${1} { get; protected set; }
-snippet ps&-
- internal string ${1} { get; private set; }
-snippet ps|
- protected string ${1} { get; set; }
-snippet ps|-
- protected string ${1} { get; private set; }
-snippet ps-
- private string ${1} { get; set; }
-# members - void
-snippet m
- ${1:public} ${2:void} ${3}(${4})
- {
- ${0}
- }
-snippet m+
- public ${1:void} ${2}(${3})
- {
- ${0}
- }
-snippet m&
- internal ${1:void} ${2}(${3})
- {
- ${0}
- }
-snippet m|
- protected ${1:void} ${2}(${3})
- {
- ${0}
- }
-snippet m-
- private ${1:void} ${2}(${3})
- {
- ${0}
- }
-# members - int
-snippet mi
- ${1:public} int ${2}(${3})
- {
- ${0:return 0;}
- }
-snippet mi+
- public int ${1}(${2})
- {
- ${0:return 0;}
- }
-snippet mi&
- internal int ${1}(${2})
- {
- ${0:return 0;}
- }
-snippet mi|
- protected int ${1}(${2})
- {
- ${0:return 0;}
- }
-snippet mi-
- private int ${1}(${2})
- {
- ${0:return 0;}
- }
-# members - bool
-snippet mb
- ${1:public} bool ${2}(${3})
- {
- ${0:return false;}
- }
-snippet mb+
- public bool ${1}(${2})
- {
- ${0:return false;}
- }
-snippet mb&
- internal bool ${1}(${2})
- {
- ${0:return false;}
- }
-snippet mb|
- protected bool ${1}(${2})
- {
- ${0:return false;}
- }
-snippet mb-
- private bool ${1}(${2})
- {
- ${0:return false;}
- }
-# members - string
-snippet ms
- ${1:public} string ${2}(${3})
- {
- ${0:return "";}
- }
-snippet ms+
- public string ${1}(${2})
- {
- ${0:return "";}
- }
-snippet ms&
- internal string ${1}(${2})
- {
- ${0:return "";}
- }
-snippet ms|
- protected string ${1:}(${2:})
- {
- ${0:return "";}
- }
-snippet ms-
- private string ${1}(${2})
- {
- ${0:return "";}
- }
-# structure
-snippet struct
- public struct ${1:`vim_snippets#Filename()`}
- {
- ${0}
- }
-# enumeration
-snippet enum
- enum ${1}
- {
- ${0}
- }
-
-snippet enum+
- public enum ${1}
- {
- ${0}
- }
-# preprocessor directives
-snippet #if
- #if
- ${0}
- #endif
-# inline xml documentation
-snippet ///
- ///
- /// ${0}
- ///
-snippet ${2:$1}
-snippet ${2}
-snippet ${1}
-snippet
-snippet ${1}
-snippet ${1}
-
-snippet cw
- Console.WriteLine(${1});
-
-# equals override
-snippet eq
- public override bool Equals(object obj)
- {
- if (obj == null || GetType() != obj.GetType())
- {
- return false;
- }
- ${0:throw new NotImplementedException();}
- return base.Equals(obj);
- }
-# exception
-snippet exc
- public class ${1:MyException} : ${2:Exception}
- {
- public $1() { }
- public $1(string message) : base(message) { }
- public $1(string message, Exception inner) : base(message, inner) { }
- protected $1(
- System.Runtime.Serialization.SerializationInfo info,
- System.Runtime.Serialization.StreamingContext context)
- : base(info, context) { }
- }
-# indexer
-snippet index
- public ${1:object} this[${2:int} index]
- {
- get { ${0} }
- set { ${0} }
- }
-# eventhandler
-snippet inv
- EventHandler temp = ${1:MyEvent};
- if (${2:temp} != null)
- {
- $2();
- }
-# lock
-snippet lock
- lock (${1:this})
- {
- ${0}
- }
-# namespace
-snippet namespace
- namespace ${1:MyNamespace}
- {
- ${0}
- }
-# property
-snippet prop
- public ${1:int} ${2:MyProperty} { get; set; }
-snippet propf
- private ${1:int} ${2:myVar};
- public $1 ${3:MyProperty}
- {
- get { return $2; }
- set { $2 = value; }
- }
-snippet propg
- public ${1:int} ${2:MyProperty} { get; private set; }
-# switch
-snippet switch
- switch (${1:switch_on})
- {
- ${0}
- default:
- }
-# try
-snippet try
- try
- {
- ${0:${VISUAL}}
- }
- catch (${1:System.Exception})
- {
- throw;
- }
-snippet tryf
- try
- {
- ${0:${VISUAL}}
- }
- finally
- {
- ${1}
- }
-# using
-snippet usi
- using (${1:resource})
- {
- ${0}
- }
diff --git a/vim/snippets/vim-snippets/snippets/css.snippets b/vim/snippets/vim-snippets/snippets/css.snippets
deleted file mode 100644
index 08b6cdf..0000000
--- a/vim/snippets/vim-snippets/snippets/css.snippets
+++ /dev/null
@@ -1,987 +0,0 @@
-snippet . "selector { }"
- ${1} {
- ${0:${VISUAL}}
- }
-snippet ! "!important"
- !important
-snippet bdi:m+
- -moz-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch};
-snippet bdi:m
- -moz-border-image: ${0};
-snippet bdrz:m
- -moz-border-radius: ${0};
-snippet bxsh:m+
- -moz-box-shadow: ${1:0} ${2:0} ${3:0} #${0:000};
-snippet bxsh:m
- -moz-box-shadow: ${0};
-snippet bdi:w+
- -webkit-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch};
-snippet bdi:w
- -webkit-border-image: ${0};
-snippet bdrz:w
- -webkit-border-radius: ${0};
-snippet bxsh:w+
- -webkit-box-shadow: ${1:0} ${2:0} ${3:0} #${0:000};
-snippet bxsh:w
- -webkit-box-shadow: ${0};
-snippet @f
- @font-face {
- font-family: ${1};
- src: url(${0});
- }
-snippet @i
- @import url(${0});
-snippet @m "@media mediatype { }"
- @media ${1:print} {
- ${0:${VISUAL}}
- }
-snippet bg+
- background: #${1:FFF} url(${2}) ${3:0} ${4:0} ${0:no-repeat};
-snippet bga
- background-attachment: ${0};
-snippet bga:f
- background-attachment: fixed;
-snippet bga:s
- background-attachment: scroll;
-snippet bgbk
- background-break: ${0};
-snippet bgbk:bb
- background-break: bounding-box;
-snippet bgbk:c
- background-break: continuous;
-snippet bgbk:eb
- background-break: each-box;
-snippet bgcp
- background-clip: ${0};
-snippet bgcp:bb
- background-clip: border-box;
-snippet bgcp:cb
- background-clip: content-box;
-snippet bgcp:nc
- background-clip: no-clip;
-snippet bgcp:pb
- background-clip: padding-box;
-snippet bgc
- background-color: #${0:FFF};
-snippet bgc:t
- background-color: transparent;
-snippet bgi
- background-image: url(${0});
-snippet bgi:n
- background-image: none;
-snippet bgo
- background-origin: ${0};
-snippet bgo:bb
- background-origin: border-box;
-snippet bgo:cb
- background-origin: content-box;
-snippet bgo:pb
- background-origin: padding-box;
-snippet bgpx
- background-position-x: ${0};
-snippet bgpy
- background-position-y: ${0};
-snippet bgp
- background-position: ${1:0} ${0:0};
-snippet bgr
- background-repeat: ${0};
-snippet bgr:n
- background-repeat: no-repeat;
-snippet bgr:x
- background-repeat: repeat-x;
-snippet bgr:y
- background-repeat: repeat-y;
-snippet bgr:r
- background-repeat: repeat;
-snippet bgz
- background-size: ${0};
-snippet bgz:a
- background-size: auto;
-snippet bgz:ct
- background-size: contain;
-snippet bgz:cv
- background-size: cover;
-snippet bg
- background: ${0};
-snippet bg:ie
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1}',sizingMethod='${0:crop}');
-snippet bg:n
- background: none;
-snippet bd+
- border: ${1:1px} ${2:solid} #${0:000};
-snippet bdb+
- border-bottom: ${1:1px} ${2:solid} #${0:000};
-snippet bdbc
- border-bottom-color: #${0:000};
-snippet bdbi
- border-bottom-image: url(${0});
-snippet bdbi:n
- border-bottom-image: none;
-snippet bdbli
- border-bottom-left-image: url(${0});
-snippet bdbli:c
- border-bottom-left-image: continue;
-snippet bdbli:n
- border-bottom-left-image: none;
-snippet bdblrz
- border-bottom-left-radius: ${0};
-snippet bdbri
- border-bottom-right-image: url(${0});
-snippet bdbri:c
- border-bottom-right-image: continue;
-snippet bdbri:n
- border-bottom-right-image: none;
-snippet bdbrrz
- border-bottom-right-radius: ${0};
-snippet bdbs
- border-bottom-style: ${0};
-snippet bdbs:n
- border-bottom-style: none;
-snippet bdbw
- border-bottom-width: ${0};
-snippet bdb
- border-bottom: ${0};
-snippet bdb:n
- border-bottom: none;
-snippet bdbk
- border-break: ${0};
-snippet bdbk:c
- border-break: close;
-snippet bdcl
- border-collapse: ${0};
-snippet bdcl:c
- border-collapse: collapse;
-snippet bdcl:s
- border-collapse: separate;
-snippet bdc
- border-color: #${0:000};
-snippet bdci
- border-corner-image: url(${0});
-snippet bdci:c
- border-corner-image: continue;
-snippet bdci:n
- border-corner-image: none;
-snippet bdf
- border-fit: ${0};
-snippet bdf:c
- border-fit: clip;
-snippet bdf:of
- border-fit: overwrite;
-snippet bdf:ow
- border-fit: overwrite;
-snippet bdf:r
- border-fit: repeat;
-snippet bdf:sc
- border-fit: scale;
-snippet bdf:sp
- border-fit: space;
-snippet bdf:st
- border-fit: stretch;
-snippet bdi
- border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch};
-snippet bdi:n
- border-image: none;
-snippet bdl+
- border-left: ${1:1px} ${2:solid} #${0:000};
-snippet bdlc
- border-left-color: #${0:000};
-snippet bdli
- border-left-image: url(${0});
-snippet bdli:n
- border-left-image: none;
-snippet bdls
- border-left-style: ${0};
-snippet bdls:n
- border-left-style: none;
-snippet bdlw
- border-left-width: ${0};
-snippet bdl
- border-left: ${0};
-snippet bdl:n
- border-left: none;
-snippet bdlt
- border-length: ${0};
-snippet bdlt:a
- border-length: auto;
-snippet bdrz
- border-radius: ${0};
-snippet bdr+
- border-right: ${1:1px} ${2:solid} #${0:000};
-snippet bdrc
- border-right-color: #${0:000};
-snippet bdri
- border-right-image: url(${0});
-snippet bdri:n
- border-right-image: none;
-snippet bdrs
- border-right-style: ${0};
-snippet bdrs:n
- border-right-style: none;
-snippet bdrw
- border-right-width: ${0};
-snippet bdr
- border-right: ${0};
-snippet bdr:n
- border-right: none;
-snippet bdsp
- border-spacing: ${0};
-snippet bds
- border-style: ${0};
-snippet bds:ds
- border-style: dashed;
-snippet bds:dtds
- border-style: dot-dash;
-snippet bds:dtdtds
- border-style: dot-dot-dash;
-snippet bds:dt
- border-style: dotted;
-snippet bds:db
- border-style: double;
-snippet bds:g
- border-style: groove;
-snippet bds:h
- border-style: hidden;
-snippet bds:i
- border-style: inset;
-snippet bds:n
- border-style: none;
-snippet bds:o
- border-style: outset;
-snippet bds:r
- border-style: ridge;
-snippet bds:s
- border-style: solid;
-snippet bds:w
- border-style: wave;
-snippet bdt+
- border-top: ${1:1px} ${2:solid} #${0:000};
-snippet bdtc
- border-top-color: #${0:000};
-snippet bdti
- border-top-image: url(${0});
-snippet bdti:n
- border-top-image: none;
-snippet bdtli
- border-top-left-image: url(${0});
-snippet bdtli:c
- border-corner-image: continue;
-snippet bdtli:n
- border-corner-image: none;
-snippet bdtlrz
- border-top-left-radius: ${0};
-snippet bdtri
- border-top-right-image: url(${0});
-snippet bdtri:c
- border-top-right-image: continue;
-snippet bdtri:n
- border-top-right-image: none;
-snippet bdtrrz
- border-top-right-radius: ${0};
-snippet bdts
- border-top-style: ${0};
-snippet bdts:n
- border-top-style: none;
-snippet bdtw
- border-top-width: ${0};
-snippet bdt
- border-top: ${0};
-snippet bdt:n
- border-top: none;
-snippet bdw
- border-width: ${0};
-snippet bd
- border: ${0};
-snippet bd:n
- border: none;
-snippet b
- bottom: ${0};
-snippet b:a
- bottom: auto;
-snippet bxsh+
- box-shadow: ${1:0} ${2:0} ${3:0} #${0:000};
-snippet bxsh
- box-shadow: ${0};
-snippet bxsh:n
- box-shadow: none;
-snippet bxz
- box-sizing: ${0};
-snippet bxz:bb
- box-sizing: border-box;
-snippet bxz:cb
- box-sizing: content-box;
-snippet cps
- caption-side: ${0};
-snippet cps:b
- caption-side: bottom;
-snippet cps:t
- caption-side: top;
-snippet cl
- clear: ${0};
-snippet cl:b
- clear: both;
-snippet cl:l
- clear: left;
-snippet cl:n
- clear: none;
-snippet cl:r
- clear: right;
-snippet cp
- clip: ${0};
-snippet cp:a
- clip: auto;
-snippet cp:r
- clip: rect(${1:0} ${2:0} ${3:0} ${0:0});
-snippet c
- color: #${0:000};
-snippet ct
- content: ${0};
-snippet ct:a
- content: attr(${0});
-snippet ct:cq
- content: close-quote;
-snippet ct:c
- content: counter(${0});
-snippet ct:cs
- content: counters(${0});
-snippet ct:ncq
- content: no-close-quote;
-snippet ct:noq
- content: no-open-quote;
-snippet ct:n
- content: normal;
-snippet ct:oq
- content: open-quote;
-snippet coi
- counter-increment: ${0};
-snippet cor
- counter-reset: ${0};
-snippet cur
- cursor: ${0};
-snippet cur:a
- cursor: auto;
-snippet cur:c
- cursor: crosshair;
-snippet cur:d
- cursor: default;
-snippet cur:ha
- cursor: hand;
-snippet cur:he
- cursor: help;
-snippet cur:m
- cursor: move;
-snippet cur:p
- cursor: pointer;
-snippet cur:t
- cursor: text;
-snippet d
- display: ${0};
-snippet d:mib
- display: -moz-inline-box;
-snippet d:mis
- display: -moz-inline-stack;
-snippet d:b
- display: block;
-snippet d:cp
- display: compact;
-snippet d:ib
- display: inline-block;
-snippet d:itb
- display: inline-table;
-snippet d:i
- display: inline;
-snippet d:li
- display: list-item;
-snippet d:n
- display: none;
-snippet d:ri
- display: run-in;
-snippet d:tbcp
- display: table-caption;
-snippet d:tbc
- display: table-cell;
-snippet d:tbclg
- display: table-column-group;
-snippet d:tbcl
- display: table-column;
-snippet d:tbfg
- display: table-footer-group;
-snippet d:tbhg
- display: table-header-group;
-snippet d:tbrg
- display: table-row-group;
-snippet d:tbr
- display: table-row;
-snippet d:tb
- display: table;
-snippet ec
- empty-cells: ${0};
-snippet ec:h
- empty-cells: hide;
-snippet ec:s
- empty-cells: show;
-snippet exp
- expression()
-snippet fl
- float: ${0};
-snippet fl:l
- float: left;
-snippet fl:n
- float: none;
-snippet fl:r
- float: right;
-snippet f+
- font: ${1:1em} ${2:Arial},${0:sans-serif};
-snippet fef
- font-effect: ${0};
-snippet fef:eb
- font-effect: emboss;
-snippet fef:eg
- font-effect: engrave;
-snippet fef:n
- font-effect: none;
-snippet fef:o
- font-effect: outline;
-snippet femp
- font-emphasize-position: ${0};
-snippet femp:a
- font-emphasize-position: after;
-snippet femp:b
- font-emphasize-position: before;
-snippet fems
- font-emphasize-style: ${0};
-snippet fems:ac
- font-emphasize-style: accent;
-snippet fems:c
- font-emphasize-style: circle;
-snippet fems:ds
- font-emphasize-style: disc;
-snippet fems:dt
- font-emphasize-style: dot;
-snippet fems:n
- font-emphasize-style: none;
-snippet fem
- font-emphasize: ${0};
-snippet ff
- font-family: ${0};
-snippet ff:c
- font-family: ${0:'Monotype Corsiva','Comic Sans MS'},cursive;
-snippet ff:f
- font-family: ${0:Capitals,Impact},fantasy;
-snippet ff:m
- font-family: ${0:Monaco,'Courier New'},monospace;
-snippet ff:ss
- font-family: ${0:Helvetica,Arial},sans-serif;
-snippet ff:s
- font-family: ${0:Georgia,'Times New Roman'},serif;
-snippet fza
- font-size-adjust: ${0};
-snippet fza:n
- font-size-adjust: none;
-snippet fz
- font-size: ${0};
-snippet fsm
- font-smooth: ${0};
-snippet fsm:aw
- font-smooth: always;
-snippet fsm:a
- font-smooth: auto;
-snippet fsm:n
- font-smooth: never;
-snippet fst
- font-stretch: ${0};
-snippet fst:c
- font-stretch: condensed;
-snippet fst:e
- font-stretch: expanded;
-snippet fst:ec
- font-stretch: extra-condensed;
-snippet fst:ee
- font-stretch: extra-expanded;
-snippet fst:n
- font-stretch: normal;
-snippet fst:sc
- font-stretch: semi-condensed;
-snippet fst:se
- font-stretch: semi-expanded;
-snippet fst:uc
- font-stretch: ultra-condensed;
-snippet fst:ue
- font-stretch: ultra-expanded;
-snippet fs
- font-style: ${0};
-snippet fs:i
- font-style: italic;
-snippet fs:n
- font-style: normal;
-snippet fs:o
- font-style: oblique;
-snippet fv
- font-variant: ${0};
-snippet fv:n
- font-variant: normal;
-snippet fv:sc
- font-variant: small-caps;
-snippet fw
- font-weight: ${0};
-snippet fw:b
- font-weight: bold;
-snippet fw:br
- font-weight: bolder;
-snippet fw:lr
- font-weight: lighter;
-snippet fw:n
- font-weight: normal;
-snippet f
- font: ${0};
-snippet h
- height: ${0};
-snippet h:a
- height: auto;
-snippet l
- left: ${0};
-snippet l:a
- left: auto;
-snippet lts
- letter-spacing: ${0};
-snippet lh
- line-height: ${0};
-snippet lisi
- list-style-image: url(${0});
-snippet lisi:n
- list-style-image: none;
-snippet lisp
- list-style-position: ${0};
-snippet lisp:i
- list-style-position: inside;
-snippet lisp:o
- list-style-position: outside;
-snippet list
- list-style-type: ${0};
-snippet list:c
- list-style-type: circle;
-snippet list:dclz
- list-style-type: decimal-leading-zero;
-snippet list:dc
- list-style-type: decimal;
-snippet list:d
- list-style-type: disc;
-snippet list:lr
- list-style-type: lower-roman;
-snippet list:n
- list-style-type: none;
-snippet list:s
- list-style-type: square;
-snippet list:ur
- list-style-type: upper-roman;
-snippet lis
- list-style: ${0};
-snippet lis:n
- list-style: none;
-snippet mb
- margin-bottom: ${0};
-snippet mb:a
- margin-bottom: auto;
-snippet ml
- margin-left: ${0};
-snippet ml:a
- margin-left: auto;
-snippet mr
- margin-right: ${0};
-snippet mr:a
- margin-right: auto;
-snippet mt
- margin-top: ${0};
-snippet mt:a
- margin-top: auto;
-snippet m
- margin: ${0};
-snippet m:4
- margin: ${1:0} ${2:0} ${3:0} ${0:0};
-snippet m:3
- margin: ${1:0} ${2:0} ${0:0};
-snippet m:2
- margin: ${1:0} ${0:0};
-snippet m:0
- margin: 0;
-snippet m:a
- margin: auto;
-snippet mah
- max-height: ${0};
-snippet mah:n
- max-height: none;
-snippet maw
- max-width: ${0};
-snippet maw:n
- max-width: none;
-snippet mih
- min-height: ${0};
-snippet miw
- min-width: ${0};
-snippet op
- opacity: ${0};
-snippet op:ie
- filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=${0:100});
-snippet op:ms
- -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=${0:100})';
-snippet orp
- orphans: ${0};
-snippet o+
- outline: ${1:1px} ${2:solid} #${0:000};
-snippet oc
- outline-color: ${0:#000};
-snippet oc:i
- outline-color: invert;
-snippet oo
- outline-offset: ${0};
-snippet os
- outline-style: ${0};
-snippet ow
- outline-width: ${0};
-snippet o
- outline: ${0};
-snippet o:n
- outline: none;
-snippet ovs
- overflow-style: ${0};
-snippet ovs:a
- overflow-style: auto;
-snippet ovs:mq
- overflow-style: marquee;
-snippet ovs:mv
- overflow-style: move;
-snippet ovs:p
- overflow-style: panner;
-snippet ovs:s
- overflow-style: scrollbar;
-snippet ovx
- overflow-x: ${0};
-snippet ovx:a
- overflow-x: auto;
-snippet ovx:h
- overflow-x: hidden;
-snippet ovx:s
- overflow-x: scroll;
-snippet ovx:v
- overflow-x: visible;
-snippet ovy
- overflow-y: ${0};
-snippet ovy:a
- overflow-y: auto;
-snippet ovy:h
- overflow-y: hidden;
-snippet ovy:s
- overflow-y: scroll;
-snippet ovy:v
- overflow-y: visible;
-snippet ov
- overflow: ${0};
-snippet ov:a
- overflow: auto;
-snippet ov:h
- overflow: hidden;
-snippet ov:s
- overflow: scroll;
-snippet ov:v
- overflow: visible;
-snippet pb
- padding-bottom: ${0};
-snippet pl
- padding-left: ${0};
-snippet pr
- padding-right: ${0};
-snippet pt
- padding-top: ${0};
-snippet p
- padding: ${0};
-snippet p:4
- padding: ${1:0} ${2:0} ${3:0} ${0:0};
-snippet p:3
- padding: ${1:0} ${2:0} ${0:0};
-snippet p:2
- padding: ${1:0} ${0:0};
-snippet p:0
- padding: 0;
-snippet pgba
- page-break-after: ${0};
-snippet pgba:aw
- page-break-after: always;
-snippet pgba:a
- page-break-after: auto;
-snippet pgba:l
- page-break-after: left;
-snippet pgba:r
- page-break-after: right;
-snippet pgbb
- page-break-before: ${0};
-snippet pgbb:aw
- page-break-before: always;
-snippet pgbb:a
- page-break-before: auto;
-snippet pgbb:l
- page-break-before: left;
-snippet pgbb:r
- page-break-before: right;
-snippet pgbi
- page-break-inside: ${0};
-snippet pgbi:a
- page-break-inside: auto;
-snippet pgbi:av
- page-break-inside: avoid;
-snippet pos
- position: ${0};
-snippet pos:a
- position: absolute;
-snippet pos:f
- position: fixed;
-snippet pos:r
- position: relative;
-snippet pos:s
- position: static;
-snippet q
- quotes: ${0};
-snippet q:en
- quotes: '\201C' '\201D' '\2018' '\2019';
-snippet q:n
- quotes: none;
-snippet q:ru
- quotes: '\00AB' '\00BB' '\201E' '\201C';
-snippet rz
- resize: ${0};
-snippet rz:b
- resize: both;
-snippet rz:h
- resize: horizontal;
-snippet rz:n
- resize: none;
-snippet rz:v
- resize: vertical;
-snippet r
- right: ${0};
-snippet r:a
- right: auto;
-snippet tbl
- table-layout: ${0};
-snippet tbl:a
- table-layout: auto;
-snippet tbl:f
- table-layout: fixed;
-snippet tal
- text-align-last: ${0};
-snippet tal:a
- text-align-last: auto;
-snippet tal:c
- text-align-last: center;
-snippet tal:l
- text-align-last: left;
-snippet tal:r
- text-align-last: right;
-snippet ta
- text-align: ${0};
-snippet ta:c
- text-align: center;
-snippet ta:l
- text-align: left;
-snippet ta:r
- text-align: right;
-snippet td
- text-decoration: ${0};
-snippet td:l
- text-decoration: line-through;
-snippet td:n
- text-decoration: none;
-snippet td:o
- text-decoration: overline;
-snippet td:u
- text-decoration: underline;
-snippet te
- text-emphasis: ${0};
-snippet te:ac
- text-emphasis: accent;
-snippet te:a
- text-emphasis: after;
-snippet te:b
- text-emphasis: before;
-snippet te:c
- text-emphasis: circle;
-snippet te:ds
- text-emphasis: disc;
-snippet te:dt
- text-emphasis: dot;
-snippet te:n
- text-emphasis: none;
-snippet th
- text-height: ${0};
-snippet th:a
- text-height: auto;
-snippet th:f
- text-height: font-size;
-snippet th:m
- text-height: max-size;
-snippet th:t
- text-height: text-size;
-snippet ti
- text-indent: ${0};
-snippet ti:-
- text-indent: -9999px;
-snippet tj
- text-justify: ${0};
-snippet tj:a
- text-justify: auto;
-snippet tj:d
- text-justify: distribute;
-snippet tj:ic
- text-justify: inter-cluster;
-snippet tj:ii
- text-justify: inter-ideograph;
-snippet tj:iw
- text-justify: inter-word;
-snippet tj:k
- text-justify: kashida;
-snippet tj:t
- text-justify: tibetan;
-snippet to+
- text-outline: ${1:0} ${2:0} #${0:000};
-snippet to
- text-outline: ${0};
-snippet to:n
- text-outline: none;
-snippet tr
- text-replace: ${0};
-snippet tr:n
- text-replace: none;
-snippet tsh+
- text-shadow: ${1:0} ${2:0} ${3:0} #${0:000};
-snippet tsh
- text-shadow: ${0};
-snippet tsh:n
- text-shadow: none;
-snippet tt
- text-transform: ${0};
-snippet tt:c
- text-transform: capitalize;
-snippet tt:l
- text-transform: lowercase;
-snippet tt:n
- text-transform: none;
-snippet tt:u
- text-transform: uppercase;
-snippet tw
- text-wrap: ${0};
-snippet tw:no
- text-wrap: none;
-snippet tw:n
- text-wrap: normal;
-snippet tw:s
- text-wrap: suppress;
-snippet tw:u
- text-wrap: unrestricted;
-snippet t
- top: ${0};
-snippet t:a
- top: auto;
-snippet va
- vertical-align: ${0};
-snippet va:bl
- vertical-align: baseline;
-snippet va:b
- vertical-align: bottom;
-snippet va:m
- vertical-align: middle;
-snippet va:sub
- vertical-align: sub;
-snippet va:sup
- vertical-align: super;
-snippet va:tb
- vertical-align: text-bottom;
-snippet va:tt
- vertical-align: text-top;
-snippet va:t
- vertical-align: top;
-snippet v
- visibility: ${0};
-snippet v:c
- visibility: collapse;
-snippet v:h
- visibility: hidden;
-snippet v:v
- visibility: visible;
-snippet whsc
- white-space-collapse: ${0};
-snippet whsc:ba
- white-space-collapse: break-all;
-snippet whsc:bs
- white-space-collapse: break-strict;
-snippet whsc:k
- white-space-collapse: keep-all;
-snippet whsc:l
- white-space-collapse: loose;
-snippet whsc:n
- white-space-collapse: normal;
-snippet whs
- white-space: ${0};
-snippet whs:n
- white-space: normal;
-snippet whs:nw
- white-space: nowrap;
-snippet whs:pl
- white-space: pre-line;
-snippet whs:pw
- white-space: pre-wrap;
-snippet whs:p
- white-space: pre;
-snippet wid
- widows: ${0};
-snippet w
- width: ${0};
-snippet w:a
- width: auto;
-snippet wob
- word-break: ${0};
-snippet wob:ba
- word-break: break-all;
-snippet wob:bs
- word-break: break-strict;
-snippet wob:k
- word-break: keep-all;
-snippet wob:l
- word-break: loose;
-snippet wob:n
- word-break: normal;
-snippet wos
- word-spacing: ${0};
-snippet wow
- word-wrap: ${0};
-snippet wow:no
- word-wrap: none;
-snippet wow:n
- word-wrap: normal;
-snippet wow:s
- word-wrap: suppress;
-snippet wow:u
- word-wrap: unrestricted;
-snippet z
- z-index: ${0};
-snippet z:a
- z-index: auto;
-snippet zoo
- zoom: 1;
-snippet :h
- :hover
-snippet :fc
- :first-child
-snippet :lc
- :last-child
-snippet :nc
- :nth-child(${0})
-snippet :nlc
- :nth-last-child(${0})
-snippet :oc
- :only-child
-snippet :a
- :after
-snippet :b
- :before
-snippet ::a
- ::after
-snippet ::b
- ::before
diff --git a/vim/snippets/vim-snippets/snippets/cuda.snippets b/vim/snippets/vim-snippets/snippets/cuda.snippets
deleted file mode 100644
index 425ca67..0000000
--- a/vim/snippets/vim-snippets/snippets/cuda.snippets
+++ /dev/null
@@ -1 +0,0 @@
-extends cpp
diff --git a/vim/snippets/vim-snippets/snippets/d.snippets b/vim/snippets/vim-snippets/snippets/d.snippets
deleted file mode 100644
index e32a299..0000000
--- a/vim/snippets/vim-snippets/snippets/d.snippets
+++ /dev/null
@@ -1,338 +0,0 @@
-### Import
-snippet imp
- import
-snippet pimp
- public import
-### My favorite modules
-snippet io
- std.stdio
-snippet traits
- std.traits
-snippet conv
- std.conv
-snippet arr
- std.array
-snippet algo
- std.algorithm
-snippet theusual
- import std.stdio, std.string, std.array;
- import std.traits, std.conv, std.algorithm;
- import std.math, std.regex;
-### Control Structures
-snippet for
- for(int ${1:i} = 0; $1 < ${2:count}; $1++) {
- ${0}
- }
-snippet fe
- foreach(${1:elem}; ${2:range}) {
- ${0}
- }
-snippet fei
- foreach(${1:i}, ${2:elem}; ${3:range}) {
- ${0}
- }
-snippet fer
- foreach_reverse(${1:elem}; ${2:range}) {
- ${0}
- }
-snippet feri
- foreach_reverse(${1:i}, ${2:elem}; ${3:range}) {
- ${0}
- }
-snippet sce
- scope(exit) ${1:f.close();}
-snippet scs
- scope(success) ${1}
-snippet scf
- scope(failure) ${1}
-snippet el
- else {
- ${1}
- }
-snippet eif
- else if(${1}) {
- ${0}
- }
-snippet if
- if(${1}) {
- ${0}
- }
-snippet ife
- if(${1}) {
- ${2}
- } else {
- ${3}
- }
-snippet ifee
- if(${1}) {
- ${2}
- } else if(${3}) {
- ${4}
- } else {
- ${5}
- }
-snippet sw
- switch(${1}) {
- ${0}
- }
-snippet cs
- case ${1:0}:
- ${2}
- break;
-snippet def
- default:
- ${0}
-snippet fsw
- final switch(${1}) {
- ${0}
- }
-snippet try
- try {
- ${1:${VISUAL}}
- } catch(${2:Exception} ${3:e}) {
- ${4}
- }
-snippet tcf
- try {
- ${0:${VISUAL}}
- } catch(${1:Exception} ${2:e}) {
- ${3}
- } finally {
- ${4}
- }
-snippet wh
- while(${1:cond}) {
- ${0:${VISUAL}}
- }
-snippet dowh
- do {
- ${1}
- } while(${2});
-snippet sif
- static if(${1:cond}) {
- ${2}
- }
-snippet sife
- static if(${1}) {
- ${2}
- } else {
- ${3}
- }
-snippet sifee
- static if(${1}) {
- ${2}
- } else static if(${3}) {
- ${4}
- } else {
- ${5}
- }
-snippet seif
- else static if(${1}) {
- ${2}
- }
-snippet ?
- (${1: a > b}) ? ${2:a} : ${3:b};
-snippet with
- with(${1:exp}) {
- ${2}
- } ${0}
-### Functions
-snippet fun
- ${1:auto} ${2:func}(${3:params}) {
- ${0}
- }
-snippet contr
- in {
- ${1}
- } out {
- ${2}
- } body {
- ${0}
- }
-snippet l
- (${1:x}) => ${2:x}${0:;}
-snippet funl
- function (${1:int x}) => ${2}${3:;}
-snippet del
- delegate (${1:int x}) => ${2}${3:;}
-### Templates
-snippet temp
- template ${1:`vim_snippets#Filename("$2", "untitled")`}(${2:T}) {
- ${0}
- }
-snippet tempif
- template ${1:`vim_snippets#Filename("$2", "untitled")`}(${2:T}) if(${3:isSomeString!}$2) {
- ${0}
- }
-snippet opApply
- int opApply(Dg)(Dg dg) if(ParameterTypeTuble!Dg.length == 2) {
- ${0}
- }
-snippet psn
- pure @safe nothrow
-snippet safe
- @safe
-snippet trusted
- @trusted
-snippet system
- @system
-### OOPs
-snippet cl
- class${1:(T)} ${2:`vim_snippets#Filename("$3", "untitled")`} {
- ${0}
- }
-snippet str
- struct${1:(T)} ${2:`vim_snippets#Filename("$3", "untitled")`} {
- ${0}
- }
-snippet uni
- union${1:(T)} ${2:`vim_snippets#Filename("$3", "untitled")`} {
- ${0}
- }
-snippet inter
- interface I${1:`vim_snippets#Filename("$2", "untitled")`} {
- ${0}
- }
-snippet enum
- enum ${1} {
- ${0}
- }
-snippet pu
- public
-snippet pr
- private
-snippet po
- protected
-snippet ctor
- this(${1}) {
- ${0}
- }
-snippet dtor
- ~this(${1}) {
- ${0}
- }
-### Type Witchery
-snippet al
- alias ${1:b} = ${2:a};
- ${0}
-snippet alth
- alias ${1:value} this;
- ${0}
-### The Commonplace
-snippet main
- void main() {
- ${0}
- }
-snippet maina
- void main(string[] args) {
- ${0}
- }
-snippet mod
- module ${1:main};${0}
-snippet var
- ${1:auto} ${2:var} = ${0:1};
-snippet new
- ${1:auto} ${2:var} = new ${3:Object}(${4});
- ${0}
-snippet file
- auto ${1:f} = File(${2:"useful_info.xml"}, ${3:"rw"});
- ${0}
-snippet map
- map!(${1:f})(${2:xs});
- ${0}
-snippet filter
- filter!(${1:p})(${2:xs});
- ${0}
-snippet reduce
- reduce!(${1:f})(${2:xs});
- ${0}
-snippet find
- find!(${1:p})($2:xs);
- ${0}
-snippet aa
- ${1:int}[${2:string}] ${3:dict} = ${0};
-### Misc
-snippet #!
- #!/usr/bin/env rdmd
-snippet bang
- #!/usr/bin/env rdmd
-snippet rdmd
- #!/usr/bin/env rdmd
-snippet isstr
- isSomeString!${1:S}
-snippet isnum
- isNumeric!${1:N}
-snippet tos
- to!string(${1:x});
- ${0}
-snippet toi
- to!int(${1:str});
- ${0}
-snippet tod
- to!double(${1:str});
- ${0}
-snippet un
- unittest {
- ${0}
- }
-snippet ver
- version(${1:Posix}) {
- ${0}
- }
-snippet de
- debug {
- ${0}
- }
-snippet sst
- shared static this(${1}) {
- ${0}
- }
-snippet td
- // Typedef is deprecated. Use alias instead.
- typedef
-snippet ino
- inout
-snippet imm
- immutable
-snippet fin
- final
-snippet con
- const
-snippet psi
- private static immutable ${1:int} ${2:Constant} = ${3:1};
- ${0}
-snippet prag
- pragma(${1})
-snippet pms
- pragma(msg, ${1:Warning});
-snippet asm
- asm {
- ${1}
- }
-snippet mixin
- mixin(${1:`writeln("Hello, World!");`});
-snippet over
- override
-snippet ret
- return ${1};
-snippet FILE
- __FILE__
-snippet MOD
- __MODULE__
-snippet LINE
- __LINE__
-snippet FUN
- __FUNCTION__
-snippet PF
- __PRETTY_FUNCTION__
-snippet cast
- cast(${1:T})(${2:val});
-snippet /*
- /*
- * ${1}
- */
-### Fun stuff
-snippet idk
- // I don't know how this works. Don't touch it.
-snippet idfk
- // Don't FUCKING touch this.
diff --git a/vim/snippets/vim-snippets/snippets/dart.snippets b/vim/snippets/vim-snippets/snippets/dart.snippets
deleted file mode 100644
index 78625c6..0000000
--- a/vim/snippets/vim-snippets/snippets/dart.snippets
+++ /dev/null
@@ -1,82 +0,0 @@
-snippet lib
- #library('${1}');
- ${0}
-snippet im
- #import('${1}');
- ${0}
-snippet so
- #source('${1}');
- ${0}
-snippet main
- static void main() {
- ${0}
- }
-snippet st
- static ${0}
-snippet fi
- final ${0}
-snippet re
- return ${0}
-snippet br
- break;
-snippet th
- throw ${0}
-snippet cl
- class ${1:`vim_snippets#Filename("", "untitled")`} ${0}
-snippet in
- interface ${1:`vim_snippets#Filename("", "untitled")`} ${0}
-snippet imp
- implements ${0}
-snippet ext
- extends ${0}
-snippet if
- if (${1:true}) {
- ${0}
- }
-snippet ife
- if (${1:true}) {
- ${2}
- } else {
- ${0}
- }
-snippet el
- else
-snippet sw
- switch (${1}) {
- ${0}
- }
-snippet cs
- case ${1}:
- ${0}
-snippet de
- default:
- ${0}
-snippet for
- for (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) {
- ${0:$1[$2]}
- }
-snippet fore
- for (final ${2:item} in ${1:itemList}) {
- ${0}
- }
-snippet wh
- while (${1:/* condition */}) {
- ${0}
- }
-snippet dowh
- do {
- ${0}
- } while (${0:/* condition */});
-snippet as
- assert(${0:/* condition */});
-snippet try
- try {
- ${0:${VISUAL}}
- } catch (${1:Exception e}) {
- }
-snippet tryf
- try {
- ${0:${VISUAL}}
- } catch (${1:Exception e}) {
- } finally {
- }
diff --git a/vim/snippets/vim-snippets/snippets/diff.snippets b/vim/snippets/vim-snippets/snippets/diff.snippets
deleted file mode 100644
index 89bc31d..0000000
--- a/vim/snippets/vim-snippets/snippets/diff.snippets
+++ /dev/null
@@ -1,11 +0,0 @@
-# DEP-3 (http://dep.debian.net/deps/dep3/) style patch header
-snippet header DEP-3 style header
- Description: ${1}
- Origin: ${2:vendor|upstream|other}, ${3:url of the original patch}
- Bug: ${4:url in upstream bugtracker}
- Forwarded: ${5:no|not-needed|url}
- Author: ${6:`g:snips_author`}
- Reviewed-by: ${7:name and email}
- Last-Update: ${8:`strftime("%Y-%m-%d")`}
- Applied-Upstream: ${0:upstream version|url|commit}
-
diff --git a/vim/snippets/vim-snippets/snippets/django.snippets b/vim/snippets/vim-snippets/snippets/django.snippets
deleted file mode 100644
index e2a8d6d..0000000
--- a/vim/snippets/vim-snippets/snippets/django.snippets
+++ /dev/null
@@ -1,112 +0,0 @@
-# Model Fields
-
-# Note: Optional arguments are using defaults that match what Django will use
-# as a default, e.g. with max_length fields. Doing this as a form of self
-# documentation and to make it easy to know whether you should override the
-# default or not.
-
-# Note: Optional arguments that are booleans will use the opposite since you
-# can either not specify them, or override them, e.g. auto_now_add=False.
-
-snippet auto
- ${1:FIELDNAME} = models.AutoField(${0})
-snippet bigint
- ${1:FIELDNAME} = models.BigIntegerField(${0})
-snippet binary
- ${1:FIELDNAME} = models.BinaryField(${0})
-snippet bool
- ${1:FIELDNAME} = models.BooleanField(${0:default=True})
-snippet char
- ${1:FIELDNAME} = models.CharField(max_length=${2}${0:, blank=True})
-snippet comma
- ${1:FIELDNAME} = models.CommaSeparatedIntegerField(max_length=${2}${0:, blank=True})
-snippet date
- ${1:FIELDNAME} = models.DateField(${2:auto_now_add=True, auto_now=True}${0:, blank=True, null=True})
-snippet datetime
- ${1:FIELDNAME} = models.DateTimeField(${2:auto_now_add=True, auto_now=True}${0:, blank=True, null=True})
-snippet decimal
- ${1:FIELDNAME} = models.DecimalField(max_digits=${2}, decimal_places=${0})
-snippet email
- ${1:FIELDNAME} = models.EmailField(max_length=${2:75}${0:, blank=True})
-snippet file
- ${1:FIELDNAME} = models.FileField(upload_to=${2:path/for/upload}${0:, max_length=100})
-snippet filepath
- ${1:FIELDNAME} = models.FilePathField(path=${2:"/abs/path/to/dir"}${3:, max_length=100}${4:, match="*.ext"}${5:, recursive=True}${0:, blank=True, })
-snippet float
- ${1:FIELDNAME} = models.FloatField(${0})
-snippet image
- ${1:FIELDNAME} = models.ImageField(upload_to=${2:path/for/upload}${3:, height_field=height, width_field=width}${0:, max_length=100})
-snippet int
- ${1:FIELDNAME} = models.IntegerField(${0})
-snippet ip
- ${1:FIELDNAME} = models.IPAddressField(${0})
-snippet nullbool
- ${1:FIELDNAME} = models.NullBooleanField(${0})
-snippet posint
- ${1:FIELDNAME} = models.PositiveIntegerField(${0})
-snippet possmallint
- ${1:FIELDNAME} = models.PositiveSmallIntegerField(${0})
-snippet slug
- ${1:FIELDNAME} = models.SlugField(max_length=${2:50}${0:, blank=True})
-snippet smallint
- ${1:FIELDNAME} = models.SmallIntegerField(${0})
-snippet text
- ${1:FIELDNAME} = models.TextField(${0:blank=True})
-snippet time
- ${1:FIELDNAME} = models.TimeField(${2:auto_now_add=True, auto_now=True}${0:, blank=True, null=True})
-snippet url
- ${1:FIELDNAME} = models.URLField(${2:verify_exists=False}${3:, max_length=200}${0:, blank=True})
-snippet xml
- ${1:FIELDNAME} = models.XMLField(schema_path=${2:None}${0:, blank=True})
-# Relational Fields
-snippet fk
- ${1:FIELDNAME} = models.ForeignKey(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${0:, to_field=''})
-snippet m2m
- ${1:FIELDNAME} = models.ManyToManyField(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${5:, symmetrical=False}${6:, through=''}${0:, db_table=''})
-snippet o2o
- ${1:FIELDNAME} = models.OneToOneField(${2:OtherModel}${3:, parent_link=True}${4:, related_name=''}${5:, limit_choices_to=}${0:, to_field=''})
-
-# Code Skeletons
-
-snippet form
- class ${1:FormName}(forms.Form):
- """${2:docstring}"""
- ${0}
-
-snippet model
- class ${1:ModelName}(models.Model):
- """${2:docstring}"""
- ${3}
-
- class Meta:
- ${4}
-
- def __unicode__(self):
- ${5}
-
- def save(self, *args, **kwargs):
- ${6}
-
- @models.permalink
- def get_absolute_url(self):
- return ('${7:view_or_url_name}' ${0})
-
-snippet modeladmin
- class ${1:ModelName}Admin(admin.ModelAdmin):
- ${0}
-
- admin.site.register($1, $1Admin)
-
-snippet tabularinline
- class ${0:ModelName}Inline(admin.TabularInline):
- model = $1
-
-snippet stackedinline
- class ${0:ModelName}Inline(admin.StackedInline):
- model = $1
-
-snippet r2r
- return render_to_response('${1:template.html}', {
- ${2}
- }${0:, context_instance=RequestContext(request)}
- )
diff --git a/vim/snippets/vim-snippets/snippets/dosini.snippets b/vim/snippets/vim-snippets/snippets/dosini.snippets
deleted file mode 100644
index 95c759c..0000000
--- a/vim/snippets/vim-snippets/snippets/dosini.snippets
+++ /dev/null
@@ -1,12 +0,0 @@
-snippet ec
- ; http://editorconfig.org
-
- root = true
-
- [*]
- indent_style = ${1:space_or_tab}
- indent_size = ${2:indent_size}
- end_of_line = lf
- charset = utf-8
- trim_trailing_whitespace = true
- insert_final_newline = true
diff --git a/vim/snippets/vim-snippets/snippets/eelixir.snippets b/vim/snippets/vim-snippets/snippets/eelixir.snippets
deleted file mode 100644
index 6286cee..0000000
--- a/vim/snippets/vim-snippets/snippets/eelixir.snippets
+++ /dev/null
@@ -1,34 +0,0 @@
-extends html
-
-snippet %
- <% ${0} %>
-snippet =
- <%= ${0} %>
-snippet end
- <% end %>
-snippet for
- <%= for ${1:item} <- ${2:items} ${3:@conn} do %>
- ${0}
- <% end %>
-snippet if
- <%= if ${1} do %>
- ${0:${VISUAL}}
- <% end %>
-snippet ife
- <%= if ${1} do %>
- ${2:${VISUAL}}
- <%= else %>
- ${0}
- <% end %>
-snippet ft
- <%= form_tag(${1:"/users"}, method: ${2::post}) %>
- ${0}
-
-snippet lin
- <%= link "${1:Submit}", to: ${2:"/users"}, method: ${3::delete} %>
-snippet ff
- <%= form_for @changeset, ${1:"/users"}, fn f -> %>
- ${0}
-
- <%= submit "Submit" %>
- <% end %>
diff --git a/vim/snippets/vim-snippets/snippets/elixir.snippets b/vim/snippets/vim-snippets/snippets/elixir.snippets
deleted file mode 100644
index 4b4ef39..0000000
--- a/vim/snippets/vim-snippets/snippets/elixir.snippets
+++ /dev/null
@@ -1,199 +0,0 @@
-snippet do
- do
- ${0:${VISUAL}}
- end
-snippet put IO.puts
- IO.puts "${0}"
-snippet ins IO.inspect
- IO.inspect ${0}
-snippet insl IO.inspect with label
- IO.inspect(${0}label: "${1:label}")
-snippet if if .. do .. end
- if ${1} do
- ${0:${VISUAL}}
- end
-snippet if: if .. do: ..
- if ${1:condition}, do: ${0}
-snippet ife if .. do .. else .. end
- if ${1:condition} do
- ${2:${VISUAL}}
- else
- ${0}
- end
-snippet ife: if .. do: .. else:
- if ${1:condition}, do: ${2}, else: ${0}
-snippet unless unless .. do .. end
- unless ${1} do
- ${0:${VISUAL}}
- end
-snippet unless: unless .. do: ..
- unless ${1:condition}, do: ${0}
-snippet unlesse unless .. do .. else .. end
- unless ${1:condition} do
- ${2:${VISUAL}}
- else
- ${0}
- end
-snippet unlesse: unless .. do: .. else:
- unless ${1:condition}, do: ${2}, else: ${0}
-snippet cond
- cond do
- ${1} ->
- ${0:${VISUAL}}
- end
-snippet case
- case ${1} do
- ${2} ->
- ${0}
- end
-snippet for
- for ${1:item} <- ${2:items} do
- ${0}
- end
-snippet for:
- for ${1:item} <- ${2:items}, do: ${0}
-snippet fori
- for ${1:item} <- ${2:items}, into: ${3} do
- ${0}
- end
-snippet wi
- with ${1:item} <- ${2:items} do
- ${0}
- end
-snippet wie
- with(
- ${1:item} <- ${2:items}
- ) do
- ${3}
- else
- ${4} ->
- ${0}
- end
-snippet sp
- @spec ${1:name}(${2:args}) :: ${3:returns}
-snippet op
- @opaque ${1:type_name} :: ${2:type}
-snippet ty
- @type ${1:type_name} :: ${2:type}
-snippet typ
- @typep ${1:type_name} :: ${2:type}
-snippet cb
- @callback ${1:name}(${2:args}) :: ${3:returns}
-snippet df
- def ${1:name}, do: ${2}
-snippet def
- def ${1:name} do
- ${0}
- end
-snippet defd
- @doc """
- ${1:doc string}
-
- """
- def ${2:name} do
- ${0}
- end
-snippet defsd
- @doc """
- ${1:doc string}
-
- """
- @spec ${2:name} :: ${3:no_return}
- def ${2} do
- ${0}
- end
-snippet defim
- defimpl ${1:protocol_name}, for: ${2:data_type} do
- ${0}
- end
-snippet defma
- defmacro ${1:name} do
- ${0}
- end
-snippet defmo
- defmodule ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} do
- ${0}
- end
-snippet dfp
- defp ${1:name}, do: ${2}
-snippet defp
- defp ${1:name} do
- ${0}
- end
-snippet defpr
- defprotocol ${1:name}, [${0:function}]
-snippet defr
- defrecord ${1:record_name}, ${0:fields}
-snippet doc
- @doc """
- ${0}
-
- """
-snippet docf
- @doc false
-snippet fn
- fn ${1:args} -> ${0} end
-snippet mdoc
- @moduledoc """
- ${0}
-
- """
-snippet mdocf
- @moduledoc false
-snippet rec
- receive do
- ${1} ->
- ${0}
- end
-snippet req
- require ${0:module_name}
-snippet imp
- import ${0:module_name}
-snippet ali
- alias ${0:module_name}
-snippet test
- test "${1:test name}" do
- ${0}
- end
-snippet testa
- test "${1:test_name}", %{${2:arg: arg}} do
- ${0}
- end
-snippet des
- describe "${1:test group subject}" do
- ${0}
- end
-snippet exunit
- defmodule ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} do
- use ExUnit.Case, async: true
-
- ${0}
- end
-snippet try try .. rescue .. end
- try do
- ${1:${VISUAL}}
- rescue
- ${2} -> ${0}
- end
-snippet pry
- require IEx; IEx.pry
- ${0}
-snippet qu
- quote do
- ${1}
- end
-snippet beh
- @behaviour ${1:Mix.Task}
- ${0}
-snippet >e pipe to each
- |> Enum.each(fn ${1} -> ${0} end)
-snippet >m pipe to map
- |> Enum.map(fn ${1} -> ${0} end)
-snippet >f pipe to filter
- |> Enum.filter(fn ${1} -> ${0} end)
-snippet >r pipe to reduce
- |> Enum.reduce(${1:acc}, fn ${2}, ${3:acc} -> ${0} end)
-snippet >i pipe to inspect
- |> IO.inspect
-snippet >il pipe to inspect with label
- |> IO.inspect(label: "${1:label}")
diff --git a/vim/snippets/vim-snippets/snippets/elm.snippets b/vim/snippets/vim-snippets/snippets/elm.snippets
deleted file mode 100644
index 7a4e3ef..0000000
--- a/vim/snippets/vim-snippets/snippets/elm.snippets
+++ /dev/null
@@ -1,51 +0,0 @@
-snippet mod
- module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')` exposing (${1})
- ${0}
-snippet imp
- import ${0:List}
-snippet impe
- import ${1:List} exposing (${0:map})
-snippet fn
- ${1:fn} : ${2:a} -> ${3:a}
- $1 ${4} =
- ${0}
-snippet fn1
- ${1:fn} : ${2:a} -> ${3:a}
- $1 ${4} =
- ${0}
-snippet fn2
- ${1:fn} : ${2:a} -> ${3:a} -> ${4:a}
- $1 ${5} =
- ${0}
-snippet fn3
- ${1:fn} : ${2:a} -> ${3:a} -> ${4:a} -> ${5:a}
- $1 ${6} =
- ${0}
-snippet fn0
- ${1:fn} : ${2:a}
- $1 =
- ${0}
-snippet case
- case ${1} of
- ${2} ->
- ${0}
-snippet -
- ${1} ->
- ${0}
-snippet let
- let
- ${1} =
- ${2}
- in
- ${0}
-snippet if
- if ${1} then
- ${2:${VISUAL}}
- else
- ${0}
-snippet ty
- type ${1:Msg}
- = ${0}
-snippet tya
- type alias ${1:Model} =
- ${0}
diff --git a/vim/snippets/vim-snippets/snippets/erlang.snippets b/vim/snippets/vim-snippets/snippets/erlang.snippets
deleted file mode 100644
index 960c8e7..0000000
--- a/vim/snippets/vim-snippets/snippets/erlang.snippets
+++ /dev/null
@@ -1,708 +0,0 @@
-# module
-snippet mod
- -module(${1:`vim_snippets#Filename()`}).
-# module and export all
-snippet modall
- -module(${1:`vim_snippets#Filename()`}).
- -compile([export_all]).
-
- start() ->
- ${0}
-
- stop() ->
- ok.
-# define directive
-snippet def
- -define(${1:macro}, ${2:body}).
-# export directive
-snippet exp
- -export([${1:function}/${0:arity}]).
-# include directive
-snippet inc
- -include("${1:file}").
-# include_lib directive
-snippet incl
- -include_lib("${1:lib}/include/${1}.hrl").${2}
-# behavior directive
-snippet beh
- -behaviour(${1:behaviour}).
-snippet ifd
- -ifdef(${1:TEST}).
- ${0}
- -endif.
-# if expression
-snippet if
- if
- ${1:guard} ->
- ${0:body}
- end
-# case expression
-snippet case
- case ${1:expression} of
- ${2:pattern} ->
- ${0:body};
- end
-# anonymous function
-snippet fun
- fun (${1:Parameters}) -> ${2:body} end
-# try...catch
-snippet try
- try
- ${1:${VISUAL}}
- catch
- ${2:_:_} -> ${0:got_some_exception}
- end
-# record directive
-snippet rec
- -record(${1:record}, {
- ${2:field}=${3:value}}).
-# todo comment
-snippet todo
- %% TODO: ${0}
-## Snippets below (starting with '%') are in EDoc format.
-## See http://www.erlang.org/doc/apps/edoc/chapter.html#id56887 for more details
-# doc comment
-snippet %d
- %% @doc ${0}
-# end of doc comment
-snippet %e
- %% @end
-# specification comment
-snippet %s
- %% @spec ${0}
-# private function marker
-snippet %p
- %% @private
-# OTP application
-snippet application
- -module(${1:`vim_snippets#Filename()`}).
-
- -behaviour(application).
-
- -export([start/2, stop/1]).
-
- start(_Type, _StartArgs) ->
- case ${0:root_supervisor}:start_link() of
- {ok, Pid} ->
- {ok, Pid};
- Other ->
- {error, Other}
- end.
-
- stop(_State) ->
- ok.
-# OTP supervisor
-snippet supervisor
- -module(${1:`vim_snippets#Filename()`}).
-
- -behaviour(supervisor).
-
- %% API
- -export([start_link/0]).
-
- %% Supervisor callbacks
- -export([init/1]).
-
- -define(SERVER, ?MODULE).
-
- start_link() ->
- supervisor:start_link({local, ?SERVER}, ?MODULE, []).
-
- init([]) ->
- Server = {${0:my_server}, {${2}, start_link, []},
- permanent, 2000, worker, [${2}]},
- Children = [Server],
- RestartStrategy = {one_for_one, 0, 1},
- {ok, {RestartStrategy, Children}}.
-# OTP gen_server
-snippet gen_server
- -module(${0:`vim_snippets#Filename()`}).
-
- -behaviour(gen_server).
-
- %% API
- -export([
- start_link/0
- ]).
-
- %% gen_server callbacks
- -export([init/1,
- handle_call/3,
- handle_cast/2,
- handle_info/2,
- terminate/2,
- code_change/3]).
-
- -define(SERVER, ?MODULE).
-
- -record(state, {}).
-
- %%%===================================================================
- %%% API
- %%%===================================================================
-
- start_link() ->
- gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).
-
- %%%===================================================================
- %%% gen_server callbacks
- %%%===================================================================
-
- init([]) ->
- {ok, #state{}}.
-
- handle_call(_Request, _From, State) ->
- Reply = ok,
- {reply, Reply, State}.
-
- handle_cast(_Msg, State) ->
- {noreply, State}.
-
- handle_info(_Info, State) ->
- {noreply, State}.
-
- terminate(_Reason, _State) ->
- ok.
-
- code_change(_OldVsn, State, _Extra) ->
- {ok, State}.
-
- %%%===================================================================
- %%% Internal functions
- %%%===================================================================
-# OTP gen_fsm
-snippet gen_fsm
- -module(${0:`vim_snippets#Filename()`}).
-
- -behaviour(gen_fsm).
-
- %% API
- -export([start_link/0]).
-
- %% gen_fsm callbacks
- -export([init/1,
- state_name/2,
- state_name/3,
- handle_event/3,
- handle_sync_event/4,
- handle_info/3,
- terminate/3,
- code_change/4]).
-
- -record(state, {}).
-
- %%%===================================================================
- %%% API
- %%%===================================================================
-
- %%--------------------------------------------------------------------
- %% @doc
- %% Creates a gen_fsm process which calls Module:init/1 to
- %% initialize. To ensure a synchronized start-up procedure, this
- %% function does not return until Module:init/1 has returned.
- %%
- %% @spec start_link() -> {ok, Pid} | ignore | {error, Error}
- %% @end
- %%--------------------------------------------------------------------
- start_link() ->
- gen_fsm:start_link({local, ?MODULE}, ?MODULE, [], []).
-
- %%%===================================================================
- %%% gen_fsm callbacks
- %%%===================================================================
-
- %%--------------------------------------------------------------------
- %% @private
- %% @doc
- %% Whenever a gen_fsm is started using gen_fsm:start/[3,4] or
- %% gen_fsm:start_link/[3,4], this function is called by the new
- %% process to initialize.
- %%
- %% @spec init(Args) -> {ok, StateName, State} |
- %% {ok, StateName, State, Timeout} |
- %% ignore |
- %% {stop, StopReason}
- %% @end
- %%--------------------------------------------------------------------
- init([]) ->
- {ok, state_name, #state{}}.
-
- %%--------------------------------------------------------------------
- %% @private
- %% @doc
- %% There should be one instance of this function for each possible
- %% state name. Whenever a gen_fsm receives an event sent using
- %% gen_fsm:send_event/2, the instance of this function with the same
- %% name as the current state name StateName is called to handle
- %% the event. It is also called if a timeout occurs.
- %%
- %% @spec state_name(Event, State) ->
- %% {next_state, NextStateName, NextState} |
- %% {next_state, NextStateName, NextState, Timeout} |
- %% {stop, Reason, NewState}
- %% @end
- %%--------------------------------------------------------------------
- state_name(_Event, State) ->
- {next_state, state_name, State}.
-
- %%--------------------------------------------------------------------
- %% @private
- %% @doc
- %% There should be one instance of this function for each possible
- %% state name. Whenever a gen_fsm receives an event sent using
- %% gen_fsm:sync_send_event/[2,3], the instance of this function with
- %% the same name as the current state name StateName is called to
- %% handle the event.
- %%
- %% @spec state_name(Event, From, State) ->
- %% {next_state, NextStateName, NextState} |
- %% {next_state, NextStateName, NextState, Timeout} |
- %% {reply, Reply, NextStateName, NextState} |
- %% {reply, Reply, NextStateName, NextState, Timeout} |
- %% {stop, Reason, NewState} |
- %% {stop, Reason, Reply, NewState}
- %% @end
- %%--------------------------------------------------------------------
- state_name(_Event, _From, State) ->
- Reply = ok,
- {reply, Reply, state_name, State}.
-
- %%--------------------------------------------------------------------
- %% @private
- %% @doc
- %% Whenever a gen_fsm receives an event sent using
- %% gen_fsm:send_all_state_event/2, this function is called to handle
- %% the event.
- %%
- %% @spec handle_event(Event, StateName, State) ->
- %% {next_state, NextStateName, NextState} |
- %% {next_state, NextStateName, NextState, Timeout} |
- %% {stop, Reason, NewState}
- %% @end
- %%--------------------------------------------------------------------
- handle_event(_Event, StateName, State) ->
- {next_state, StateName, State}.
-
- %%--------------------------------------------------------------------
- %% @private
- %% @doc
- %% Whenever a gen_fsm receives an event sent using
- %% gen_fsm:sync_send_all_state_event/[2,3], this function is called
- %% to handle the event.
- %%
- %% @spec handle_sync_event(Event, From, StateName, State) ->
- %% {next_state, NextStateName, NextState} |
- %% {next_state, NextStateName, NextState, Timeout} |
- %% {reply, Reply, NextStateName, NextState} |
- %% {reply, Reply, NextStateName, NextState, Timeout} |
- %% {stop, Reason, NewState} |
- %% {stop, Reason, Reply, NewState}
- %% @end
- %%--------------------------------------------------------------------
- handle_sync_event(_Event, _From, StateName, State) ->
- Reply = ok,
- {reply, Reply, StateName, State}.
-
- %%--------------------------------------------------------------------
- %% @private
- %% @doc
- %% This function is called by a gen_fsm when it receives any
- %% message other than a synchronous or asynchronous event
- %% (or a system message).
- %%
- %% @spec handle_info(Info,StateName,State)->
- %% {next_state, NextStateName, NextState} |
- %% {next_state, NextStateName, NextState, Timeout} |
- %% {stop, Reason, NewState}
- %% @end
- %%--------------------------------------------------------------------
- handle_info(_Info, StateName, State) ->
- {next_state, StateName, State}.
-
- %%--------------------------------------------------------------------
- %% @private
- %% @doc
- %% This function is called by a gen_fsm when it is about to
- %% terminate. It should be the opposite of Module:init/1 and do any
- %% necessary cleaning up. When it returns, the gen_fsm terminates with
- %% Reason. The return value is ignored.
- %%
- %% @spec terminate(Reason, StateName, State) -> void()
- %% @end
- %%--------------------------------------------------------------------
- terminate(_Reason, _StateName, _State) ->
- ok.
-
- %%--------------------------------------------------------------------
- %% @private
- %% @doc
- %% Convert process state when code is changed
- %%
- %% @spec code_change(OldVsn, StateName, State, Extra) ->
- %% {ok, StateName, NewState}
- %% @end
- %%--------------------------------------------------------------------
- code_change(_OldVsn, StateName, State, _Extra) ->
- {ok, StateName, State}.
-
- %%%===================================================================
- %%% Internal functions
- %%%===================================================================
-# OTP gen_event
-snippet gen_event
- -module(${0:`vim_snippets#Filename()`}).
-
- -behaviour(gen_event).
-
- %% API
- -export([start_link/0,
- add_handler/2]).
-
- %% gen_event callbacks
- -export([init/1,
- handle_event/2,
- handle_call/2,
- handle_info/2,
- terminate/2,
- code_change/3]).
-
- -record(state, {}).
-
- %%%===================================================================
- %%% gen_event callbacks
- %%%===================================================================
-
- %%--------------------------------------------------------------------
- %% @doc
- %% Creates an event manager
- %%
- %% @spec start_link() -> {ok, Pid} | {error, Error}
- %% @end
- %%--------------------------------------------------------------------
- start_link() ->
- gen_event:start_link({local, ?MODULE}).
-
- %%--------------------------------------------------------------------
- %% @doc
- %% Adds an event handler
- %%
- %% @spec add_handler(Handler, Args) -> ok | {'EXIT', Reason} | term()
- %% @end
- %%--------------------------------------------------------------------
- add_handler(Handler, Args) ->
- gen_event:add_handler(?MODULE, Handler, Args).
-
- %%%===================================================================
- %%% gen_event callbacks
- %%%===================================================================
-
- %%--------------------------------------------------------------------
- %% @private
- %% @doc
- %% Whenever a new event handler is added to an event manager,
- %% this function is called to initialize the event handler.
- %%
- %% @spec init(Args) -> {ok, State}
- %% @end
- %%--------------------------------------------------------------------
- init([]) ->
- {ok, #state{}}.
-
- %%--------------------------------------------------------------------
- %% @private
- %% @doc
- %% Whenever an event manager receives an event sent using
- %% gen_event:notify/2 or gen_event:sync_notify/2, this function is
- %% called for each installed event handler to handle the event.
- %%
- %% @spec handle_event(Event, State) ->
- %% {ok, State} |
- %% {swap_handler, Args1, State1, Mod2, Args2} |
- %% remove_handler
- %% @end
- %%--------------------------------------------------------------------
- handle_event(_Event, State) ->
- {ok, State}.
-
- %%--------------------------------------------------------------------
- %% @private
- %% @doc
- %% Whenever an event manager receives a request sent using
- %% gen_event:call/3,4, this function is called for the specified
- %% event handler to handle the request.
- %%
- %% @spec handle_call(Request, State) ->
- %% {ok, Reply, State} |
- %% {swap_handler, Reply, Args1, State1, Mod2, Args2} |
- %% {remove_handler, Reply}
- %% @end
- %%--------------------------------------------------------------------
- handle_call(_Request, State) ->
- Reply = ok,
- {ok, Reply, State}.
-
- %%--------------------------------------------------------------------
- %% @private
- %% @doc
- %% This function is called for each installed event handler when
- %% an event manager receives any other message than an event or a
- %% synchronous request (or a system message).
- %%
- %% @spec handle_info(Info, State) ->
- %% {ok, State} |
- %% {swap_handler, Args1, State1, Mod2, Args2} |
- %% remove_handler
- %% @end
- %%--------------------------------------------------------------------
- handle_info(_Info, State) ->
- {ok, State}.
-
- %%--------------------------------------------------------------------
- %% @private
- %% @doc
- %% Whenever an event handler is deleted from an event manager, this
- %% function is called. It should be the opposite of Module:init/1 and
- %% do any necessary cleaning up.
- %%
- %% @spec terminate(Reason, State) -> void()
- %% @end
- %%--------------------------------------------------------------------
- terminate(_Reason, _State) ->
- ok.
-
- %%--------------------------------------------------------------------
- %% @private
- %% @doc
- %% Convert process state when code is changed
- %%
- %% @spec code_change(OldVsn, State, Extra) -> {ok, NewState}
- %% @end
- %%--------------------------------------------------------------------
- code_change(_OldVsn, State, _Extra) ->
- {ok, State}.
-
- %%%===================================================================
- %%% Internal functions
- %%%===================================================================
-# EUnit snippets
-snippet eunit
- -module(${1:`vim_snippets#Filename()`}).
- -include_lib("eunit/include/eunit.hrl").
-
- ${0}
-snippet ieunit
- -ifdef(TEST).
- -include_lib("eunit/include/eunit.hrl").
-
- ${0}
-
- -endif.
-snippet as
- ?assert(${0})
-snippet asn
- ?assertNot(${0})
-snippet aseq
- ?assertEqual(${1}, ${0})
-snippet asneq
- ?assertNotEqual(${1}, ${0})
-snippet asmat
- ?assertMatch(${1:Pattern}, ${0:Expression})
-snippet asnmat
- ?assertNotMatch(${1:Pattern}, ${0:Expression})
-snippet aserr
- ?assertError(${1:Pattern}, ${0:Expression})
-snippet asex
- ?assertExit(${1:Pattern}, ${0:Expression})
-snippet asexc
- ?assertException(${1:Class}, ${2:Pattern}, ${0:Expression})
-# common_test test_SUITE
-snippet testsuite
- -module(${0:`vim_snippets#Filename()`}).
-
- -include_lib("common_test/include/ct.hrl").
-
- %% Test server callbacks
- -export([suite/0, all/0, groups/0,
- init_per_suite/1, end_per_suite/1,
- init_per_group/2, end_per_group/2,
- init_per_testcase/2, end_per_testcase/2]).
-
- %% Test cases
- -export([
- ]).
-
- %%--------------------------------------------------------------------
- %% COMMON TEST CALLBACK FUNCTIONS
- %%--------------------------------------------------------------------
-
- %%--------------------------------------------------------------------
- %% Function: suite() -> Info
- %%
- %% Info = [tuple()]
- %% List of key/value pairs.
- %%
- %% Description: Returns list of tuples to set default properties
- %% for the suite.
- %%
- %% Note: The suite/0 function is only meant to be used to return
- %% default data values, not perform any other operations.
- %%--------------------------------------------------------------------
- suite() ->
- [{timetrap,{minutes,10}}].
-
- %%--------------------------------------------------------------------
- %% Function: init_per_suite(Config0) ->
- %% Config1 | {skip,Reason} | {skip_and_save,Reason,Config1}
- %%
- %% Config0 = Config1 = [tuple()]
- %% A list of key/value pairs, holding the test case configuration.
- %% Reason = term()
- %% The reason for skipping the suite.
- %%
- %% Description: Initialization before the suite.
- %%
- %% Note: This function is free to add any key/value pairs to the Config
- %% variable, but should NOT alter/remove any existing entries.
- %%--------------------------------------------------------------------
- init_per_suite(Config) ->
- Config.
-
- %%--------------------------------------------------------------------
- %% Function: end_per_suite(Config0) -> void() | {save_config,Config1}
- %%
- %% Config0 = Config1 = [tuple()]
- %% A list of key/value pairs, holding the test case configuration.
- %%
- %% Description: Cleanup after the suite.
- %%--------------------------------------------------------------------
- end_per_suite(_Config) ->
- ok.
-
- %%--------------------------------------------------------------------
- %% Function: init_per_group(GroupName, Config0) ->
- %% Config1 | {skip,Reason} | {skip_and_save,Reason,Config1}
- %%
- %% GroupName = atom()
- %% Name of the test case group that is about to run.
- %% Config0 = Config1 = [tuple()]
- %% A list of key/value pairs, holding configuration data for the group.
- %% Reason = term()
- %% The reason for skipping all test cases and subgroups in the group.
- %%
- %% Description: Initialization before each test case group.
- %%--------------------------------------------------------------------
- init_per_group(_GroupName, Config) ->
- Config.
-
- %%--------------------------------------------------------------------
- %% Function: end_per_group(GroupName, Config0) ->
- %% void() | {save_config,Config1}
- %%
- %% GroupName = atom()
- %% Name of the test case group that is finished.
- %% Config0 = Config1 = [tuple()]
- %% A list of key/value pairs, holding configuration data for the group.
- %%
- %% Description: Cleanup after each test case group.
- %%--------------------------------------------------------------------
- end_per_group(_GroupName, _Config) ->
- ok.
-
- %%--------------------------------------------------------------------
- %% Function: init_per_testcase(TestCase, Config0) ->
- %% Config1 | {skip,Reason} | {skip_and_save,Reason,Config1}
- %%
- %% TestCase = atom()
- %% Name of the test case that is about to run.
- %% Config0 = Config1 = [tuple()]
- %% A list of key/value pairs, holding the test case configuration.
- %% Reason = term()
- %% The reason for skipping the test case.
- %%
- %% Description: Initialization before each test case.
- %%
- %% Note: This function is free to add any key/value pairs to the Config
- %% variable, but should NOT alter/remove any existing entries.
- %%--------------------------------------------------------------------
- init_per_testcase(_TestCase, Config) ->
- Config.
-
- %%--------------------------------------------------------------------
- %% Function: end_per_testcase(TestCase, Config0) ->
- %% void() | {save_config,Config1} | {fail,Reason}
- %%
- %% TestCase = atom()
- %% Name of the test case that is finished.
- %% Config0 = Config1 = [tuple()]
- %% A list of key/value pairs, holding the test case configuration.
- %% Reason = term()
- %% The reason for failing the test case.
- %%
- %% Description: Cleanup after each test case.
- %%--------------------------------------------------------------------
- end_per_testcase(_TestCase, _Config) ->
- ok.
-
- %%--------------------------------------------------------------------
- %% Function: groups() -> [Group]
- %%
- %% Group = {GroupName,Properties,GroupsAndTestCases}
- %% GroupName = atom()
- %% The name of the group.
- %% Properties = [parallel | sequence | Shuffle | {RepeatType,N}]
- %% Group properties that may be combined.
- %% GroupsAndTestCases = [Group | {group,GroupName} | TestCase]
- %% TestCase = atom()
- %% The name of a test case.
- %% Shuffle = shuffle | {shuffle,Seed}
- %% To get cases executed in random order.
- %% Seed = {integer(),integer(),integer()}
- %% RepeatType = repeat | repeat_until_all_ok | repeat_until_all_fail |
- %% repeat_until_any_ok | repeat_until_any_fail
- %% To get execution of cases repeated.
- %% N = integer() | forever
- %%
- %% Description: Returns a list of test case group definitions.
- %%--------------------------------------------------------------------
- groups() ->
- [].
-
- %%--------------------------------------------------------------------
- %% Function: all() -> GroupsAndTestCases | {skip,Reason}
- %%
- %% GroupsAndTestCases = [{group,GroupName} | TestCase]
- %% GroupName = atom()
- %% Name of a test case group.
- %% TestCase = atom()
- %% Name of a test case.
- %% Reason = term()
- %% The reason for skipping all groups and test cases.
- %%
- %% Description: Returns the list of groups and test cases that
- %% are to be executed.
- %%--------------------------------------------------------------------
- all() ->
- [].
-
-
- %%--------------------------------------------------------------------
- %% TEST CASES
- %%--------------------------------------------------------------------
-
- %%--------------------------------------------------------------------
- %% Function: TestCase(Config0) ->
- %% ok | exit() | {skip,Reason} | {comment,Comment} |
- %% {save_config,Config1} | {skip_and_save,Reason,Config1}
- %%
- %% Config0 = Config1 = [tuple()]
- %% A list of key/value pairs, holding the test case configuration.
- %% Reason = term()
- %% The reason for skipping the test case.
- %% Comment = term()
- %% A comment about the test case that will be printed in the html log.
- %%
- %% Description: Test case function. (The name of it must be specified in
- %% the all/0 list or in a test case group for the test case
- %% to be executed).
- %%--------------------------------------------------------------------
-
diff --git a/vim/snippets/vim-snippets/snippets/eruby.snippets b/vim/snippets/vim-snippets/snippets/eruby.snippets
deleted file mode 100644
index b8879c5..0000000
--- a/vim/snippets/vim-snippets/snippets/eruby.snippets
+++ /dev/null
@@ -1,132 +0,0 @@
-# .erb and .rhmtl files
-
-# Includes html.snippets
-extends html
-
-# Rails *****************************
-snippet rc
- <% ${0} %>
-snippet rce
- <%= ${1} %>
-snippet %
- <% ${0} %>
-snippet =
- <%= ${1} %>
-snippet end
- <% end %>
-snippet ead
- <% ${1}.each do |${2}| %>
- ${0}
- <% end %>
-snippet for
- <% for ${2:item} in ${1} %>
- ${0}
- <% end %>
-snippet rp
- <%= render partial: '${0:item}' %>
-snippet rpl
- <%= render partial: '${1:item}', locals: { :${2:name} => '${3:value}'${0} } %>
-snippet rps
- <%= render partial: '${1:item}', status: ${0:500} %>
-snippet rpc
- <%= render partial: '${1:item}', collection: ${0:items} %>
-snippet lia
- <%= link_to '${1:link text...}', action: '${0:index}' %>
-snippet liai
- <%= link_to '${1:link text...}', action: '${2:edit}', id: ${0:@item} %>
-snippet lic
- <%= link_to '${1:link text...}', controller: '${0:items}' %>
-snippet lica
- <%= link_to '${1:link text...}', controller: '${2:items}', action: '${0:index}' %>
-snippet licai
- <%= link_to '${1:link text...}', controller: '${2:items}', action: '${3:edit}', id: ${0:@item} %>
-snippet yield
- <%= yield ${1::content_symbol} %>
-snippet conf
- <% content_for :${1:head} do %>
- ${0}
- <% end %>
-snippet cs
- <%= collection_select <+object+>, <+method+>, <+collection+>, <+value_method+>, <+text_method+><+, <+[options]+>, <+[html_options]+>+> %>
-snippet ct
- <%= content_tag '${1:DIV}', ${2:content}${0:,options} %>
-snippet ff
- <%= form_for @${1:model} do |f| %>
- ${0}
- <% end %>
-snippet ffi
- <%= ${1:f}.input :${0:attribute} %>
-snippet ffcb
- <%= ${1:f}.check_box :${0:attribute} %>
-snippet ffe
- <% error_messages_for :${1:model} %>
-
- <%= form_for @${2:model} do |f| %>
- ${0}
- <% end %>
-snippet ffff
- <%= ${1:f}.file_field :${0:attribute} %>
-snippet ffhf
- <%= ${1:f}.hidden_field :${0:attribute} %>
-snippet ffl
- <%= ${1:f}.label :${2:attribute}, '${0:$2}' %>
-snippet ffpf
- <%= ${1:f}.password_field :${0:attribute} %>
-snippet ffrb
- <%= ${1:f}.radio_button :${2:attribute}, :${0:tag_value} %>
-snippet ffs
- <%= ${1:f}.submit "${0:submit}" %>
-snippet ffta
- <%= ${1:f}.text_area :${0:attribute} %>
-snippet fftf
- <%= ${1:f}.text_field :${0:attribute} %>
-snippet fields
- <%= fields_for :${1:model}, @$1 do |${2:f}| %>
- ${0}
- <% end %>
-snippet i18
- I18n.t('${1:type.key}')
-snippet it
- <%= image_tag "${1}"${0} %>
-snippet jit
- <%= javascript_include_tag ${0::all} %>
-snippet jsit
- <%= javascript_include_tag "${0}" %>
-snippet lim
- <%= link_to ${1:model}.${2:name}, ${3:$1}_path(${0:$1}) %>
-snippet linp
- <%= link_to "${1:Link text...}", ${2:parent}_${3:child}_path(${4:@$2}, ${0:@$3}) %>
-snippet linpp
- <%= link_to "${1:Link text...}", ${2:parent}_${3:child}_path(${0:@$2}) %>
-snippet lip
- <%= link_to "${1:Link text...}", ${2:model}_path(${0:@$2}) %>
-snippet lipp
- <%= link_to "${1:Link text...}", ${0:model}s_path %>
-snippet lt
- <%= link_to "${1:name}", ${0:dest} %>
-snippet ntc
- <%= number_to_currency(${1}) %>
-snippet ofcfs
- <%= options_from_collection_for_select ${1:collection}, ${2:value_method}, ${3:text_method}, ${0:selected_value} %>
-snippet ofs
- <%= options_for_select ${1:collection}, ${2:value_method} %>
-snippet rf
- <%= render file: "${1:file}"${0} %>
-snippet rt
- <%= render template: "${1:file}"${0} %>
-snippet slt
- <%= stylesheet_link_tag ${1::all}, cache: ${0:true} %>
-snippet sslt
- <%= stylesheet_link_tag "${0}" %>
-snippet if
- <% if ${1} %>
- ${0:${VISUAL}}
- <% end %>
-snippet ife
- <% if ${1} %>
- ${2}
- <% else %>
- ${0}
- <% end %>
-snippet pry
- <% require 'pry'; binding.pry %>
diff --git a/vim/snippets/vim-snippets/snippets/falcon.snippets b/vim/snippets/vim-snippets/snippets/falcon.snippets
deleted file mode 100644
index c523980..0000000
--- a/vim/snippets/vim-snippets/snippets/falcon.snippets
+++ /dev/null
@@ -1,71 +0,0 @@
-snippet #!
- #!/usr/bin/env falcon
-
-# Import
-snippet imp
- import ${0:module}
-
-# Function
-snippet fun
- function ${2:function_name}(${3})
- ${0}
- end
-
-# Class
-snippet class
- class ${1:class_name}(${2:class_params})
- ${0:/* members/methods */}
- end
-
-# If
-snippet if
- if ${1:condition}
- ${0}
- end
-
-# If else
-snippet ife
- if ${1:condition}
- ${0}
- else
- ${1}
- end
-
-# If else if
-snippet eif
- elif ${1:condition}
- ${0}
-
-# Switch case
-snippet switch
- switch ${1:expression}
- case ${2:item}
- case ${0:item}
- default
- end
-
-# Select
-snippet select
- select ${1:variable}
- case ${2:TypeSpec}
- case ${0:TypeSpec}
- default
- end
-
-# For/in Loop
-snippet forin
- for ${1:element} in ${2:container}
- ${0}
- end
-
-# For/to Loop
-snippet forto
- for ${1:lowerbound} to ${2:upperbound}
- ${0}
- end
-
-# While Loop
-snippet wh
- while ${1:conidition}
- ${0}
- end
diff --git a/vim/snippets/vim-snippets/snippets/fortran.snippets b/vim/snippets/vim-snippets/snippets/fortran.snippets
deleted file mode 100644
index e04d4fd..0000000
--- a/vim/snippets/vim-snippets/snippets/fortran.snippets
+++ /dev/null
@@ -1,103 +0,0 @@
-snippet impl
- implicit none
- $0
-snippet prog
- program ${1:main}
- $0
- end program $1
-snippet mod
- module ${1:modulename}
- $0
- end module $1
-snippet proc
- procedure ${1:name}
- ${0}
- end procedure $1
-snippet iface
- interface ${1:name}
- ${0}
- end interface $1
-snippet doc
- ! """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- ! File: ${2:`vim_snippets#Filename('$1')`}
- ! Author: `g:snips_author`
- ! Email: `g:snips_email`
- ! Github: `g:snips_github`
- ! Description: $1
- ! """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- $0
-snippet dox
- !> @brief ${1}
- !!
- !> ${2}
- !> @author `g:snips_author`
- ${0}
-snippet doxp
- !> @param[${1}]${0}
-# Variables definitions
-# Boolean
-snippet bool
- logical :: $0
-# Integer
-snippet int
- integer :: $0
-snippet real
- real :: $0
-# Double Precision
-snippet double
- double precision :: $0
-# Char
-snippet str
- character(len=${1:*}) :: ${0:}
-# Types
-snippet type
- type(${1:name})
- $0
- end type
-snippet const
- ${1:type}, parameter :: $2 = $0
-snippet arr
- ${1:type}, ${2:allocatable, }dimension(${3::}) :: $0
-snippet intent
- ${1:type}, intent(inout) :: $0
-# Array
-snippet /
- (/ $1 /) ${2:,&} $0
-snippet if
- if (${1:condition}) then
- $0
- end if
-snippet case
- select case (${1:expr})
- case ($2)
- case default
- $3
- end select $0
-snippet do
- do ${1:i} = ${2:start}, ${3:end}, ${4:incr}
- $0
- end do
-snippet dow
- do while (${1:condition})
- $2
- end do
-snippet sub
- subroutine ${1:name}($2)
- $0
- end subroutine $1
-snippet func
- function ${1:name}($2) result($3)
- $0
- end function $1
-snippet pr
- write(*,*) $0
-snippet dpr
- write(*,*) '$1 = ', $1
-snippet read
- read(unit = ${1:fp}, file = ${2:filename}, iostat = ${3:ierr}) $0
-snippet write
- write(unit = ${1:fp}, file = ${2:filename}, iostat = ${3:ierr}) $0
-snippet open
- open(unit = ${1:fp}, file = ${2:filename}, status = ${3:unknown}, iostat = ${4:ierr}) $0
-snippet close
- close(unit = ${1:fp}) $0
diff --git a/vim/snippets/vim-snippets/snippets/go.snippets b/vim/snippets/vim-snippets/snippets/go.snippets
deleted file mode 100644
index 6bc4602..0000000
--- a/vim/snippets/vim-snippets/snippets/go.snippets
+++ /dev/null
@@ -1,246 +0,0 @@
-# shorthand variable declaration
-snippet v
- ${1} := ${2}
-# variable initialization
-snippet vr
- var ${1:t} ${0:string}
-# variable declaration
-snippet var
- var ${1} ${2} = ${3}
-# variables declaration
-snippet vars
- var (
- ${1} ${2} = ${3}
- )
-# append
-snippet ap
- append(${1:slice}, ${0:value})
-# bool
-snippet bl
- bool
-# byte
-snippet bt
- byte
-# break
-snippet br
- break
-# channel
-snippet ch
- chan ${0:int}
-# case
-snippet cs
- case ${1:value}:
- ${0:${VISUAL}}
-# const
-snippet c
- const ${1:NAME} = ${0:0}
-# constants with iota
-snippet co
- const (
- ${1:NAME1} = iota
- ${0:NAME2}
- )
-# continue
-snippet cn
- continue
-# defer
-snippet df
- defer ${0:func}()
-# defer recover
-snippet dfr
- defer func() {
- if err := recover(); err != nil {
- ${0:${VISUAL}}
- }
- }()
-# int
-snippet i
- int
-# import
-snippet im
- import (
- "${1:package}"
- )
-# interface
-snippet in
- interface{}
-# full interface snippet
-snippet inf
- interface ${1:name} {
- ${2:/* methods */}
- }
-# if condition
-snippet if
- if ${1:/* condition */} {
- ${2:${VISUAL}}
- }
-snippet ife
- if ${1:/* condition */} {
- ${2:${VISUAL}}
- } else {
- ${0}
- }
-# else snippet
-snippet el
- else {
- ${0:${VISUAL}}
- }
-# error snippet
-snippet ir
- if err != nil {
- return err
- }
- ${0}
-# false
-snippet f
- false
-# fallthrough
-snippet ft
- fallthrough
-# float
-snippet fl
- float32
-# float32
-snippet f3
- float32
-# float64
-snippet f6
- float64
-# for int loop
-snippet for
- for ${1}{
- ${0:${VISUAL}}
- }
-# for int loop
-snippet fori
- for ${2:i} := 0; $2 < ${1:count}; $2${3:++} {
- ${0:${VISUAL}}
- }
-# for range loop
-snippet forr
- for ${1:e} := range ${2:collection} {
- ${0:${VISUAL}}
- }
-# function simple
-snippet fun
- func ${1:funcName}(${2}) ${3:error} {
- ${4}
- }
- ${0}
-# function on receiver
-snippet fum
- func (${1:receiver} ${2:type}) ${3:funcName}(${4}) ${5:error} {
- ${6}
- }
- ${0}
-# log printf
-snippet lf
- log.Printf("%${1:s}", ${2:var})
-# log printf
-snippet lp
- log.Println("${1}")
-# make
-snippet mk
- make(${1:[]string}, ${0:0})
-# map
-snippet mp
- map[${1:string}]${0:int}
-# main()
-snippet main
- func main() {
- ${1}
- }
- ${0}
-# new
-snippet nw
- new(${0:type})
-# package
-snippet pa
- package ${1:main}
-# panic
-snippet pn
- panic("${0:msg}")
-# print
-snippet pr
- fmt.Printf("%${1:s}\n", ${2:var})
-# println
-snippet pl
- fmt.Println("${1:s}")
-# range
-snippet rn
- range ${0}
-# return
-snippet rt
- return ${0}
-# result
-snippet rs
- result
-# select
-snippet sl
- select {
- case ${1:v1} := <-${2:chan1}
- ${3}
- default:
- ${0}
- }
-# string
-snippet sr
- string
-# struct
-snippet st
- struct ${1:name} {
- ${2:/* data */}
- }
- ${0}
-# switch
-snippet sw
- switch ${1:var} {
- case ${2:value1}:
- ${3}
- case ${4:value2}:
- ${5}
- default:
- ${0}
- }
-snippet sp
- fmt.Sprintf("%${1:s}", ${2:var})
-# true
-snippet t
- true
-# goroutine named function
-snippet g
- go ${1:funcName}(${0})
-# goroutine anonymous function
-snippet ga
- go func(${1} ${2:type}) {
- ${3:/* code */}
- }(${0})
-snippet test test function
- func Test${1:name}(t *testing.T) {
- ${0:${VISUAL}}
- }
-snippet bench benchmark function
- func Benchmark${1:name}(b *testing.B) {
- for i := 0; i < b.N; i++ {
- ${2}
- }
- }
- ${0}
-# composite literals
-snippet cl
- type ${1:name} struct {
- ${2:attrName} ${3:attrType}
- }
-# if key in a map
-snippet om
- if ${1:value}, ok := ${2:map}[${3:key}]; ok == true {
- ${4:/* code */}
- }
-
-# Grouped globals with anonymous struct
-snippet gg
- var ${1:var} = struct{
- ${2:name} ${3:type}
- }{
- ${2:name}: ${4:value},
- }
diff --git a/vim/snippets/vim-snippets/snippets/haml.snippets b/vim/snippets/vim-snippets/snippets/haml.snippets
deleted file mode 100644
index b8a74e2..0000000
--- a/vim/snippets/vim-snippets/snippets/haml.snippets
+++ /dev/null
@@ -1,37 +0,0 @@
-snippet t
- %table
- %tr
- %th
- ${1:headers}
- %tr
- %td
- ${0:headers}
-snippet ul
- %ul
- %li
- ${0:item}
- %li
-snippet rp
- = render :partial => "${0:item}"
-snippet rpc
- = render :partial => "${1:item}", :collection => ${0:@$1s}
-snippet rpl
- = render :partial => "${1:item}", :locals => { :${2:$1} => ${0:@$1}
-snippet rpo
- = render :partial => "${1:item}", :object => ${0:@$1}
-snippet lt
- = link_to ${1:name}, ${2:dest}
-snippet mt
- = mail_to ${1:email_address}, ${2:name}
-snippet mts
- = mail_to ${1:email_address}, ${2:name}, :subject => ${3}, :body => ${4}
-snippet ife
- - if ${1:condition}
- ${2:${VISUAL}}
- - else
- ${0}
-snippet ifp
- - if ${1:condition}.presence?
- ${0:${VISUAL}}
-snippet ntc
- = number_to_currency(${1})
diff --git a/vim/snippets/vim-snippets/snippets/handlebars.snippets b/vim/snippets/vim-snippets/snippets/handlebars.snippets
deleted file mode 100644
index 401dfbd..0000000
--- a/vim/snippets/vim-snippets/snippets/handlebars.snippets
+++ /dev/null
@@ -1,14 +0,0 @@
-snippet if # {{#if value}} ... {{/if}}
- {{#if ${1:value}}}
- ${0:${VISUAL}}
- {{/if}}
-snippet ifn # {{#unless value}} ... {{/unless}}
- {{#unless ${1:value}}}
- ${0:${VISUAL}}
- {{/unless}}
-snippet ife # {{#if value}} ... {{else}} .. {{/if}}
- {{#if ${1:value}}}
- ${2:${VISUAL}}
- {{else}}
- ${3}
- {{/if}}
diff --git a/vim/snippets/vim-snippets/snippets/haskell.snippets b/vim/snippets/vim-snippets/snippets/haskell.snippets
deleted file mode 100644
index e4957e4..0000000
--- a/vim/snippets/vim-snippets/snippets/haskell.snippets
+++ /dev/null
@@ -1,115 +0,0 @@
-snippet lang
- {-# LANGUAGE ${0:OverloadedStrings} #-}
-snippet haddock
- {-# OPTIONS_HADDOCK ${0:hide} #-}
-snippet ghc
- {-# OPTIONS_GHC ${0:-fno-warn-unused-imports} #-}
-snippet inline
- {-# INLINE ${0:name} #-}
-snippet info
- -- |
- -- Module : ${1:`substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')`}
- -- Copyright : ${2:Author} ${3:2011-2012}
- -- License : ${4:BSD3}
- --
- -- Maintainer : ${5:email@something.com}
- -- Stability : ${6:experimental}
- -- Portability : ${7:unknown}
- --
- -- ${0:Description}
- --
-snippet imp
- import ${0:Data.Text}
-snippet import
- import ${0:Data.Text}
-snippet import2
- import ${1:Data.Text} (${0:head})
-snippet impq
- import qualified ${1:Data.Text} as ${0:T}
-snippet importq
- import qualified ${1:Data.Text} as ${0:T}
-snippet inst
- instance ${1:Monoid} ${2:Type} where
- ${0}
-snippet type
- type ${1:Type} = ${0:Type}
-snippet data
- data ${1:Type} = ${2:$1} ${0:Int}
-snippet newtype
- newtype ${1:Type} = ${2:$1} ${0:Int}
-snippet class
- class ${1:Class} a where
- ${0}
-snippet module
- module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')` (
- ) where
- `expand('%') =~ 'Main' ? "\nmain :: IO ()\nmain = undefined" : ""`
-
-snippet main
- main :: IO ()
- main = ${0:undefined}
-snippet const
- ${1:name} :: ${2:a}
- $1 = ${0:undefined}
-snippet fn
- ${1:fn} :: ${2:a} -> ${3:a}
- $1 ${4} = ${0:undefined}
-snippet fn2
- ${1:fn} :: ${2:a} -> ${3:a} -> ${4:a}
- $1 ${5} = ${0:undefined}
-snippet fn3
- ${1:fn} :: ${2:a} -> ${3:a} -> ${4:a} -> ${5:a}
- $1 ${6} = ${0:undefined}
-snippet => "Type constraint"
- (${1:Class} ${2:a}) => $2
-snippet ap
- ${1:map} ${2:fn} ${0:list}
-snippet \
- \\${1:x} -> ${0:expression}
-snippet (\
- (\\${1:x} -> ${0:expression})
-snippet <-
- ${1:a} <- ${0:m a}
-snippet ->
- ${1:m a} -> ${0:a}
-snippet tup
- (${1:a}, ${0:b})
-snippet tup2
- (${1:a}, ${2:b}, ${0:c})
-snippet tup3
- (${1:a}, ${2:b}, ${3:c}, ${0:d})
-snippet rec
- ${1:Record} { ${2:recFieldA} = ${3:undefined}
- , ${4:recFieldB} = ${0:undefined}
- }
-snippet case
- case ${1:something} of
- ${2} -> ${0}
-snippet let
- let ${1} = ${2}
- in ${3}
-snippet where
- where
- ${1:fn} = ${0:undefined}
-snippet spec
- module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')` (main, spec) where
-
- import Test.Hspec
- import Test.QuickCheck
-
- main :: IO ()
- main = hspec spec
-
- spec :: Spec
- spec =
- describe "${1}" $ do
- $0
-snippet desc
- describe "${1}" $ do
- $0
-snippet it
- it "${1}" $
- $0
-snippet itp
- it "${1}" $ property $
- $0
diff --git a/vim/snippets/vim-snippets/snippets/html.snippets b/vim/snippets/vim-snippets/snippets/html.snippets
deleted file mode 100644
index e91b071..0000000
--- a/vim/snippets/vim-snippets/snippets/html.snippets
+++ /dev/null
@@ -1,879 +0,0 @@
-# Some useful Unicode entities
-# Non-Breaking Space
-snippet nbs
-
-# ←
-snippet left
- ←
-# →
-snippet right
- →
-# ↑
-snippet up
- ↑
-# ↓
-snippet down
- ↓
-# ↩
-snippet return
- ↩
-# ⇤
-snippet backtab
- ⇤
-# ⇥
-snippet tab
- ⇥
-# ⇧
-snippet shift
- ⇧
-# ⌃
-snippet ctrl
- ⌃
-# ⌅
-snippet enter
- ⌅
-# ⌘
-snippet cmd
- ⌘
-# ⌥
-snippet option
- ⌥
-# ⌦
-snippet delete
- ⌦
-# ⌫
-snippet backspace
- ⌫
-# ⎋
-snippet esc
- ⎋
-# comment
-snippet //
- ${0}
-# Generic Doctype
-snippet doctype HTML 4.01 Strict
-
-snippet doctype HTML 4.01 Transitional
-
-snippet doctype HTML 5
-
-snippet doctype XHTML 1.0 Frameset
-
-snippet doctype XHTML 1.0 Strict
-
-snippet doctype XHTML 1.0 Transitional
-
-snippet doctype XHTML 1.1
-
-# HTML Doctype 4.01 Strict
-snippet docts
-
-# HTML Doctype 4.01 Transitional
-snippet doct
-
-# HTML Doctype 5
-snippet doct5
-
-# XHTML Doctype 1.0 Frameset
-snippet docxf
-
-# XHTML Doctype 1.0 Strict
-snippet docxs
-
-# XHTML Doctype 1.0 Transitional
-snippet docxt
-
-# XHTML Doctype 1.1
-snippet docx
-
-# Attributes
-snippet attr
- ${1:attribute}="${0:property}"
-snippet attr+
- ${1:attribute}="${2:property}" attr+
-snippet .
- class="${1}"
-snippet #
- id="${1}"
-snippet alt
- alt="${1}"
-snippet charset
- charset="${1:utf-8}"
-snippet data
- data-${1}="${2:$1}"
-snippet for
- for="${1}"
-snippet height
- height="${1}"
-snippet href
- href="${1:#}"
-snippet lang
- lang="${1:en}"
-snippet media
- media="${1}"
-snippet name
- name="${1}"
-snippet rel
- rel="${1}"
-snippet scope
- scope="${1:row}"
-snippet src
- src="${1}"
-snippet title=
- title="${1}"
-snippet type
- type="${1}"
-snippet value
- value="${1}"
-snippet width
- width="${1}"
-# Elements
-snippet a
- ${0:$1}
-snippet a.
- ${0:$1}
-snippet a#
- ${0:$1}
-snippet a:ext
- ${0:$1}
-snippet a:mail
- ${0:email me}
-snippet ac
- ${0:`@+`}
-snippet abbr
- ${0}
-snippet address
-
- ${0}
-
-snippet area
-
-snippet area+
-
- area+
-snippet area:c
-
-snippet area:d
-
-snippet area:p
-
-snippet area:r
-
-snippet article
-
- ${0}
-
-snippet article.
-
- ${0}
-
-snippet article#
-
- ${0}
-
-snippet aside
-
-snippet aside.
-
-snippet aside#
-
-snippet audio
-
-snippet bdi
- ${0}
-snippet bdo
- ${0}
-snippet bdo:l
- ${0}
-snippet bdo:r
- ${0}
-snippet blockquote
-
- ${0}
-
-snippet body
-
- ${0}
-
-snippet br
-
-snippet button
- ${0}
-snippet button.
- ${0}
-snippet button#
- ${0}
-snippet button:s
- ${0}
-snippet button:r
- ${0}
-snippet canvas
-
- ${0}
-
-snippet caption
- ${0}
-snippet cite
- ${0}
-snippet code
- ${0}
-snippet col
-
-snippet col+
-
- col+
-snippet colgroup
-
- ${0}
-
-snippet colgroup+
-
-
- col+${0}
-
-snippet command
-
-snippet command:c
-
-snippet command:r
-
-snippet datagrid
-
- ${0}
-
-snippet datalist
-
- ${0}
-
-snippet datatemplate
-
- ${0}
-
-snippet dd
- ${0}
-snippet dd.
- ${0}
-snippet dd#
- ${0}
-snippet del
- ${0}
-snippet details
- ${0}
-snippet dfn
- ${0}
-snippet dialog
-
- ${0}
-
-snippet div
-
- ${0}
-
-snippet div.
-
- ${0}
-
-snippet div#
-
- ${0}
-
-snippet dl
-
- ${0}
-
-snippet dl.
-
- ${0}
-
-snippet dl#
-
- ${0}
-
-snippet dl+
-
- ${1}
- ${2}
- dt+${0}
-
-snippet dt
- ${0}
-snippet dt.
- ${0}
-snippet dt#
- ${0}
-snippet dt+
- ${1}
- ${2}
- dt+${0}
-snippet em
- ${0}
-snippet embed
-
-snippet fieldset
-
- ${0}
-
-snippet fieldset.
-
- ${0}
-
-snippet fieldset#
-
- ${0}
-
-snippet fieldset+
-
- ${1}
- ${2}
-
- fieldset+${0}
-snippet figcaption
- ${0}
-snippet figure
- ${0}
-snippet figure#
-
- ${0}
-
-snippet figure.
-
- ${0}
-
-snippet footer
-
-snippet footer.
-
-snippet footer#
-
-snippet form
-
-snippet form.
-
-snippet form#
-
-snippet h1
- ${0}
-snippet h1.
- ${0}
-snippet h1#
- ${0}
-snippet h2
- ${0}
-snippet h2.
- ${0}
-snippet h2#
- ${0}
-snippet h3
- ${0}
-snippet h3.
- ${0}
-snippet h3#
- ${0}
-snippet h4
- ${0}
-snippet h4.
- ${0}
-snippet h4#
- ${0}
-snippet h5
- ${0}
-snippet h5.
- ${0}
-snippet h5#
- ${0}
-snippet h6
- ${0}
-snippet h6.
- ${0}
-snippet h6#
- ${0}
-snippet head
-
-
-
- ${1:`substitute(vim_snippets#Filename('', 'Page Title'), '^.', '\u&', '')`}
- ${0}
-
-snippet header
-
-snippet header.
-
-snippet header#
-
-snippet hgroup
-
- ${0}
-
-snippet hgroup.
-
- ${0}
-
-snippet html5
-
-
-
-
-
- ${1:`substitute(vim_snippets#Filename('', 'Page Title'), '^.', '\u&', '')`}
- ${2:link}
-
-
- ${0:body}
-
-
-snippet html5l
-
-
-
-
-
- ${2:`substitute(vim_snippets#Filename('', 'Page Title'), '^.', '\u&', '')`}
- ${3:link}
-
-
- ${0:body}
-
-
-snippet i
- ${0}
-snippet iframe
-
-snippet iframe.
-
-snippet iframe#
-
-snippet img
-
-snippet img.
-
-snippet img#
-
-snippet input
-
-snippet input.
-
-snippet input:text
-
-snippet input:submit
-
-snippet input:hidden
-
-snippet input:button
-
-snippet input:image
-
-snippet input:checkbox
-
-snippet input:radio
-
-snippet input:color
-
-snippet input:date
-
-snippet input:datetime
-
-snippet input:datetime-local
-
-snippet input:email
-
-snippet input:file
-
-snippet input:month
-
-snippet input:number
-
-snippet input:password
-
-snippet input:range
-
-snippet input:reset
-
-snippet input:search
-
-snippet input:time
-
-snippet input:url
-
-snippet input:week
-
-snippet ins
- ${0}
-snippet kbd
- ${0}
-snippet label
- ${1}
-snippet label:i
- ${1}
-
-snippet label:s
- ${1}
-
- ${0:$5}
-
-snippet legend
- ${0}
-snippet legend+
- ${0}
-snippet li
- ${0}
-snippet li.
- ${0}
-snippet li+
- ${1}
- li+
-snippet lia
- ${1}
-snippet lia+
- ${1}
- lia+
-snippet link
-
-snippet link:atom
-
-snippet link:s
-
-snippet link:css
-
-snippet link:favicon
-
-snippet link:rss
-
-snippet link:touch
-
-snippet main
-
- ${0}
-
-snippet map
-
- ${0}
-
-snippet map.
-
- ${0}
-
-snippet map#
-
- ${6}
-
-snippet mark
- ${0}
-snippet menu
-
- ${0}
-
-snippet menu:c
-
- ${0}
-
-snippet menu:t
-
- ${0}
-
-snippet meta
-
-snippet meta:s
-
-snippet meta:d
-
-snippet meta:compat
-
-snippet meta:refresh
-
-snippet meta:utf
-
-snippet meter
- ${0}
-snippet nav
-
- ${0}
-
-snippet nav.
-
- ${0}
-
-snippet nav#
-
- ${0}
-
-snippet noscript
-
- ${0}
-
-snippet object
-
- ${3}
-
-# Embed QT Movie
-snippet movie
-
-
-
-
-
-
-snippet ol
-
- ${0}
-
-snippet ol.
-
- ${0}
-
-snippet ol#
-
- ${0}
-
-snippet ol+
-
- ${1}
- li+${0}
-
-snippet opt
- ${0:$1}
-snippet opt+
- ${2:$1}
- opt+${0}
-snippet optt
- ${0}
-snippet optgroup
-
- ${2:$1}
- opt+${0}
-
-snippet output
- ${0}
-snippet p
- ${0}
-snippet p.
- ${0}
-snippet p#
- ${0}
-snippet param
-
-snippet pre
-
- ${0}
-
-snippet progress
- ${0}
-snippet q
- ${0}
-snippet rp
- ${0}
-snippet rt
- ${0}
-snippet ruby
-
- ${0}
-
-snippet s
- ${0}
-snippet samp
-
- ${0}
-
-snippet script
-
-snippet scripts
-
-snippet scriptt
-
-snippet scriptsrc
-
-snippet section
-
-snippet section.
-
-snippet section#
-
-snippet select
-
- ${0}
-
-snippet select.
-
- ${4:$3}
- opt+${0}
-
-snippet small
- ${0}
-snippet source
-
-snippet span
- ${0}
-snippet span.
- ${0}
-snippet span#
- ${0}
-snippet strong
- ${0}
-snippet style
-
-snippet sub
- ${0}
-snippet summary
-
- ${0}
-
-snippet sup
- ${0}
-snippet table
-
-snippet table.
-
-snippet table#
-
-snippet tbody
-
- ${0}
-
-snippet td
- ${0}
-snippet td.
- ${0}
-snippet td#
- ${0}
-snippet td+
- ${1}
- td+${0}
-snippet textarea
-
-snippet tfoot
-
- ${0}
-
-snippet th
- ${0}
-snippet th.
- ${0}
-snippet th#
- ${0}
-snippet th+
- ${1}
- th+${0}
-snippet thead
-
- ${0}
-
-snippet time
- ${0:$1}
-snippet title
- ${0:`substitute(vim_snippets#Filename('', 'Page Title'), '^.', '\u&', '')`}
-snippet tr
-
- ${0}
-
-snippet tr+
-
- ${1}
- td+${0}
-
-snippet track
-
- ${0}
-
-snippet ul#
-
-snippet ul+
-
-snippet var
- ${0}
-snippet video
-
diff --git a/vim/snippets/vim-snippets/snippets/htmldjango.snippets b/vim/snippets/vim-snippets/snippets/htmldjango.snippets
deleted file mode 100644
index 7d14ca8..0000000
--- a/vim/snippets/vim-snippets/snippets/htmldjango.snippets
+++ /dev/null
@@ -1,142 +0,0 @@
-# Generic tags
-
-extends html
-
-snippet %
- {% ${1} %}
-snippet %%
- {% ${1:tag_name} %}
- ${0}
- {% end$1 %}
-snippet {
- {{ ${1} }}
-# Template Tags
-
-snippet autoescape
- {% autoescape ${1:off} %}
- ${0}
- {% endautoescape %}
-snippet block
- {% block ${1} %}
- ${0}
- {% endblock %}
-snippet #
- {# ${0:comment} #}
-snippet comment
- {% comment %}
- ${0}
- {% endcomment %}
-snippet cycle
- {% cycle ${1:val1} ${2:val2} ${3:as ${4}} %}
-snippet debug
- {% debug %}
-snippet extends
- {% extends "${0:base.html}" %}
-snippet filter
- {% filter ${1} %}
- ${0}
- {% endfilter %}
-snippet firstof
- {% firstof ${1} %}
-snippet for
- {% for ${1} in ${2} %}
- ${0}
- {% endfor %}
-snippet empty
- {% empty %}
- ${0}
-snippet if
- {% if ${1} %}
- ${0}
- {% endif %}
-snippet el
- {% else %}
- ${1}
-snippet eif
- {% elif ${1} %}
- ${0}
-snippet ifchanged
- {% ifchanged %}${1}{% endifchanged %}
-snippet ifequal
- {% ifequal ${1} ${2} %}
- ${0}
- {% endifequal %}
-snippet ifnotequal
- {% ifnotequal ${1} ${2} %}
- ${0}
- {% endifnotequal %}
-snippet include
- {% include "${0}" %}
-snippet load
- {% load ${0} %}
-snippet now
- {% now "${0:jS F Y H:i}" %}
-snippet regroup
- {% regroup ${1} by ${2} as ${0} %}
-snippet spaceless
- {% spaceless %}${0}{% endspaceless %}
-snippet ssi
- {% ssi ${0} %}
-snippet trans
- {% trans "${0:string}" %}
-snippet url
- {% url ${1} as ${0} %}
-snippet widthratio
- {% widthratio ${1:this_value} ${2:max_value} ${0:100} %}
-snippet with
- {% with ${1} as ${2} %}
- ${0}
- {% endwith %}
-
-# Template Filters
-
-# Note: Since SnipMate can't determine which template filter you are
-# expanding without the "|" character, these do not add the "|"
-# character. These save a few keystrokes still.
-
-# Note: Template tags that take no arguments are not implemented.
-
-snippet add
- add:"${0}"
-snippet center
- center:"${0}"
-snippet cut
- cut:"${0}"
-snippet date
- date:"${0}"
-snippet default
- default:"${0}"
-snippet defaultifnone
- default_if_none:"${0}"
-snippet dictsort
- dictsort:"${0}"
-snippet dictsortrev
- dictsortreversed:"${0}"
-snippet divisibleby
- divisibleby:"${0}"
-snippet floatformat
- floatformat:"${0}"
-snippet getdigit
- get_digit:"${0}"
-snippet join
- join:"${0}"
-snippet lengthis
- length_is:"${0}"
-snippet pluralize
- pluralize:"${0}"
-snippet removetags
- removetags:"${0}"
-snippet slice
- slice:"${0}"
-snippet stringformat
- stringformat:"${0}"
-snippet time
- time:"${0}"
-snippet truncatewords
- truncatewords:${0}
-snippet truncatewordshtml
- truncatewords_html:${0}
-snippet urlizetrunc
- urlizetrunc:${0}
-snippet wordwrap
- wordwrap:${0}
diff --git a/vim/snippets/vim-snippets/snippets/htmltornado.snippets b/vim/snippets/vim-snippets/snippets/htmltornado.snippets
deleted file mode 100644
index 1620e11..0000000
--- a/vim/snippets/vim-snippets/snippets/htmltornado.snippets
+++ /dev/null
@@ -1,55 +0,0 @@
-# Generic tags
-
-snippet {
- {{ ${0} }}
-
-# Template tags
-
-snippet extends
- {% extends "${0:base.html}" %}
-snippet autoescape
- {% autoescape ${0:xhtml_escape | None} %}
-snippet apply
- {% apply ${1:function} %}
- ${0}
- {% end %}
-snippet block
- {% block ${1} %}
- ${0}
- {% end %}
-snippet for
- {% for ${1:item} in ${2} %}
- ${0}
- {% end %}
-snippet from
- {% from ${1:x} import ${0:y} %}
-snippet if
- {% if ${1:condition} %}
- ${0}
- {% end %}
-snippet eif
- {% elif ${0:condition} %}
-snippet el
- {% else %}
-snippet import
- {% import ${0:module} %}
-snippet include
- {% include "${0:filename}" %}
-snippet module
- {% module ${0:expression} %}
-snippet raw
- {% raw ${0:expression} %}
-snippet set
- {% set ${1:x} = ${0:y} %}
-snippet try
- {% try %}
- ${1:${VISUAL}}
- {% except %}
- ${2}
- {% finallly %}
- ${0}
- {% end %}
-snippet wh
- {% while ${1:condition} %}
- ${0}
- {% end %}
diff --git a/vim/snippets/vim-snippets/snippets/idris.snippets b/vim/snippets/vim-snippets/snippets/idris.snippets
deleted file mode 100644
index abbedb6..0000000
--- a/vim/snippets/vim-snippets/snippets/idris.snippets
+++ /dev/null
@@ -1,46 +0,0 @@
-snippet mod
- module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')`
- ${0}
-snippet imp
- import ${0:List}
-snippet fn
- ${1:fn} : ${2:a} -> ${3:a}
- $1 ${4} =
- ${0}
-snippet fn1
- ${1:fn} : ${2:a} -> ${3:a}
- $1 ${4} =
- ${0}
-snippet fn2
- ${1:fn} : ${2:a} -> ${3:a} -> ${4:a}
- $1 ${5} =
- ${0}
-snippet fn3
- ${1:fn} : ${2:a} -> ${3:a} -> ${4:a} -> ${5:a}
- $1 ${6} =
- ${0}
-snippet fn0
- ${1:fn} : ${2:a}
- $1 =
- ${0}
-snippet case
- case ${1} of
- ${2} =>
- ${0}
-snippet let
- let
- ${1} =
- ${2}
- in
- ${0}
-snippet wh
- where
- ${0}
-snippet if
- if ${1} then
- ${2:${VISUAL}}
- else
- ${0}
- ${0}
-snippet \ "Lambda function (\x => ...)"
- (\\${1:_} => ${0})
diff --git a/vim/snippets/vim-snippets/snippets/jade.snippets b/vim/snippets/vim-snippets/snippets/jade.snippets
deleted file mode 100644
index 55f0af7..0000000
--- a/vim/snippets/vim-snippets/snippets/jade.snippets
+++ /dev/null
@@ -1,18 +0,0 @@
-# Angular HTML
-snippet rep
- div(ng-repeat='${1} in ${2}')
-
-snippet repf
- div(ng-repeat='${1} in ${2}' | ${3})
-
-snippet repi
- div(ng-repeat='${1} in ${2}' track by $index)
-
-snippet hide
- div(ng-hide='${1}')
-
-snippet show
- div(ng-show='${1}')
-
-snippet if
- div(ng-if='${1}')
diff --git a/vim/snippets/vim-snippets/snippets/java.snippets b/vim/snippets/vim-snippets/snippets/java.snippets
deleted file mode 100644
index 66821c1..0000000
--- a/vim/snippets/vim-snippets/snippets/java.snippets
+++ /dev/null
@@ -1,295 +0,0 @@
-## Access Modifiers
-snippet po
- protected ${0}
-snippet pu
- public ${0}
-snippet pr
- private ${0}
-##
-## Annotations
-snippet before
- @Before
- static void ${1:intercept}(${2:args}) { ${0} }
-snippet mm
- @ManyToMany
- ${0}
-snippet mo
- @ManyToOne
- ${0}
-snippet om
- @OneToMany${1:(cascade=CascadeType.ALL)}
- ${0}
-snippet oo
- @OneToOne
- ${1}
-##
-## Basic Java packages and import
-snippet im
- import ${0}
-snippet j.b
- java.beans.
-snippet j.i
- java.io.
-snippet j.m
- java.math.
-snippet j.n
- java.net.
-snippet j.u
- java.util.
-##
-## Class
-snippet cl
- class ${1:`vim_snippets#Filename("$1", "untitled")`} ${0}
-snippet pcl
- public class ${1:`vim_snippets#Filename("$1", "untitled")`} ${0}
-snippet in
- interface ${1:`vim_snippets#Filename("$1", "untitled")`} ${2:extends Parent}
-snippet tc
- public class ${1:`vim_snippets#Filename("$1")`} extends ${0:TestCase}
-##
-## Class Enhancements
-snippet ext
- extends ${0}
-snippet imp
- implements ${0}
-##
-## Comments
-snippet /*
- /*
- * ${0}
- */
-##
-## Constants
-snippet co
- static public final ${1:String} ${2:var} = ${3};
-snippet cos
- static public final String ${1:var} = "${2}";
-##
-## Control Statements
-snippet case
- case ${1}:
- ${0}
-snippet def
- default:
- ${0}
-snippet el
- else
-snippet eif
- else if (${1}) ${0}
-snippet if
- if (${1}) ${0}
-snippet sw
- switch (${1}) {
- ${0}
- }
-##
-## Create a Method
-snippet m
- ${1:void} ${2:method}(${3}) ${4:throws }
-##
-## Create a Variable
-snippet v
- ${1:String} ${2:var}${3: = null}${4};
-##
-## Declaration for ArrayList
-snippet d.al
- List<${1:Object}> ${2:list} = new ArrayList<$1>();${0}
-## Declaration for HashMap
-snippet d.hm
- Map<${1:Object}, ${2:Object}> ${3:map} = new HashMap<$1, $2>();${0}
-## Declaration for HashSet
-snippet d.hs
- Set<${1:Object}> ${2:set} = new HashSet<$1>();${0}
-## Declaration for Stack
-snippet d.st
- Stack<${1:Object}> ${2:stack} = new Stack<$1>();${0}
-##
-## Singleton Pattern
-snippet singlet
- private static class Holder {
- private static final ${1:`vim_snippets#Filename("$1")`} INSTANCE = new $1();
- }
-
- private $1() { }
-
- public static $1 getInstance() {
- return Holder.INSTANCE;
- }
-##
-## Enhancements to Methods, variables, classes, etc.
-snippet ab
- abstract ${0}
-snippet fi
- final ${0}
-snippet st
- static ${0}
-snippet sy
- synchronized ${0}
-##
-## Error Methods
-snippet err
- System.err.print("${0:Message}");
-snippet errf
- System.err.printf("${1:Message}", ${0:exception});
-snippet errln
- System.err.println("${0:Message}");
-##
-## Exception Handling
-snippet as
- assert ${1:test} : "${2:Failure message}";
-snippet ae
- assertEquals("${1:Failure message}", ${2:expected}, ${3:actual});
-snippet aae
- assertArrayEquals("${1:Failure message}", ${2:expecteds}, ${3:actuals});
-snippet af
- assertFalse("${1:Failure message}", ${2:condition});
-snippet at
- assertTrue("${1:Failure message}", ${2:condition});
-snippet an
- assertNull("${1:Failure message}", ${2:object});
-snippet ann
- assertNotNull("${1:Failure message}", ${2:object});
-snippet ass
- assertSame("${1:Failure message}", ${2:expected}, ${3:actual});
-snippet asns
- assertNotSame("${1:Failure message}", ${2:expected}, ${3:actual});
-snippet fa
- fail("${1:Failure message}");
-snippet ca
- catch(${1:Exception} ${2:e}) ${0}
-snippet thr
- throw ${0}
-snippet ths
- throws ${0}
-snippet try
- try {
- ${0:${VISUAL}}
- } catch(${1:Exception} ${2:e}) {
- }
-snippet tryf
- try {
- ${0:${VISUAL}}
- } catch(${1:Exception} ${2:e}) {
- } finally {
- }
-##
-## Find Methods
-snippet findall
- List<${1:listName}> ${2:items} = ${1}.findAll();
-snippet findbyid
- ${1:var} ${2:item} = ${1}.findById(${3});
-##
-## Javadocs
-snippet /**
- /**
- * ${0}
- */
-snippet @au
- @author `system("grep \`id -un\` /etc/passwd | cut -d \":\" -f5 | cut -d \",\" -f1")`
-snippet @br
- @brief ${0:Description}
-snippet @fi
- @file ${0:`vim_snippets#Filename("$1")`}.java
-snippet @pa
- @param ${0:param}
-snippet @re
- @return ${0:param}
-##
-## Logger Methods
-snippet debug
- Logger.debug(${1:param});
-snippet error
- Logger.error(${1:param});
-snippet info
- Logger.info(${1:param});
-snippet warn
- Logger.warn(${1:param});
-##
-## Loops
-snippet enfor
- for (${1} : ${2}) ${0}
-snippet for
- for (${1}; ${2}; ${3}) ${0}
-snippet wh
- while (${1}) ${0}
-##
-## Main method
-snippet psvm
- public static void main (String[] args) {
- ${0}
- }
-snippet main
- public static void main (String[] args) {
- ${0}
- }
-##
-## Print Methods
-snippet sout
- System.out.println(${0});
-snippet serr
- System.err.println(${0});
-snippet print
- System.out.print("${0:Message}");
-snippet printf
- System.out.printf("${1:Message}", ${0:args});
-snippet println
- System.out.println(${0});
-snippet printlna
- System.out.println(Arrays.toString(${0}));
-##
-## Render Methods
-snippet ren
- render(${1:param});
-snippet rena
- renderArgs.put("${1}", ${2});
-snippet renb
- renderBinary(${1:param});
-snippet renj
- renderJSON(${1:param});
-snippet renx
- renderXml(${1:param});
-##
-## Setter and Getter Methods
-snippet set
- ${1:public} void set${3:}(${2:String} ${0:}){
- this.$4 = $4;
- }
-snippet get
- ${1:public} ${2:String} get${3:}(){
- return this.${0:};
- }
-##
-## Terminate Methods or Loops
-snippet re
- return ${0}
-snippet br
- break;
-##
-## Test Methods
-snippet t
- public void test${1:Name}() throws Exception {
- ${0}
- }
-snippet test
- @Test
- public void test${1:Name}() throws Exception {
- ${0}
- }
-##
-## Utils
-snippet Sc
- Scanner
-##
-## Miscellaneous
-snippet action
- public static void ${1:index}(${2:args}) { ${0} }
-snippet rnf
- notFound(${1:param});
-snippet rnfin
- notFoundIfNull(${1:param});
-snippet rr
- redirect(${1:param});
-snippet ru
- unauthorized(${1:param});
-snippet unless
- (unless=${1:param});
diff --git a/vim/snippets/vim-snippets/snippets/javascript-bemjson.snippets b/vim/snippets/vim-snippets/snippets/javascript-bemjson.snippets
deleted file mode 100644
index 7899c22..0000000
--- a/vim/snippets/vim-snippets/snippets/javascript-bemjson.snippets
+++ /dev/null
@@ -1,52 +0,0 @@
-# Snippet for bemjson. https://en.bem.info/platform/bemjson/
-
-# Blocks
-snippet b
- {
- block : '${1:name}',
- content : [
- '${2:content}'
- ]
- }
-
-# btc - BEM block with text content
-snippet btc
- {
- block : '${1:name}',
- content: '${2:content}'
- }
-
-# bwm - BEM block with modifier.
-snippet bwm
- {
- block : '${1:name}',
- mods: { ${2:modName}: '${3:modVal}' },
- content : [
- '${4:content}'
- ]
- }
-
-# Elems
-
-# e - BEM elem
-snippet e
- {
- elem : '${1:name}',
- content : [
- '${2:content}'
- ]
- }
-
-
-# mo - Mods
-snippet mo
- mods : { ${1:modName} : '${2:modVal}' },
-
-# mi - BEM mix mod
-snippet mi
- mix : [ { ${1:block} : '${2:block}' } ],
-
-# a - BEM attrs mod
-snippet a
- attrs : { ${1:attr} : '${2:val}' },
-
diff --git a/vim/snippets/vim-snippets/snippets/javascript-d3.snippets b/vim/snippets/vim-snippets/snippets/javascript-d3.snippets
deleted file mode 100644
index f5be918..0000000
--- a/vim/snippets/vim-snippets/snippets/javascript-d3.snippets
+++ /dev/null
@@ -1,30 +0,0 @@
-snippet .attr
- .attr("${1}", ${2})
-snippet .style
- .style("${1}", ${2})
-snippet axis
- d3.svg.axis()
- .orient(${1})
- .scale(${2})
-snippet fd
- function(d) { ${1} }
-snippet fdi
- function(d, i) { ${1} }
-snippet marginconvention
- var ${1:margin} = { top: ${2:10}, right: ${3:10}, bottom: ${4:10}, left: ${5:10} };
- var ${6:width} = ${7:970} - $1.left - $1.right;
- var ${8:height} = ${9:500} - $1.top - $1.bottom;
-
- var ${10:svg} = d3.select("${11}").append("svg")
- .attr("width", $6 + $1.left + $1.right)
- .attr("height", $8 + $1.top + $1.bottom)
- .append("g")
- .attr("transform", "translate(" + $1.left + "," + $1.top + ")")
-snippet nest
- d3.nest()
- .key(${1})
- .entries(${2})
-snippet scale
- d3.scale.linear()
- .domain(${1})
- .range(${2})
diff --git a/vim/snippets/vim-snippets/snippets/javascript-mocha.snippets b/vim/snippets/vim-snippets/snippets/javascript-mocha.snippets
deleted file mode 100644
index eb5c381..0000000
--- a/vim/snippets/vim-snippets/snippets/javascript-mocha.snippets
+++ /dev/null
@@ -1,34 +0,0 @@
-snippet des "describe('thing', () => { ... })" b
- describe('${1:}', () => {
- ${0:${VISUAL}}
- });
-snippet it "it('should do', () => { ... })" b
- it('${1:}', () => {
- ${0:${VISUAL}}
- });
-snippet xit "xit('should do', () => { ... })" b
- xit('${1:}', () => {
- ${0:${VISUAL}}
- });
-snippet bef "before(() => { ... })" b
- before(() => {
- ${0:${VISUAL}}
- });
-snippet befe "beforeEach(() => { ... })" b
- beforeEach(() => {
- ${0:${VISUAL}}
- });
-snippet aft "after(() => { ... })" b
- after(() => {
- ${0:${VISUAL}}
- });
-snippet afte "afterEach(() => { ... })" b
- afterEach(() => {
- ${0:${VISUAL}}
- });
-snippet exp "expect(...)" b
- expect(${1:})${0};
-snippet expe "expect(...).to.equal(...)" b
- expect(${1:}).to.equal(${0});
-snippet expd "expect(...).to.deep.equal(...)" b
- expect(${1:}).to.deep.equal(${0});
diff --git a/vim/snippets/vim-snippets/snippets/javascript.es6.react.snippets b/vim/snippets/vim-snippets/snippets/javascript.es6.react.snippets
deleted file mode 100644
index a584bb1..0000000
--- a/vim/snippets/vim-snippets/snippets/javascript.es6.react.snippets
+++ /dev/null
@@ -1,81 +0,0 @@
-# Import only React
-snippet ri1
- import React from 'react'
-
-# Import both React and Component
-snippet ri2
- import React, { Component, PropTypes } from 'react'
-
-# React class
-snippet rcla
- class ${1:MyComponent} extends Component {
- render() {
- return (
- ${0:
}
- )
- }
- }
-
-# React constructor
-snippet rcon
- constructor(props) {
- super(props)
-
- this.state = {
- ${1}: ${0},
- }
- }
-
-# Proptypes for React Class
-snippet rcpt
- static propTypes = {
- ${1}: PropTypes.${0},
- }
-
-# Default props for React Class
-snippet rcdp
- static defaultProps = {
- ${1}: ${0},
- }
-
-# Presentational component
-snippet rcom
- props => {
- return (
- ${0:
}
- )
- }
-
-# Proptypes for Presentational component
-snippet rpt
- ${1}.propTypes = {
- ${2}: PropTypes.${0},
- }
-
-# Default props for Presentational component
-snippet rdp
- ${1}.defaultProps = {
- ${2}: ${0},
- }
-
-# Lifecycle Methods
-snippet rcdm
- componentDidMount() {
- ${0:${VISUAL}}
- }
-
-# State
-snippet rsst
- this.setState({
- ${1}: ${0},
- })
-
-snippet rtst
- this.state.${0}
-
-# Props
-snippet rp
- props.${0}
-
-snippet rtp
- this.props.${0}
diff --git a/vim/snippets/vim-snippets/snippets/javascript/javascript-jasmine.snippets b/vim/snippets/vim-snippets/snippets/javascript/javascript-jasmine.snippets
deleted file mode 100644
index 855a189..0000000
--- a/vim/snippets/vim-snippets/snippets/javascript/javascript-jasmine.snippets
+++ /dev/null
@@ -1,177 +0,0 @@
-version 1
-
-snippet des "Describe (js)"
- describe('${1:description}', function() {
- $0
- });
-
-snippet it "it (js)"
- it('${1:description}', function() {
- $0
- });
-
-snippet bef "before each (js)"
- beforeEach(function() {
- $0
- });
-
-snippet aft "after each (js)"
- afterEach(function() {
- $0
- });
-
-snippet befa "before all (js)"
- beforeAll(function() {
- $0
- });
-
-snippet afta "after all (js)"
- afterAll(function() {
- $0
- });
-
-snippet any "any (js)"
- jasmine.any($1)
-
-snippet anyt "anything (js)"
- jasmine.anything()
-
-snippet objc "object containing (js)"
- jasmine.objectContaining({
- ${VISUAL}$0
- });
-
-snippet arrc "array containing (js)"
- jasmine.arrayContaining([${1:value1}]);
-
-snippet strm "string matching (js)"
- jasmine.stringMatching("${1:matcher}")
-
-snippet ru "runs (js)"
- runs(function() {
- $0
- });
-
-snippet wa "waits (js)"
- waits($1);
-
-snippet ex "expect (js)"
- expect(${1:target})$0;
-
-snippet ee "expect to equal (js)"
- expect(${1:target}).toEqual(${2:value});
-
-snippet el "expect to be less than (js)"
- expect(${1:target}).toBeLessThan(${2:value});
-
-snippet eg "expect to be greater than (js)"
- expect(${1:target}).toBeGreaterThan(${2:value});
-
-snippet eb "expect to be (js)"
- expect(${1:target}).toBe(${2:value});
-
-snippet em "expect to match (js)"
- expect(${1:target}).toMatch(${2:pattern});
-
-snippet eha "expect to have attribute (js)"
- expect(${1:target}).toHaveAttr('${2:attr}'${3:, '${4:value}'});
-
-snippet et "expect to be truthy (js)"
- expect(${1:target}).toBeTruthy();
-
-snippet ef "expect to be falsy (js)"
- expect(${1:target}).toBeFalsy();
-
-snippet ed "expect to be defined (js)"
- expect(${1:target}).toBeDefined();
-
-snippet eud "expect to be defined (js)"
- expect(${1:target}).toBeUndefined();
-
-snippet en "expect to be null (js)"
- expect(${1:target}).toBeNull();
-
-snippet ec "expect to contain (js)"
- expect(${1:target}).toContain(${2:value});
-
-snippet ev "expect to be visible (js)"
- expect(${1:target}).toBeVisible();
-
-snippet eh "expect to be hidden (js)"
- expect(${1:target}).toBeHidden();
-
-snippet eth "expect to throw (js)"
- expect(${1:target}).toThrow(${2:value});
-
-snippet ethe "expect to throw error (js)"
- expect(${1:target}).toThrowError(${2:value});
-
-snippet notx "expect not (js)"
- expect(${1:target}).not$0;
-
-snippet note "expect not to equal (js)"
- expect(${1:target}).not.toEqual(${2:value});
-
-snippet notl "expect to not be less than (js)"
- expect(${1:target}).not.toBeLessThan(${2:value});
-
-snippet notg "expect to not be greater than (js)"
- expect(${1:target}).not.toBeGreaterThan(${2:value});
-
-snippet notm "expect not to match (js)"
- expect(${1:target}).not.toMatch(${2:pattern});
-
-snippet notha "expect to not have attribute (js)"
- expect(${1:target}).not.toHaveAttr('${2:attr}'${3:, '${4:value}'});
-
-snippet nott "expect not to be truthy (js)"
- expect(${1:target}).not.toBeTruthy();
-
-snippet notf "expect not to be falsy (js)"
- expect(${1:target}).not.toBeFalsy();
-
-snippet notd "expect not to be defined (js)"
- expect(${1:target}).not.toBeDefined();
-
-snippet notn "expect not to be null (js)"
- expect(${1:target}).not.toBeNull();
-
-snippet notc "expect not to contain (js)"
- expect(${1:target}).not.toContain(${2:value});
-
-snippet notv "expect not to be visible (js)"
- expect(${1:target}).not.toBeVisible();
-
-snippet noth "expect not to be hidden (js)"
- expect(${1:target}).not.toBeHidden();
-
-snippet notth "expect not to throw (js)"
- expect(${1:target}).not.toThrow(${2:value});
-
-snippet notthe "expect not to throw error (js)"
- expect(${1:target}).not.toThrowError(${2:value});
-
-snippet s "spy on (js)"
- spyOn(${1:object}, '${2:method}')$0;
-
-snippet sr "spy on and return (js)"
- spyOn(${1:object}, '${2:method}').and.returnValue(${3:arguments});
-
-snippet st "spy on and throw (js)"
- spyOn(${1:object}, '${2:method}').and.throwError(${3:exception});
-
-snippet sct "spy on and call through (js)"
- spyOn(${1:object}, '${2:method}').and.callThrough();
-
-snippet scf "spy on and call fake (js)"
- spyOn(${1:object}, '${2:method}').and.callFake(${3:function});
-
-snippet ethbc "expect to have been called (js)"
- expect(${1:target}).toHaveBeenCalled();
-
-snippet nthbc "expect not to have been called (js)"
- expect(${1:target}).not.toHaveBeenCalled();
-
-snippet ethbcw "expect to have been called with (js)"
- expect(${1:target}).toHaveBeenCalledWith(${2:arguments});
-
diff --git a/vim/snippets/vim-snippets/snippets/javascript/javascript-jquery.snippets b/vim/snippets/vim-snippets/snippets/javascript/javascript-jquery.snippets
deleted file mode 100644
index ef6f66c..0000000
--- a/vim/snippets/vim-snippets/snippets/javascript/javascript-jquery.snippets
+++ /dev/null
@@ -1,589 +0,0 @@
-snippet add
- ${1:obj}.add('${2:selector expression}')
-snippet addClass
- ${1:obj}.addClass('${2:class name}')
-snippet after
- ${1:obj}.after('${2:Some text and bold! }')
-snippet ajax
- $.ajax({
- url: '${1:mydomain.com/url}',
- type: '${2:POST}',
- dataType: '${3:xml/html/script/json}',
- data: $.param( $('${4:Element or Expression}') ),
- complete: function (jqXHR, textStatus) {
- ${5:// callback}
- },
- success: function (data, textStatus, jqXHR) {
- ${6:// success callback}
- },
- error: function (jqXHR, textStatus, errorThrown) {
- ${0:// error callback}
- }
- });
-snippet ajaxcomplete
- ${1:obj}.ajaxComplete(function (${1:e}, xhr, settings) {
- ${0:// callback}
- });
-snippet ajaxerror
- ${1:obj}.ajaxError(function (${1:e}, xhr, settings, thrownError) {
- ${2:// error callback}
- });
- ${0}
-snippet ajaxget
- $.get('${1:mydomain.com/url}',
- ${2:{ param1: value1 },}
- function (data, textStatus, jqXHR) {
- ${0:// success callback}
- }
- );
-snippet ajaxpost
- $.post('${1:mydomain.com/url}',
- ${2:{ param1: value1 },}
- function (data, textStatus, jqXHR) {
- ${0:// success callback}
- }
- );
-snippet ajaxprefilter
- $.ajaxPrefilter(function (${1:options}, ${2:originalOptions}, jqXHR) {
- ${0: // Modify options, control originalOptions, store jqXHR, etc}
- });
-snippet ajaxsend
- ${1:obj}.ajaxSend(function (${1:request, settings}) {
- ${2:// error callback}
- });
- ${0}
-snippet ajaxsetup
- $.ajaxSetup({
- url: "${1:mydomain.com/url}",
- type: "${2:POST}",
- dataType: "${3:xml/html/script/json}",
- data: $.param( $("${4:Element or Expression}") ),
- complete: function (jqXHR, textStatus) {
- ${5:// callback}
- },
- success: function (data, textStatus, jqXHR) {
- ${6:// success callback}
- },
- error: function (jqXHR, textStatus, errorThrown) {
- ${0:// error callback}
- }
- });
-snippet ajaxstart
- $.ajaxStart(function () {
- ${1:// handler for when an AJAX call is started and no other AJAX calls are in progress};
- });
- ${0}
-snippet ajaxstop
- $.ajaxStop(function () {
- ${1:// handler for when all AJAX calls have been completed};
- });
- ${0}
-snippet ajaxsuccess
- $.ajaxSuccess(function (${1:e}, xhr, settings) {
- ${2:// handler for when any AJAX call is successfully completed};
- });
- ${0}
-snippet andself
- ${1:obj}.andSelf()
-snippet animate
- ${1:obj}.animate({${2:param1: value1, param2: value2}}, ${3:speed})
-snippet append
- ${1:obj}.append('${2:Some text and bold! }')
-snippet appendTo
- ${1:obj}.appendTo('${2:selector expression}')
-snippet attr
- ${1:obj}.attr('${2:attribute}', '${3:value}')
-snippet attrm
- ${1:obj}.attr({'${2:attr1}': '${3:value1}', '${4:attr2}': '${5:value2}'})
-snippet before
- ${1:obj}.before('${2:Some text and bold! }')
-snippet bind
- ${1:obj}.bind('${2:event name}', function (${3:e}) {
- ${0:// event handler}
- });
-snippet blur
- ${1:obj}.blur(function (${2:e}) {
- ${0:// event handler}
- });
-snippet C
- $.Callbacks()
-snippet Cadd
- ${1:callbacks}.add(${2:callbacks})
-snippet Cdis
- ${1:callbacks}.disable()
-snippet Cempty
- ${1:callbacks}.empty()
-snippet Cfire
- ${1:callbacks}.fire(${2:args})
-snippet Cfired
- ${1:callbacks}.fired()
-snippet Cfirew
- ${1:callbacks}.fireWith(${2:this}, ${3:args})
-snippet Chas
- ${1:callbacks}.has(${2:callback})
-snippet Clock
- ${1:callbacks}.lock()
-snippet Clocked
- ${1:callbacks}.locked()
-snippet Crem
- ${1:callbacks}.remove(${2:callbacks})
-snippet change
- ${1:obj}.change(function (${2:e}) {
- ${0:// event handler}
- });
-snippet children
- ${1:obj}.children('${2:selector expression}')
-snippet clearq
- ${1:obj}.clearQueue(${2:'queue name'})
-snippet click
- ${1:obj}.click(function (${2:e}) {
- ${0:// event handler}
- });
-snippet clone
- ${1:obj}.clone()
-snippet contains
- $.contains(${1:container}, ${0:contents});
-snippet css
- ${1:obj}.css('${2:attribute}', '${3:value}')
-snippet csshooks
- $.cssHooks['${1:CSS prop}'] = {
- get: function (elem, computed, extra) {
- ${2: // handle getting the CSS property}
- },
- set: function (elem, value) {
- ${0: // handle setting the CSS value}
- }
- };
-snippet cssm
- ${1:obj}.css({${2:attribute1}: '${3:value1}', ${4:attribute2}: '${5:value2}'})
-snippet D
- $.Deferred()
-snippet Dalways
- ${1:deferred}.always(${2:callbacks})
-snippet Ddone
- ${1:deferred}.done(${2:callbacks})
-snippet Dfail
- ${1:deferred}.fail(${2:callbacks})
-snippet Disrej
- ${1:deferred}.isRejected()
-snippet Disres
- ${1:deferred}.isResolved()
-snippet Dnotify
- ${1:deferred}.notify(${2:args})
-snippet Dnotifyw
- ${1:deferred}.notifyWith(${2:this}, ${3:args})
-snippet Dpipe
- ${1:deferred}.then(${2:doneFilter}, ${3:failFilter}, ${4:progressFilter})
-snippet Dprog
- ${1:deferred}.progress(${2:callbacks})
-snippet Dprom
- ${1:deferred}.promise(${2:target})
-snippet Drej
- ${1:deferred}.reject(${2:args})
-snippet Drejw
- ${1:deferred}.rejectWith(${2:this}, ${3:args})
-snippet Dres
- ${1:deferred}.resolve(${2:args})
-snippet Dresw
- ${1:deferred}.resolveWith(${2:this}, ${3:args})
-snippet Dstate
- ${1:deferred}.state()
-snippet Dthen
- ${1:deferred}.then(${2:doneCallbacks}, ${3:failCallbacks}, ${4:progressCallbacks})
-snippet Dwhen
- $.when(${1:deferreds})
-snippet data
- ${1:obj}.data(${2:obj})
-snippet dataa
- $.data('${1:selector expression}', '${2:key}'${3:, 'value'})
-snippet dblclick
- ${1:obj}.dblclick(function (${2:e}) {
- ${0:// event handler}
- });
-snippet delay
- ${1:obj}.delay('${2:slow/400/fast}'${3:, 'queue name'})
-snippet dele
- ${1:obj}.delegate('${2:selector expression}', '${3:event name}', function (${4:e}) {
- ${0:// event handler}
- });
-snippet deq
- ${1:obj}.dequeue(${2:'queue name'})
-snippet deqq
- $.dequeue('${1:selector expression}'${2:, 'queue name'})
-snippet detach
- ${1:obj}.detach('${2:selector expression}')
-snippet die
- ${1:obj}.die(${2:event}, ${3:handler})
-snippet each
- ${1:obj}.each(function (index) {
- ${0:this.innerHTML = this + " is the element, " + index + " is the position";}
- });
-snippet el
- $('<${1}/>'${2:, {}})
-snippet eltrim
- $.trim('${1:string}')
-snippet empty
- ${1:obj}.empty()
-snippet end
- ${1:obj}.end()
-snippet eq
- ${1:obj}.eq(${2:element index})
-snippet error
- ${1:obj}.error(function (${2:e}) {
- ${0:// event handler}
- });
-snippet eventsmap
- {
- :f${0}
- }
-snippet extend
- $.extend(${1:true, }${2:target}, ${3:obj})
-snippet fadein
- ${1:obj}.fadeIn('${2:slow/400/fast}')
-snippet fadeinc
- ${1:obj}.fadeIn('slow/400/fast', function () {
- ${0:// callback};
- });
-snippet fadeout
- ${1:obj}.fadeOut('${2:slow/400/fast}')
-snippet fadeoutc
- ${1:obj}.fadeOut('slow/400/fast', function () {
- ${0:// callback};
- });
-snippet fadeto
- ${1:obj}.fadeTo('${2:slow/400/fast}', ${3:0.5})
-snippet fadetoc
- ${1:obj}.fadeTo('slow/400/fast', ${2:0.5}, function () {
- ${0:// callback};
- });
-snippet filter
- ${1:obj}.filter('${2:selector expression}')
-snippet filtert
- ${1:obj}.filter(function (${2:index}) {
- ${3}
- })
-snippet find
- ${1:obj}.find('${2:selector expression}')
-snippet focus
- ${1:obj}.focus(function (${2:e}) {
- ${0:// event handler}
- });
-snippet focusin
- ${1:obj}.focusIn(function (${2:e}) {
- ${0:// event handler}
- });
-snippet focusout
- ${1:obj}.focusOut(function (${2:e}) {
- ${0:// event handler}
- });
-snippet get
- ${1:obj}.get(${2:element index})
-snippet getjson
- $.getJSON('${1:mydomain.com/url}',
- ${2:{ param1: value1 },}
- function (data, textStatus, jqXHR) {
- ${0:// success callback}
- }
- );
-snippet getscript
- $.getScript('${1:mydomain.com/url}', function (script, textStatus, jqXHR) {
- ${0:// callback}
- });
-snippet grep
- $.grep(${1:array}, function (item, index) {
- ${2}
- }${0:, true});
-snippet hasc
- ${1:obj}.hasClass('${2:className}')
-snippet hasd
- $.hasData('${0:selector expression}');
-snippet height
- ${1:obj}.height(${2:integer})
-snippet hide
- ${1:obj}.hide('${2:slow/400/fast}')
-snippet hidec
- ${1:obj}.hide('${2:slow/400/fast}', function () {
- ${0:// callback}
- });
-snippet hover
- ${1:obj}.hover(function (${2:e}) {
- ${3:// event handler}
- }, function ($2) {
- ${4:// event handler}
- });
-snippet html
- ${1:obj}.html('${2:Some text and bold! }')
-snippet inarr
- $.inArray(${1:value}, ${0:array});
-snippet insa
- ${1:obj}.insertAfter('${2:selector expression}')
-snippet insb
- ${1:obj}.insertBefore('${2:selector expression}')
-snippet is
- ${1:obj}.is('${2:selector expression}')
-snippet isarr
- $.isArray(${1:obj})
-snippet isempty
- $.isEmptyObject(${1:obj})
-snippet isfunc
- $.isFunction(${1:obj})
-snippet isnum
- $.isNumeric(${1:value})
-snippet isobj
- $.isPlainObject(${1:obj})
-snippet iswin
- $.isWindow(${1:obj})
-snippet isxml
- $.isXMLDoc(${1:node})
-snippet jj
- $('${1:selector}')
-snippet kdown
- ${1:obj}.keydown(function (${2:e}) {
- ${0:// event handler}
- });
-snippet kpress
- ${1:obj}.keypress(function (${2:e}) {
- ${0:// event handler}
- });
-snippet kup
- ${1:obj}.keyup(function (${2:e}) {
- ${0:// event handler}
- });
-snippet last
- ${1:obj}.last('${1:selector expression}')
-snippet live
- ${1:obj}.live('${2:events}', function (${3:e}) {
- ${0:// event handler}
- });
-snippet load
- ${1:obj}.load(function (${2:e}) {
- ${0:// event handler}
- });
-snippet loadf
- ${1:obj}.load('${2:mydomain.com/url}',
- ${2:{ param1: value1 },}
- function (responseText, textStatus, xhr) {
- ${0:// success callback}
- }
- });
-snippet makearray
- $.makeArray(${0:obj});
-snippet map
- ${1:obj}.map(function (${2:index}, ${3:element}) {
- ${0:// callback}
- });
-snippet mapp
- $.map(${1:arrayOrObject}, function (${2:value}, ${3:indexOrKey}) {
- ${0:// callback}
- });
-snippet merge
- $.merge(${1:target}, ${0:original});
-snippet mdown
- ${1:obj}.mousedown(function (${2:e}) {
- ${0:// event handler}
- });
-snippet menter
- ${1:obj}.mouseenter(function (${2:e}) {
- ${0:// event handler}
- });
-snippet mleave
- ${1:obj}.mouseleave(function (${2:e}) {
- ${0:// event handler}
- });
-snippet mmove
- ${1:obj}.mousemove(function (${2:e}) {
- ${0:// event handler}
- });
-snippet mout
- ${1:obj}.mouseout(function (${2:e}) {
- ${0:// event handler}
- });
-snippet mover
- ${1:obj}.mouseover(function (${2:e}) {
- ${0:// event handler}
- });
-snippet mup
- ${1:obj}.mouseup(function (${2:e}) {
- ${0:// event handler}
- });
-snippet next
- ${1:obj}.next('${2:selector expression}')
-snippet nexta
- ${1:obj}.nextAll('${2:selector expression}')
-snippet nextu
- ${1:obj}.nextUntil('${2:selector expression}'${3:, 'filter expression'})
-snippet not
- ${1:obj}.not('${2:selector expression}')
-snippet off
- ${1:obj}.off('${2:events}', '${3:selector expression}'${4:, handler})
-snippet offset
- ${1:obj}.offset()
-snippet offsetp
- ${1:obj}.offsetParent()
-snippet on
- ${1:obj}.on('${2:events}', '${3:selector expression}', function (${4:e}) {
- ${0:// event handler}
- });
-snippet one
- ${1:obj}.one('${2:event name}', function (${3:e}) {
- ${0:// event handler}
- });
-snippet outerh
- ${1:obj}.outerHeight()
-snippet outerw
- ${1:obj}.outerWidth()
-snippet param
- $.param(${1:obj})
-snippet parent
- ${1:obj}.parent('${2:selector expression}')
-snippet parents
- ${1:obj}.parents('${2:selector expression}')
-snippet parentsu
- ${1:obj}.parentsUntil('${2:selector expression}'${3:, 'filter expression'})
-snippet parsejson
- $.parseJSON(${1:data})
-snippet parsexml
- $.parseXML(${1:data})
-snippet pos
- ${1:obj}.position()
-snippet prepend
- ${1:obj}.prepend('${2:Some text and bold! }')
-snippet prependto
- ${1:obj}.prependTo('${2:selector expression}')
-snippet prev
- ${1:obj}.prev('${2:selector expression}')
-snippet preva
- ${1:obj}.prevAll('${2:selector expression}')
-snippet prevu
- ${1:obj}.prevUntil('${2:selector expression}'${3:, 'filter expression'})
-snippet promise
- ${1:obj}.promise(${2:'fx'}, ${3:target})
-snippet prop
- ${1:obj}.prop('${2:property name}')
-snippet proxy
- $.proxy(${1:function}, ${2:this})
-snippet pushstack
- ${1:obj}.pushStack(${2:elements})
-snippet queue
- ${1:obj}.queue(${2:name}${3:, newQueue})
-snippet queuee
- $.queue(${1:element}${2:, name}${3:, newQueue})
-snippet ready
- $(function () {
- ${0}
- });
-snippet rem
- ${1:obj}.remove()
-snippet rema
- ${1:obj}.removeAttr('${2:attribute name}')
-snippet remc
- ${1:obj}.removeClass('${2:class name}')
-snippet remd
- ${1:obj}.removeData('${2:key name}')
-snippet remdd
- $.removeData(${1:element}${2:, 'key name}')
-snippet remp
- ${1:obj}.removeProp('${2:property name}')
-snippet repa
- ${1:obj}.replaceAll(${2:target})
-snippet repw
- ${1:obj}.replaceWith(${2:content})
-snippet reset
- ${1:obj}.reset(function (${2:e}) {
- ${0:// event handler}
- });
-snippet resize
- ${1:obj}.resize(function (${2:e}) {
- ${0:// event handler}
- });
-snippet scroll
- ${1:obj}.scroll(function (${2:e}) {
- ${0:// event handler}
- });
-snippet scrolll
- ${1:obj}.scrollLeft(${2:value})
-snippet scrollt
- ${1:obj}.scrollTop(${2:value})
-snippet sdown
- ${1:obj}.slideDown('${2:slow/400/fast}')
-snippet sdownc
- ${1:obj}.slideDown('${2:slow/400/fast}', function () {
- ${0:// callback};
- });
-snippet select
- ${1:obj}.select(function (${2:e}) {
- ${0:// event handler}
- });
-snippet serialize
- ${1:obj}.serialize()
-snippet serializea
- ${1:obj}.serializeArray()
-snippet show
- ${1:obj}.show('${2:slow/400/fast}')
-snippet showc
- ${1:obj}.show('${2:slow/400/fast}', function () {
- ${0:// callback}
- });
-snippet sib
- ${1:obj}.siblings('${2:selector expression}')
-snippet size
- ${1:obj}.size()
-snippet slice
- ${1:obj}.slice(${2:start}${3:, end})
-snippet stoggle
- ${1:obj}.slideToggle('${2:slow/400/fast}')
-snippet stop
- ${1:obj}.stop('${2:queue}', ${3:false}, ${4:false})
-snippet submit
- ${1:obj}.submit(function (${2:e}) {
- ${0:// event handler}
- });
-snippet sup
- ${1:obj}.slideUp('${2:slow/400/fast}')
-snippet supc
- ${1:obj}.slideUp('${2:slow/400/fast}', function () {
- ${0:// callback};
- });
-snippet text
- ${1:obj}.text(${2:'some text'})
-snippet this
- $(this)
-snippet toarr
- ${0:obj}.toArray()
-snippet tog
- ${1:obj}.toggle(function (${2:e}) {
- ${3:// event handler}
- }, function ($2) {
- ${4:// event handler}
- });
- ${0}
-snippet togclass
- ${1:obj}.toggleClass('${2:class name}')
-snippet togsh
- ${1:obj}.toggle('${2:slow/400/fast}')
-snippet trig
- ${1:obj}.trigger('${2:event name}')
-snippet trigh
- ${1:obj}.triggerHandler('${2:event name}')
-snippet $trim
- $.trim(${1:str})
-snippet $type
- $.type(${1:obj})
-snippet unbind
- ${1:obj}.unbind('${2:event name}')
-snippet undele
- ${1:obj}.undelegate(${2:selector expression}, ${3:event}, ${4:handler})
-snippet uniq
- $.unique(${1:array})
-snippet unload
- ${1:obj}.unload(function (${2:e}) {
- ${0:// event handler}
- });
-snippet unwrap
- ${1:obj}.unwrap()
-snippet val
- ${1:obj}.val('${2:text}')
-snippet width
- ${1:obj}.width(${2:integer})
-snippet wrap
- ${1:obj}.wrap('${2:<div class="extra-wrapper"></div>}')
diff --git a/vim/snippets/vim-snippets/snippets/javascript/javascript-react.snippets b/vim/snippets/vim-snippets/snippets/javascript/javascript-react.snippets
deleted file mode 100644
index 9deae79..0000000
--- a/vim/snippets/vim-snippets/snippets/javascript/javascript-react.snippets
+++ /dev/null
@@ -1,83 +0,0 @@
-snippet ir
- import React from 'react';
-snippet ird
- import ReactDOM from 'react-dom';
-snippet cdm
- componentDidMount() {
- ${1}
- }
-snippet cdup
- componentDidUpdate(prevProps, prevState) {
- ${1}
- }
-snippet cwm
- componentWillMount() {
- ${1}
- }
-snippet cwr
- componentWillReceiveProps(nextProps) {
- ${1}
- }
-snippet cwun
- componentWillUnmount() {
- ${1}
- }
-snippet cwu
- componentWillUpdate(nextProps, nextState) {
- ${1}
- }
-snippet fup
- forceUpdate(${1:callback});
-snippet dp
- static defaultProps = {
- ${1}: ${2},
- }
-snippet st
- state = {
- ${1}: ${2},
- }
-snippet pt
- static propTypes = {
- ${1}: React.PropTypes.${2:type},
- }
-snippet rcc
- class ${1:ClassName} extends React.Component {
- render() {
- return (
- ${0:
}
- );
- }
- }
-snippet rdr
- ReactDOM.render(${1}, ${2})
-snippet ercc
- export default class ${1:ClassName} extends React.Component {
- render() {
- return (
- ${0:
}
- );
- }
- }
-snippet ctor
- constructor() {
- super();
- ${1}
- }
-snippet ren
- render() {
- return (
- ${1:
}
- );
- }
-snippet sst
- this.setState({
- ${1}: ${2}
- });
-snippet scu
- shouldComponentUpdate(nextProps, nextState) {
- ${1}
- }
-snippet prp i
- this.props.${1}
-snippet ste i
- this.state.${1}
diff --git a/vim/snippets/vim-snippets/snippets/javascript/javascript-requirejs.snippets b/vim/snippets/vim-snippets/snippets/javascript/javascript-requirejs.snippets
deleted file mode 100644
index 8e72ada..0000000
--- a/vim/snippets/vim-snippets/snippets/javascript/javascript-requirejs.snippets
+++ /dev/null
@@ -1,14 +0,0 @@
-snippet def
- define(["${1:#dependencies1}"], function (${2:#dependencies2}) {
- return ${0:TARGET};
- });
-
-snippet defn
- define("${1:#name}", ["${2:#dependencies1}"], function (${3:#dependencies2}) {
- return ${0:TARGET};
- });
-
-snippet reqjs
- require(["${1:#dependencies1}"], function (${2:#dependencies2}) {
- return ${0:TARGET};
- });
diff --git a/vim/snippets/vim-snippets/snippets/javascript/javascript.es6.snippets b/vim/snippets/vim-snippets/snippets/javascript/javascript.es6.snippets
deleted file mode 100644
index 7e885e6..0000000
--- a/vim/snippets/vim-snippets/snippets/javascript/javascript.es6.snippets
+++ /dev/null
@@ -1,55 +0,0 @@
-snippet const
- const ${1} = ${0};
-snippet let
- let ${1} = ${0};
-snippet im "import xyz from 'xyz'"
- import ${1} from '${2:$1}';
-snippet imas "import * as xyz from 'xyz'"
- import * as ${1} from '${2:$1}';
-snippet imm "import { member } from 'xyz'"
- import { ${1} } from '${2}';
-snippet cla
- class ${1} {
- ${0:${VISUAL}}
- }
-snippet clax
- class ${1} extends ${2} {
- ${0:${VISUAL}}
- }
-snippet clac
- class ${1} {
- constructor(${2}) {
- ${0:${VISUAL}}
- }
- }
-snippet foro "for (const prop of object}) { ... }"
- for (const ${1:prop} of ${2:object}) {
- ${0:$1}
- }
-# Generator
-snippet fun*
- function* ${1:function_name}(${2}) {
- ${0:${VISUAL}}
- }
-snippet c=>
- const ${1:function_name} = (${2}) => {
- ${0:${VISUAL}}
- }
-snippet caf
- const ${1:function_name} = (${2}) => {
- ${0:${VISUAL}}
- }
-snippet =>
- (${1}) => {
- ${0:${VISUAL}}
- }
-snippet af
- (${1}) => {
- ${0:${VISUAL}}
- }
-snippet sym
- const ${1} = Symbol('${0}');
-snippet ed
- export default ${0}
-snippet ${
- ${${1}}${0}
diff --git a/vim/snippets/vim-snippets/snippets/javascript/javascript.node.snippets b/vim/snippets/vim-snippets/snippets/javascript/javascript.node.snippets
deleted file mode 100644
index 489e0ab..0000000
--- a/vim/snippets/vim-snippets/snippets/javascript/javascript.node.snippets
+++ /dev/null
@@ -1,51 +0,0 @@
-snippet #!
- #!/usr/bin/env node
-# module exports
-snippet ex
- module.exports = ${1};
-# require
-snippet re
- ${1:const} ${2} = require('${3:module_name}');
-# EventEmitter
-snippet on
- on('${1:event_name}', function(${2:stream}) {
- ${3}
- });
-snippet emit
- emit('${1:event_name}', ${2:args});
-snippet once
- once('${1:event_name}', function(${2:stream}) {
- ${3}
- });
-# http. User js function snippet as handler
-snippet http
- http.createServer(${1:handler}).listen(${2:port_number});
-# net
-snippet net
- net.createServer(function(${1:socket}){
- ${1}.on('data', function('data'){
- ${2}
- ]});
- ${1}.on('end', function(){
- ${3}
- });
- }).listen(${4:8124});
-# Stream snippets
-snippet pipe
- pipe(${1:stream})${2}
-# Express snippets
-snippet eget
- ${1:app}.get('${2:route}', ${3:handler});
-snippet epost
- ${1:app}.post('${2:route}', ${3:handler});
-snippet eput
- ${1:app}.put('${2:route}', ${3:handler});
-snippet edel
- ${1:app}.delete('${2:route}', ${3:handler});
-# process snippets
-snippet stdin
- process.stdin
-snippet stdout
- process.stdout
-snippet stderr
- process.stderr
diff --git a/vim/snippets/vim-snippets/snippets/javascript/javascript.snippets b/vim/snippets/vim-snippets/snippets/javascript/javascript.snippets
deleted file mode 100644
index df0669b..0000000
--- a/vim/snippets/vim-snippets/snippets/javascript/javascript.snippets
+++ /dev/null
@@ -1,281 +0,0 @@
-# Functions
-# prototype
-snippet proto
- ${1:class_name}.prototype.${2:method_name} = function(${3}) {
- ${0:${VISUAL}}
- };
-# Function
-snippet fun
- function ${1:function_name}(${2}) {
- ${0:${VISUAL}}
- }
-# Anonymous Function
-snippet f "" w
- function(${1}) {
- ${0:${VISUAL}}
- }
-# Anonymous Function assigned to variable
-snippet vaf
- var ${1:function_name} = function(${2}) {
- ${0:${VISUAL}}
- };
-# Function assigned to variable
-snippet vf
- var ${1:function_name} = function $1(${2}) {
- ${0:${VISUAL}}
- };
-# Immediate function
-snippet (f
- (function(${1}) {
- ${0:${VISUAL}}
- }(${2}));
-# Minify safe iife
-snippet ;fe
- ;(function(${1}) {
- ${0:${VISUAL}}
- }(${2}))
-# self-defining function
-snippet sdf
- var ${1:function_name} = function (${2:argument}) {
- ${3}
-
- $1 = function ($2) {
- ${0:${VISUAL}}
- };
- };
-# Flow control
-# if
-snippet if "if (condition) { ... }"
- if (${1:true}) {
- ${0:${VISUAL}}
- }
-# if ... else
-snippet ife "if (condition) { ... } else { ... }"
- if (${1:true}) {
- ${0:${VISUAL}}
- } else {
- ${2}
- }
-# tertiary conditional
-snippet ter
- ${1:/* condition */} ? ${2:/* if true */} : ${0:/* if false */}
-# switch
-snippet switch
- switch (${1:expression}) {
- case '${3:case}':
- ${4}
- break;
- ${0}
- default:
- ${2}
- }
-snippet case "case 'xyz': ... break"
- case '${1:case}':
- ${0:${VISUAL}}
- break;
-snippet try "try { ... } catch(e) { ... }"
- try {
- ${0:${VISUAL}}
- } catch (${1:e}) {
- ${2:/* handle error */}
- }
-snippet tryf "try { ... } catch(e) { ... } finally { ... }"
- try {
- ${0:${VISUAL}}
- } catch (${1:e}) {
- ${2:/* handle error */}
- } finally {
- ${3:/* be executed regardless of the try / catch result*/}
- }
-# throw Error
-snippet terr
- throw new Error('${1:error message}')
-# return
-snippet ret
- return ${0:result};
-snippet for "for (...) {...}"
- for (var ${1:i} = 0, ${2:len} = ${3:Things.length}; $1 < $2; $1++) {
- ${0:${VISUAL}}
- }
-snippet forr "reversed for (...) {...}"
- for (var ${2:i} = ${1:Things.length} - 1; $2 >= 0; $2--) {
- ${0:${VISUAL}}
- }
-snippet wh "(condition) { ... }"
- while (${1:/* condition */}) {
- ${0:${VISUAL}}
- }
-snippet do "do { ... } while (condition)"
- do {
- ${0:${VISUAL}}
- } while (${1:/* condition */});
-# For in loop
-snippet fori
- for (var ${1:prop} in ${2:object}) {
- ${0:$2[$1]}
- }
-# Objects
-# Object Method
-snippet :f
- ${1:method_name}: function (${2:attribute}) {
- ${0:${VISUAL}}
- },
-# hasOwnProperty
-snippet has
- hasOwnProperty(${0})
-# singleton
-snippet sing
- function ${1:Singleton} (${2:argument}) {
- // the cached instance
- var instance;
-
- // rewrite the constructor
- $1 = function $1($2) {
- return instance;
- };
-
- // carry over the prototype properties
- $1.prototype = this;
-
- // the instance
- instance = new $1();
-
- // reset the constructor pointer
- instance.constructor = $1;
-
- ${0}
-
- return instance;
- }
-# Crockford's object function
-snippet obj
- function object(o) {
- function F() {}
- F.prototype = o;
- return new F();
- }
-# Define multiple properties
-snippet props
- var ${1:my_object} = Object.defineProperties(
- ${2:new Object()},
- {
- ${3:property} : {
- get : function $1_$3_getter() {
- // getter code
- },
- set : function $1_$3_setter(value) {
- // setter code
- },
- value : ${4:value},
- writeable : ${5:boolean},
- enumerable : ${6:boolean},
- configurable : ${0:boolean}
- }
- }
- );
-# Define single property
-snippet prop
- Object.defineProperty(
- ${1:object},
- '${2:property}',
- {
- get : function $1_$2_getter() {
- // getter code
- },
- set : function $1_$2_setter(value) {
- // setter code
- },
- value : ${3:value},
- writeable : ${4:boolean},
- enumerable : ${5:boolean},
- configurable : ${0:boolean}
- }
- );
-# Documentation
-# docstring
-snippet /**
- /**
- * ${0:description}
- *
- */
-snippet @par
- @param {${1:type}} ${2:name} ${0:description}
-snippet @ret
- @return {${1:type}} ${0:description}
-# JSON
-
-# JSON.parse
-snippet jsonp
- JSON.parse(${0:jstr});
-# JSON.stringify
-snippet jsons
- JSON.stringify(${0:object});
-# DOM selectors
-# Get elements
-snippet get
- getElementsBy${1:TagName}('${0}')
-# Get element
-snippet gett
- getElementBy${1:Id}('${0}')
-# Elements by class
-snippet by.
- ${1:document}.getElementsByClassName('${0:class}')
-# Element by ID
-snippet by#
- ${1:document}.getElementById('${0:element ID}')
-# Query selector
-snippet qs
- ${1:document}.querySelector('${0:CSS selector}')
-# Query selector all
-snippet qsa
- ${1:document}.querySelectorAll('${0:CSS selector}')
-# Debugging
-snippet de
- debugger;
-snippet cl "console.log"
- console.log(${0});
-snippet cd "console.debug"
- console.debug(${0});
-snippet ce "console.error"
- console.error(${0});
-snippet cw "console.warn"
- console.warn(${0});
-snippet ci "console.info"
- console.info(${0});
-snippet ct "console.trace"
- console.trace(${0:label});
-snippet ctime "console.time ... console.timeEnd"
- console.time("${1:label}");
- ${0:${VISUAL}}
- console.timeEnd("$1");
-snippet ctimestamp "console.timeStamp"
- console.timeStamp("${1:label}");
-snippet ca "console.assert"
- console.assert(${1:expression}, ${0:obj});
-snippet cclear "console.clear"
- console.clear();
-snippet cdir "console.dir"
- console.dir(${0:obj});
-snippet cdirx "console.dirxml"
- console.dirxml(${1:object});
-snippet cgroup "console.group"
- console.group("${1:label}");
- ${0:${VISUAL}}
- console.groupEnd();
-snippet cgroupc "console.groupCollapsed"
- console.groupCollapsed("${1:label}");
- ${0:${VISUAL}}
- console.groupEnd();
-snippet cprof "console.profile"
- console.profile("${1:label}");
- ${0:${VISUAL}}
- console.profileEnd();
-snippet ctable "console.table"
- console.table(${1:"${2:value}"});
-# Misc
-# 'use strict';
-snippet us
- 'use strict';
-# setTimeout function
-snippet timeout
- setTimeout(function () {${0}}${2}, ${1:10});
diff --git a/vim/snippets/vim-snippets/snippets/jinja.snippets b/vim/snippets/vim-snippets/snippets/jinja.snippets
deleted file mode 100644
index a6f274a..0000000
--- a/vim/snippets/vim-snippets/snippets/jinja.snippets
+++ /dev/null
@@ -1,142 +0,0 @@
-# Generic tags
-
-extends html
-
-snippet %
- {% ${1} %}
-snippet %%
- {% ${1:tag_name} %}
- ${0}
- {% end$1 %}
-snippet {
- {{ ${1} }}
-# Template Tags
-
-snippet autoescape
- {% autoescape ${1:off} %}
- ${0}
- {% endautoescape %}
-snippet block
- {% block ${1} %}
- ${0}
- {% endblock %}
-snippet #
- {# ${0:comment} #}
-snippet comment
- {% comment %}
- ${0}
- {% endcomment %}
-snippet cycle
- {% cycle ${1:val1} ${2:val2} ${3:as ${4}} %}
-snippet debug
- {% debug %}
-snippet extends
- {% extends "${0:base.html}" %}
-snippet filter
- {% filter ${1} %}
- ${0}
- {% endfilter %}
-snippet firstof
- {% firstof ${1} %}
-snippet for
- {% for ${1} in ${2} %}
- ${0}
- {% endfor %}
-snippet empty
- {% empty %}
- ${0}
-snippet if
- {% if ${1} %}
- ${0}
- {% endif %}
-snippet el
- {% else %}
- ${1}
-snippet eif
- {% elif ${1} %}
- ${0}
-snippet ifchanged
- {% ifchanged %}${1}{% endifchanged %}
-snippet ifequal
- {% ifequal ${1} ${2} %}
- ${0}
- {% endifequal %}
-snippet ifnotequal
- {% ifnotequal ${1} ${2} %}
- ${0}
- {% endifnotequal %}
-snippet include
- {% include "${0}" %}
-snippet load
- {% load ${0} %}
-snippet now
- {% now "${0:jS F Y H:i}" %}
-snippet regroup
- {% regroup ${1} by ${2} as ${0} %}
-snippet spaceless
- {% spaceless %}${0}{% endspaceless %}
-snippet ssi
- {% ssi ${0} %}
-snippet trans
- {% trans %}${0}{% endtrans %}
-snippet url
- {% url ${1} as ${0} %}
-snippet widthratio
- {% widthratio ${1:this_value} ${2:max_value} ${0:100} %}
-snippet with
- {% with ${1} as ${2} %}
- ${0}
- {% endwith %}
-
-# Template Filters
-
-# Note: Since SnipMate can't determine which template filter you are
-# expanding without the "|" character, these do not add the "|"
-# character. These save a few keystrokes still.
-
-# Note: Template tags that take no arguments are not implemented.
-
-snippet add
- add:"${0}"
-snippet center
- center:"${0}"
-snippet cut
- cut:"${0}"
-snippet date
- date:"${0}"
-snippet default
- default:"${0}"
-snippet defaultifnone
- default_if_none:"${0}"
-snippet dictsort
- dictsort:"${0}"
-snippet dictsortrev
- dictsortreversed:"${0}"
-snippet divisibleby
- divisibleby:"${0}"
-snippet floatformat
- floatformat:"${0}"
-snippet getdigit
- get_digit:"${0}"
-snippet join
- join:"${0}"
-snippet lengthis
- length_is:"${0}"
-snippet pluralize
- pluralize:"${0}"
-snippet removetags
- removetags:"${0}"
-snippet slice
- slice:"${0}"
-snippet stringformat
- stringformat:"${0}"
-snippet time
- time:"${0}"
-snippet truncatewords
- truncatewords:${0}
-snippet truncatewordshtml
- truncatewords_html:${0}
-snippet urlizetrunc
- urlizetrunc:${0}
-snippet wordwrap
- wordwrap:${0}
diff --git a/vim/snippets/vim-snippets/snippets/jsp.snippets b/vim/snippets/vim-snippets/snippets/jsp.snippets
deleted file mode 100644
index db185b2..0000000
--- a/vim/snippets/vim-snippets/snippets/jsp.snippets
+++ /dev/null
@@ -1,99 +0,0 @@
-snippet @page
- <%@page contentType="text/html" pageEncoding="UTF-8"%>
-snippet jstl
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
-snippet jstl:c
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
-snippet jstl:fn
- <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
-snippet cpath
- ${pageContext.request.contextPath}
-snippet cout
-
-snippet cset
-
-snippet cremove
-
-snippet ccatch
-
-snippet cif
-
- ${0}
-
-snippet cchoose
-
- ${0}
-
-snippet cwhen
-
- ${0}
-
-snippet cother
-
- ${0}
-
-snippet cfore
-
- ${0: }
-
-snippet cfort
- ${2:item1,item2,item3}
-
- ${0: }
-
-snippet cparam
-
-snippet cparam+
-
- cparam+${0}
-snippet cimport
-
-snippet cimport+
-
-
- cparam+${0}
-
-snippet curl
-
- ${0}
-snippet curl+
-
-
- cparam+${0}
-
- ${3}
-snippet credirect
-
-snippet contains
- ${fn:contains(${1:string}, ${0:substr})}
-snippet contains:i
- ${fn:containsIgnoreCase(${1:string}, ${0:substr})}
-snippet endswith
- ${fn:endsWith(${1:string}, ${0:suffix})}
-snippet escape
- ${fn:escapeXml(${0:string})}
-snippet indexof
- ${fn:indexOf(${1:string}, ${0:substr})}
-snippet join
- ${fn:join(${1:collection}, ${0:delims})}
-snippet length
- ${fn:length(${0:collection_or_string})}
-snippet replace
- ${fn:replace(${1:string}, ${2:substr}, ${0:replace})}
-snippet split
- ${fn:split(${1:string}, ${0:delims})}
-snippet startswith
- ${fn:startsWith(${1:string}, ${0:prefix})}
-snippet substr
- ${fn:substring(${1:string}, ${2:begin}, ${0:end})}
-snippet substr:a
- ${fn:substringAfter(${1:string}, ${0:substr})}
-snippet substr:b
- ${fn:substringBefore(${1:string}, ${0:substr})}
-snippet lc
- ${fn:toLowerCase(${0:string})}
-snippet uc
- ${fn:toUpperCase(${0:string})}
-snippet trim
- ${fn:trim(${0:string})}
diff --git a/vim/snippets/vim-snippets/snippets/julia.snippets b/vim/snippets/vim-snippets/snippets/julia.snippets
deleted file mode 100644
index 490d050..0000000
--- a/vim/snippets/vim-snippets/snippets/julia.snippets
+++ /dev/null
@@ -1,102 +0,0 @@
-snippet #!
- #!/usr/bin/env julia
-
-# Functions
-snippet fun function definition
- function ${1}(${2})
- ${0}
- end
-
-snippet ret return
- return(${0})
-
-# Printing to console
-snippet pr print
- print("${1}")
- ${0}
-
-snippet prl print line
- println("${1}")
- ${0}
-
-# Includes
-snippet use load a package
- using ${0}
-
-snippet incl include source code
- include("${1}")
- ${0}
-
-# Loops
-snippet forc for loop iterating over iterable container
- for ${1} in ${2}
- ${0}
- end
-
-snippet for standard for loop
- for ${1} = ${2}
- ${0}
- end
-
-snippet fornest nested for loop
- for ${1} = ${2}, ${3} = ${4}
- ${0}
- end
-
-snippet wh while loop
- while ${1} ${2:<=} ${3}
- ${0}
- end
-
-# Conditionals
-snippet if if statement
- if ${1}
- ${0}
- end
-
-snippet el else part of statement
- else
- ${0}
-
-snippet eif else if part of if statement
- else if ${1}
- ${0}
-
-snippet ife full if-else statement
- if ${1}
- ${2}
- else
- ${0}
- end
-
-snippet tern ternary operator
- ${1} ? ${2} : ${3:nothing}
-
-# Exceptions
-snippet try try catch
- try
- ${1:${VISUAL}}
- catch ${2}
- ${0}
- end
-
-snippet fin finally statement
- finally
- ${0}
-
-snippet thr throw
- throw(${1})
- ${0}
-
-# Messages
-snippet in
- info("${1}")
- ${0}
-
-snippet wa
- warn("${1}")
- ${0}
-
-snippet err
- error("${1}")
- ${0}
diff --git a/vim/snippets/vim-snippets/snippets/laravel.snippets b/vim/snippets/vim-snippets/snippets/laravel.snippets
deleted file mode 100644
index e7435e3..0000000
--- a/vim/snippets/vim-snippets/snippets/laravel.snippets
+++ /dev/null
@@ -1,242 +0,0 @@
-#resource controller
-snippet l_rsc
- /*!
- * \class $1
- *
- * \author ${3:`!v g:snips_author`}
- * \date `!v strftime('%d-%m-%y')`
- */
-
- class ${1:`!v expand('%:t:r')`} extends ${2:BaseController} {
- function __construct() {
- }
-
- public function index() {
- }
-
- public function create() {
- }
-
- public function store() {
- }
-
- public function show($id) {
- }
-
- public function edit($id) {
- }
-
- public function update($id) {
- }
-
- public function destroy($id) {
- }
- }
-#service service provider
-snippet l_ssp
- /*!
- * \namespace $1
- * \class $2
- *
- * \author ${3:`!v g:snips_author`}
- * \date `!v strftime('%d-%m-%y')`
- */
-
- namespace ${1:Services};
-
- use Illuminate\Support\ServiceProvider;
-
- class ${2:`!v expand('%:t:r')`} extends ServiceProvider {
-
- public function register() {
- $this->app->bind('${4}Service', function ($app) {
- return new ${5}(
- $app->make('Repositories\\${6}Interface')
- );
- });
- }
- }
-#repository service provider
-snippet l_rsp
- /*!
- * \namespace $2
- * \class $3
- *
- * \author ${4:`!v g:snips_author`}
- * \date `!v strftime('%d-%m-%y')`
- */
-
- namespace ${2:Repositories\\${1:}};
-
- use Entities\\$1;
- use $2\\$1Repository;
- use Illuminate\Support\ServiceProvider;
-
- class ${3:`!v expand('%:t:r')`} extends ServiceProvider {
- /*!
- * \var defer
- * \brief Defer service
- */
- protected $defer = ${5:true};
-
- public function register() {
- $this->app->bind('$2\\$1Interface', function($app) {
- return new $1Repository(new $1());
- });
- }
-
- /*!
- * \brief If $defer == true need this fn
- */
- public function provides() {
- return ['$2\\$1Interface'];
- }
- }
-#model
-snippet l_md
- /*!
- * \namespace $1
- * \class $2
- *
- * \author ${3:`!v g:snips_author`}
- * \date `!v strftime('%d-%m-%y')`
- */
-
- namespace ${1:Entities};
-
- class ${2:`!v expand('%:t:r')`} extends \Eloquent {
- protected $table = '${4:`!p snip.rv = t[2].lower()`}';
-
- public $timestamps = ${5:false};
-
- protected $hidden = array(${6});
-
- protected $guarded = array(${7:'id'});
- }
-#abstract repository
-snippet l_ar
- /*!
- * \namespace $1
- * \class $2
- * \implements $3
- *
- * \author ${4:`!v g:snips_author`}
- * \date `!v strftime('%d-%m-%y')`
- */
-
- namespace ${1:Repositories};
-
- use Illuminate\Database\Eloquent\Model;
-
- abstract class ${2:`!v expand('%:t:r')`} implements ${3:BaseRepositoryInterface} {
- protected $model;
-
- /*!
- * \fn __construct
- *
- * \brief Take the model
- */
-
- public function __construct(Model $model) {
- $this->model = $model;
- }
-
- /*!
- * \fn all
- *
- * \return Illuminate\Database\Eloquent\Collection
- */
- public function all($columns = array('*')) {
- return $this->model->all()->toArray();
- }
-
- /*!
- * \fn create
- *
- * \return Illuminate\Database\Eloquent\Model
- */
- public function create(array $attributes) {
- return $this->model->create($attributes);
- }
-
- /*!
- * \fn destroy
- *
- * \return int
- */
- public function destroy($ids) {
- return $this->model->destroy($ids);
- }
-
- /*!
- * \fn find
- *
- * \return mixed
- */
- public function find($id, $columns = array('*')) {
- return $this->model->find($id, $columns);
- }
- }
-
-#repository
-snippet l_r
- /*!
- * \namespace $1
- * \class $3
- * \implements $4
- *
- * \author ${5:`!v g:snips_author`}
- * \date `!v strftime('%d-%m-%y')`
- */
-
- namespace ${1:Repositories\\${2}};
-
- class ${3:`!v expand('%:t:r')`} extends \\${6} implements ${4:$3RepositoryInterface} {
- ${7}
- }
-#service
-snippet l_s
- /*!
- * \namespace $1
- * \class $2
- *
- * \author ${6:`!v g:snips_author`}
- * \date `!v strftime('%d-%m-%y')`
- */
-
- namespace Services\\${1};
-
- use ${3:Repositories\\${4:Interface}};
-
- class ${2:`!v expand('%:t:r')`} {
- protected $${5:repo};
-
- /*!
- * \fn __construct
- */
- public function __construct($4 $repo) {
- $this->$5 = $repo;
- }
- }
-#facade
-snippet l_f
- /*!
- * \namespace $1
- * \class $2
- *
- * \author ${5:`!v g:snips_author`}
- * \date `!v strftime('%d-%m-%y')`
- */
-
- namespace ${1:Services};
-
- use \Illuminate\Support\Facades\Facade;
-
- class ${2:`!v expand('%:t:r')`} extends Facade {
- /*!
- * \fn getFacadeAccessor
- *
- * \return string
- */
- protected static function getFacadeAccessor() { return '${4:${3}Service}'; }
- }
diff --git a/vim/snippets/vim-snippets/snippets/ledger.snippets b/vim/snippets/vim-snippets/snippets/ledger.snippets
deleted file mode 100644
index b401f61..0000000
--- a/vim/snippets/vim-snippets/snippets/ledger.snippets
+++ /dev/null
@@ -1,5 +0,0 @@
-# Ledger
-snippet ent
- `strftime("%Y/%m/%d")` ${1:transaction}
- ${2:account} ${3:value}
- ${0:account}
diff --git a/vim/snippets/vim-snippets/snippets/lfe.snippets b/vim/snippets/vim-snippets/snippets/lfe.snippets
deleted file mode 100644
index b716e6e..0000000
--- a/vim/snippets/vim-snippets/snippets/lfe.snippets
+++ /dev/null
@@ -1,18 +0,0 @@
-snippet defmo
- (defmodule ${1:`vim_snippets#Filename()`}
- (export ${2:all}))
- $0
-snippet def
- (defun $1 ($2)
- $0)
-snippet ltest
- (defmodule ${1:`vim_snippets#Filename()`}
- (behaviour ltest-unit)
- (export all))
-
- (include-lib "ltest/include/ltest-macros.lfe")
-
- $0
-snippet test
- (deftest $1
- $0)
diff --git a/vim/snippets/vim-snippets/snippets/ls.snippets b/vim/snippets/vim-snippets/snippets/ls.snippets
deleted file mode 100644
index 7c924e6..0000000
--- a/vim/snippets/vim-snippets/snippets/ls.snippets
+++ /dev/null
@@ -1,108 +0,0 @@
-# Closure loop
-snippet forinlet
- for ${1:name} in ${2:array}
- let $1
- ${3}
-# Array comprehension
-snippet fora
- for ${1:name} in ${2:array}
- ${3}
-# Object comprehension
-snippet foro
- for ${1:key}, ${2:value} of ${3:object}
- ${4}
-# Range comprehension (inclusive)
-snippet forr
- for ${1:name} from ${2:start} to ${3:finish}
- ${4}
-snippet forrb
- for ${1:name} from ${2:start} to ${3:finish} by ${4:step}
- ${5}
-# Range comprehension (exclusive)
-snippet forrex
- for ${1:name} from ${2:start} til ${3:finish}
- ${4}
-snippet forrexb
- for ${1:name} from ${2:start} til ${3:finish} by ${4:step}
- ${5}
-# Function
-snippet fun
- (${1:args}) ->
- ${2}
-# Function (bound)
-snippet bfun
- (${1:args}) ~>
- ${2}
-# Class
-snippet cla class ..
- class ${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
- ${2}
-snippet cla class .. constructor: ..
- class ${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
- (${2:args}) ->
- ${3}
-
- ${4}
-snippet cla class .. extends ..
- class ${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} extends ${2:ParentClass}
- ${3}
-snippet cla class .. extends .. constructor: ..
- class ${1:`substitute(Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} extends ${2:ParentClass}
- (${3:args}) ->
- ${4}
-
- ${5}
-# If
-snippet if
- if ${1:condition}
- ${2}
-# If __ Else
-snippet ife
- if ${1:condition}
- ${2}
- else
- ${3}
-# Else if
-snippet elif
- else if ${1:condition}
- ${2}
-# Ternary If
-snippet ifte
- if ${1:condition} then ${2:value} else ${3:other}
-# Unless
-snippet unl
- ${1:action} unless ${2:condition}
-# Switch
-snippet swi
- switch ${1:object}
- case ${2:value}
- ${3}
- default void
-snippet mat
- match ${1:object}
- | ${2:value} => ${3}
- | otherwise => void
-
-# Log
-snippet log
- console.log ${1}
-# stringify
-snippet str
- JSON.stringify ${1}, void, 2
-
-# Try __ Catch
-snippet try
- try
- ${1:${VISUAL}}
- catch ${2:error}
- ${3}
-# Require
-snippet req
- ${2:$1} = require '${1}'${3}
-# Require!
-snippet req!
- require! ${1}
-
-# Export
-snippet exp
- ${1:root} = exports ? this
diff --git a/vim/snippets/vim-snippets/snippets/lua.snippets b/vim/snippets/vim-snippets/snippets/lua.snippets
deleted file mode 100644
index b7de2de..0000000
--- a/vim/snippets/vim-snippets/snippets/lua.snippets
+++ /dev/null
@@ -1,21 +0,0 @@
-snippet #!
- #!/usr/bin/env lua
- $1
-snippet local
- local ${1:x} = ${0:1}
-snippet fun
- function ${1:fname}(${2:...})
- ${0:-- body}
- end
-snippet for
- for ${1:i}=${2:1},${3:10} do
- ${0:print(i)}
- end
-snippet forp
- for ${1:i},${2:v} in pairs(${3:table_name}) do
- ${0:-- body}
- end
-snippet fori
- for ${1:i},${2:v} in ipairs(${3:table_name}) do
- ${0:-- body}
- end
diff --git a/vim/snippets/vim-snippets/snippets/make.snippets b/vim/snippets/vim-snippets/snippets/make.snippets
deleted file mode 100644
index 9104804..0000000
--- a/vim/snippets/vim-snippets/snippets/make.snippets
+++ /dev/null
@@ -1,50 +0,0 @@
-# base
-snippet base
- .PHONY: clean, mrproper
- CC = gcc
- CFLAGS = -g -Wall
-
- all: $1
-
- %.o: %.c
- $(CC) $(CFLAGS) -c -o $@ $<
-
- ${1:out}: $1.o
- $(CC) $(CFLAGS) -o $@ $+
-
- clean:
- rm -f *.o core.*
-
- mrproper: clean
- rm -f $1
-# add
-snippet add
- ${1:out}: $1.o
- $(CC) $(CFLAGS) -o $@ $+
-# print
-snippet print
- print-%: ; @echo $*=$($*)
-# ifeq
-snippet if
- ifeq (${1:cond0}, ${2:cond1})
- ${0:${VISUAL}}
- endif
-# ifeq ... else ... endif
-snippet ife
- ifeq (${1:cond0}, ${2:cond1})
- ${3:${VISUAL}}
- else
- ${0}
- endif
-# else ...
-snippet el
- else
- ${0:${VISUAL}}
-# .DEFAULT_GOAL := target
-snippet default
- .DEFAULT_GOAL := ${1}
-# help target for self-documented Makefile
-snippet help
- help: ## Prints help for targets with comments
- @cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $\$1, $\$2}'
- ${0}
diff --git a/vim/snippets/vim-snippets/snippets/mako.snippets b/vim/snippets/vim-snippets/snippets/mako.snippets
deleted file mode 100644
index 659caf7..0000000
--- a/vim/snippets/vim-snippets/snippets/mako.snippets
+++ /dev/null
@@ -1,54 +0,0 @@
-snippet def
- <%def name="${1:name}">
- ${0:}
- %def>
-snippet call
- <%call expr="${1:name}">
- ${0:}
- %call>
-snippet doc
- <%doc>
- ${0:}
- %doc>
-snippet text
- <%text>
- ${0:}
- %text>
-snippet for
- % for ${1:i} in ${2:iter}:
- ${0:}
- % endfor
-snippet if if
- % if ${1:condition}:
- ${0:}
- % endif
-snippet ife if/else
- % if ${1:condition}:
- ${2:}
- % else:
- ${0:}
- % endif
-snippet try
- % try:
- ${1:${VISUAL}}
- % except${2:}:
- ${0:pass}
- % endtry
-snippet wh
- % while ${1:}:
- ${0:}
- % endwhile
-snippet $
- ${ ${0:} }
-snippet <%
- <% ${0:} %>
-snippet
-snippet inherit
- <%inherit file="${0:filename}" />
-snippet include
- <%include file="${0:filename}" />
-snippet namespace
- <%namespace file="${0:name}" />
-snippet page
- <%page args="${0:}" />
diff --git a/vim/snippets/vim-snippets/snippets/markdown.snippets b/vim/snippets/vim-snippets/snippets/markdown.snippets
deleted file mode 100644
index f8000b4..0000000
--- a/vim/snippets/vim-snippets/snippets/markdown.snippets
+++ /dev/null
@@ -1,138 +0,0 @@
-# Markdown
-
-# Includes octopress (http://octopress.org/) snippets
-
-# The suffix `c` stands for "Clipboard".
-
-snippet [
- [${1:text}](http://${2:address})
-snippet [*
- [${1:link}](${2:`@*`})
-snippet [c
- [${1:link}](${2:`@+`})
-snippet ["
- [${1:text}](http://${2:address} "${3:title}")
-snippet ["*
- [${1:link}](${2:`@*`} "${3:title}")
-snippet ["c
- [${1:link}](${2:`@+`} "${3:title}")
-snippet [:
- [${1:id}]: http://${2:url}
-
-snippet [:*
- [${1:id}]: ${2:`@*`}
-
-snippet [:c
- [${1:id}]: ${2:`@+`}
-
-snippet [:"
- [${1:id}]: http://${2:url} "${3:title}"
-
-snippet [:"*
- [${1:id}]: ${2:`@*`} "${3:title}"
-
-snippet [:"c
- [${1:id}]: ${2:`@+`} "${3:title}"
-
-snippet ![
- ![${1:alttext}](${2:/images/image.jpg})
-snippet ![*
- ![${1:alt}](${2:`@*`})
-snippet ![c
- ![${1:alt}](${2:`@+`})
-snippet !["
- ![${1:alttext}](${2:/images/image.jpg} "${3:title}")
-snippet !["*
- ![${1:alt}](${2:`@*`} "${3:title}")
-snippet !["c
- ![${1:alt}](${2:`@+`} "${3:title}")
-snippet ![:
- ![${1:id}]: ${2:url}
-
-snippet ![:*
- ![${1:id}]: ${2:`@*`}
-
-snippet ![:"
- ![${1:id}]: ${2:url} "${3:title}"
-
-snippet ![:"*
- ![${1:id}]: ${2:`@*`} "${3:title}"
-
-snippet ![:"c
- ![${1:id}]: ${2:`@+`} "${3:title}"
-
-snippet <
-
-snippet <*
- <`@*`>
-snippet
-snippet **
- **${1:bold}**
-snippet __
- __${1:bold}__
-snippet ===
- `repeat('=', strlen(getline(line('.') - 3)))`
-
- ${0}
-snippet -
- - ${0}
-snippet ---
- `repeat('-', strlen(getline(line('.') - 3)))`
-
- ${0}
-snippet blockquote
- {% blockquote %}
- ${0:quote}
- {% endblockquote %}
-
-snippet blockquote-author
- {% blockquote ${1:author}, ${2:title} %}
- ${0:quote}
- {% endblockquote %}
-
-snippet blockquote-link
- {% blockquote ${1:author} ${2:URL} ${3:link_text} %}
- ${0:quote}
- {% endblockquote %}
-
-snippet ```
- \`\`\`
- ${1:code}
- \`\`\`
-
-# Language.
-snippet ```l
- \`\`\`${1:language}
- ${2:code}
- \`\`\`
-
-snippet codeblock-short
- {% codeblock %}
- ${0:code_snippet}
- {% endcodeblock %}
-
-snippet codeblock-full
- {% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %}
- ${0:code_snippet}
- {% endcodeblock %}
-
-snippet gist-full
- {% gist ${1:gist_id} ${0:filename} %}
-
-snippet gist-short
- {% gist ${0:gist_id} %}
-
-snippet img
- {% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${0:alt_text} %}
-
-snippet youtube
- {% youtube ${0:video_id} %}
-
-# The quote should appear only once in the text. It is inherently part of it.
-# See http://octopress.org/docs/plugins/pullquote/ for more info.
-
-snippet pullquote
- {% pullquote %}
- ${1:text} {" ${2:quote} "} ${0:text}
- {% endpullquote %}
diff --git a/vim/snippets/vim-snippets/snippets/matlab.snippets b/vim/snippets/vim-snippets/snippets/matlab.snippets
deleted file mode 100755
index 19b6fe8..0000000
--- a/vim/snippets/vim-snippets/snippets/matlab.snippets
+++ /dev/null
@@ -1,64 +0,0 @@
-snippet if if
- if ${1}
- ${0}
- end
-
-snippet ife if ... else
- if ${1}
- ${2}
- else
- ${0}
- end
-
-snippet el else
- else
- ${0}
-
-snippet eif elsif
- elseif ${1}
- ${0}
-
-snippet wh while
- while ${1}
- ${0}
- end
-
-snippet for for
- for ${1:i} = ${2:1:n}
- ${0}
- end
-
-snippet parfor parfor
- parfor ${1:i} = ${2:1:n}
- ${0}
- end
-
-snippet fun function
- function [${3:out}] = ${1:`vim_snippets#Filename("$1", "fun_name")`}(${2})
- ${0}
-
-snippet try try ... catch
- try
- ${1}
- catch ${2:err}
- ${0}
- end
-
-snippet switch switch
- switch ${1:n}
- case ${2:0}
- ${0}
- end
-
-snippet @ anonymous function
- @(${1:x}) ${0:x*x}
-
-snippet cl class
- classdef ${1:`vim_snippets#Filename("$1", "class_name")`}
- properties
- ${2}
- end
- methods
- ${0}
- end
- end
diff --git a/vim/snippets/vim-snippets/snippets/mustache.snippets b/vim/snippets/vim-snippets/snippets/mustache.snippets
deleted file mode 100644
index cf58940..0000000
--- a/vim/snippets/vim-snippets/snippets/mustache.snippets
+++ /dev/null
@@ -1,15 +0,0 @@
-snippet if # {{#value}} ... {{/value}}
- {{#${1:value}}}
- ${0:${VISUAL}}
- {{/$1}}
-snippet ifn # {{^value}} ... {{/value}}
- {{^${1:value}}}
- ${0:${VISUAL}}
- {{/$1}}
-snippet ife # {{#value}} ... {{/value}} {{^value}} ... {{/value}}
- {{#${1:value}}}
- ${2:${VISUAL}}
- {{/$1}}
- {{^$1}}
- ${3}
- {{/$1}}
diff --git a/vim/snippets/vim-snippets/snippets/objc.snippets b/vim/snippets/vim-snippets/snippets/objc.snippets
deleted file mode 100644
index 24cfb97..0000000
--- a/vim/snippets/vim-snippets/snippets/objc.snippets
+++ /dev/null
@@ -1,247 +0,0 @@
-# #import <...>
-snippet Imp
- #import <${1:Cocoa/Cocoa.h}>
-# #import "..."
-snippet imp
- #import "${1:`vim_snippets#Filename()`.h}"
-# @selector(...)
-snippet sel
- @selector(${1:method}:)
-# @"..." string
-snippet s
- @"${1}"
-# Object
-snippet o
- ${1:NSObject} *${2:foo} = [${3:$1 alloc}]${4};
-# NSLog(...)
-snippet log
- NSLog(@"${1:%@}"${2});
-# Class
-snippet objc
- @interface ${1:`vim_snippets#Filename('', 'someClass')`} : ${2:NSObject}
- {
- }
- @end
-
- @implementation $1
- ${0}
- @end
-# Class Interface
-snippet int
- @interface ${1:`vim_snippets#Filename('', 'someClass')`} : ${2:NSObject}
- {${3}
- }
- ${0}
- @end
-snippet @interface
- @interface ${1:`vim_snippets#Filename('', 'someClass')`} : ${2:NSObject}
- {${3}
- }
- ${0}
- @end
-# Class Implementation
-snippet impl
- @implementation ${1:`vim_snippets#Filename('', 'someClass')`}
- ${0}
- @end
-snippet @implementation
- @implementation ${1:`vim_snippets#Filename('', 'someClass')`}
- ${0}
- @end
-# Protocol
-snippet pro
- @protocol ${1:`vim_snippets#Filename('$1Delegate', 'MyProtocol')`} ${2:}
- ${0}
- @end
-snippet @protocol
- @protocol ${1:`vim_snippets#Filename('$1Delegate', 'MyProtocol')`} ${2:}
- ${0}
- @end
-# init Definition
-snippet init
- - (id)init
- {
- if (self = [super init]) {
- ${0}
- }
- return self;
- }
-# dealloc Definition
-snippet dealloc
- - (void) dealloc
- {
- ${0:deallocations}
- [super dealloc];
- }
-snippet su
- [super ${1:init}]
-snippet ibo
- IBOutlet ${1:NSSomeClass} *${2:$1};
-# Category
-snippet cat
- @interface ${1:NSObject} (${2:MyCategory})
- @end
-
- @implementation $1 ($2)
- ${0}
- @end
-# Category Interface
-snippet cath
- @interface ${1:`vim_snippets#Filename('$1', 'NSObject')`} (${2:MyCategory})
- ${0}
- @end
-# Method
-snippet m
- - (${1:id})${2:method}
- {
- ${0}
- }
-# Method declaration
-snippet md
- - (${1:id})${2:method};
-# IBAction declaration
-snippet ibad
- - (IBAction)${1:method}:(${2:id})sender;
-# IBAction method
-snippet iba
- - (IBAction)${1:method}:(${2:id})sender
- {
- ${0}
- }
-# awakeFromNib method
-snippet wake
- - (void)awakeFromNib
- {
- ${0}
- }
-# Class Method
-snippet M
- + (${1:id})${2:method}
- {
- ${0:return nil;}
- }
-# Sub-method (Call super)
-snippet sm
- - (${1:id})${2:method}
- {
- [super $2];${0}
- return self;
- }
-# Accessor Methods For:
-# Object
-snippet objacc
- - (${1:id})${2:thing}
- {
- return $2;
- }
-
- - (void)set$2:($1)${3:new$2}
- {
- [$3 retain];
- [$2 release];
- $2 = $3;
- }
-# for (object in array)
-snippet forin
- for (${1:Class} *${2:some$1} in ${3:array}) {
- ${0}
- }
-snippet fore
- for (${1:object} in ${2:array}) {
- ${0:statements}
- }
-snippet forarray
- unsigned int ${1:object}Count = [${2:array} count];
-
- for (unsigned int index = 0; index < $1Count; index++) {
- ${3:id} $1 = [$2 $1AtIndex:index];
- ${0}
- }
-snippet fora
- unsigned int ${1:object}Count = [${2:array} count];
-
- for (unsigned int index = 0; index < $1Count; index++) {
- ${3:id} $1 = [$2 $1AtIndex:index];
- ${0}
- }
-# Try / Catch Block
-snippet @try
- @try {
- ${1:statements}
- }
- @catch (NSException * e) {
- ${2:handler}
- }
- @finally {
- ${0:statements}
- }
-snippet @catch
- @catch (${1:exception}) {
- ${0:handler}
- }
-snippet @finally
- @finally {
- ${0:statements}
- }
-# IBOutlet
-# @property (Objective-C 2.0)
-snippet prop
- @property (${1:retain}) ${2:NSSomeClass} ${3:*$2};
-# @synthesize (Objective-C 2.0)
-snippet syn
- @synthesize ${1:property};
-# [[ alloc] init]
-snippet alloc
- [[${1:foo} alloc] init${2}];
-snippet a
- [[${1:foo} alloc] init${2}];
-# retain
-snippet ret
- [${1:foo} retain];
-# release
-snippet rel
- [${0:foo} release];
-# autorelease
-snippet arel
- [${0:foo} autorelease];
-# autorelease pool
-snippet pool
- NSAutoreleasePool *${1:pool} = [[NSAutoreleasePool alloc] init];
- ${0}
- [$1 drain];
-# Throw an exception
-snippet except
- NSException *${1:badness};
- $1 = [NSException exceptionWithName:@"${2:$1Name}"
- reason:@"${0}"
- userInfo:nil];
- [$1 raise];
-snippet prag
- #pragma mark ${0:-}
-snippet cl
- @class ${1:Foo};
-snippet color
- [[NSColor ${0:blackColor}] set];
-# NSArray
-snippet array
- NSMutableArray *${1:array} = [NSMutable array];
-snippet nsa
- NSArray ${0}
-snippet nsma
- NSMutableArray ${0}
-snippet aa
- NSArray * array;
-snippet ma
- NSMutableArray * array;
-# NSDictionary
-snippet dict
- NSMutableDictionary *${1:dict} = [NSMutableDictionary dictionary];
-snippet nsd
- NSDictionary ${0}
-snippet nsmd
- NSMutableDictionary ${0}
-# NSString
-snippet nss
- NSString ${0}
-snippet nsms
- NSMutableString ${0}
diff --git a/vim/snippets/vim-snippets/snippets/openfoam.snippets b/vim/snippets/vim-snippets/snippets/openfoam.snippets
deleted file mode 100644
index 950cbda..0000000
--- a/vim/snippets/vim-snippets/snippets/openfoam.snippets
+++ /dev/null
@@ -1,53 +0,0 @@
-# 0/*
-snippet fv
- type fixedValue;
- value uniform ${0};
-snippet zg
- type zeroGradient;
-snippet sym
- type symmetryPlane;
-# system/controlDict
-snippet forces
- forces
- {
- type forces;
- functionObjectLibs ("libforces.so");
- enabled true;
- outputControl ${1:timeStep};
- outputInterval ${2:1};
- patches (${3});
- log ${4:true};
- CofR (${0:0 0 0});
- }
-# system/fvSolution
-# solvers
-snippet gamg
- ${1:p}
- {
- solver GAMG;
- tolerance 1e-${2:6};
- relTol ${0:0.0};
- smoother GaussSeidel;
- cacheAgglomeration true;
- nCellsInCoarsestLevel 10;
- agglomerator faceAreaPair;
- mergeLevels 1;
- }
-snippet pbicg
- ${1:U}
- {
- solver PBiCG;
- preconditioner DILU;
- tolerance 1e-${2:6};
- relTol ${0:0.0};
- }
-# PIMPLE
-snippet pimple
- PIMPLE
- {
- nOuterCorrectors ${1:outer};
- nCorrectors ${2:inner};
- nNonOrthogonalCorrectors ${3:nonOrtho};
- pRefCell ${4:cell};
- pRefValue ${0:value for $4};
- }
diff --git a/vim/snippets/vim-snippets/snippets/perl.snippets b/vim/snippets/vim-snippets/snippets/perl.snippets
deleted file mode 100644
index 2ed2932..0000000
--- a/vim/snippets/vim-snippets/snippets/perl.snippets
+++ /dev/null
@@ -1,363 +0,0 @@
-# #!/usr/bin/perl
-snippet #!
- #!/usr/bin/env perl
-
-# Hash Pointer
-snippet .
- =>
-# Function
-snippet sub
- sub ${1:function_name} {
- ${0}
- }
-# Conditional
-snippet if
- if (${1}) {
- ${0}
- }
-# Conditional if..else
-snippet ife
- if (${1}) {
- ${2}
- }
- else {
- ${0}
- }
-# Conditional if..elsif..else
-snippet ifee
- if (${1}) {
- ${2}
- }
- elsif (${3}) {
- ${4:# elsif...}
- }
- else {
- ${0}
- }
-snippet eif
- elsif (${1}) {
- ${0}
- }
-# Conditional One-line
-snippet xif
- ${1:expression} if ${2:condition};
-# Unless conditional
-snippet unless
- unless (${1}) {
- ${0}
- }
-# Unless conditional One-line
-snippet xunless
- ${1:expression} unless ${2:condition};
-# Try/Except
-snippet eval
- local $@;
- eval {
- ${1:# do something risky...}
- };
- if (my $e = $@) {
- ${0:# handle failure...}
- }
-# While Loop
-snippet wh
- while (${1}) {
- ${0}
- }
-# While Loop One-line
-snippet xwh
- ${1:expression} while ${2:condition};
-# C-style For Loop
-snippet cfor
- for (my $${2:var} = 0; $$2 < ${1:count}; $$2${3:++}) {
- ${0}
- }
-# For loop one-line
-snippet xfor
- ${1:expression} for @${2:array};
-# Foreach Loop
-snippet for
- foreach my $${1:x} (@${2:array}) {
- ${0}
- }
-# Foreach Loop One-line
-snippet fore
- ${1:expression} foreach @${2:array};
-# Package
-snippet package
- package ${1:`expand('%:p:s?.*lib/??:r:gs?/?::?')`};
- use strict;
- use warnings;
-
- ${0}
-
- 1;
-
- __END__
-# Package syntax perl >= 5.14
-snippet packagev514
- package ${1:`expand('%:p:s?.*lib/??:r:gs?/?::?')`} ${2:0.99};
- use v5.14;
- use warnings;
-
- ${0}
-
- 1;
-
- __END__
-#moose
-snippet moose
- use Moose;
- use namespace::autoclean;
- ${1:#}BEGIN {extends '${2:ParentClass}'};
-
- ${0}
-# parent
-snippet parent
- use parent qw(${0:Parent Class});
-# Read File
-snippet slurp
- my $${1:var} = do { local $/; open my $file, '<', "${2:file}"; <$file> };
- ${0}
-# strict warnings
-snippet strwar
- use strict;
- use warnings;
-# older versioning with perlcritic bypass
-snippet vers
- ## no critic
- our $VERSION = '${0:version}';
- eval $VERSION;
- ## use critic
-# new 'switch' like feature
-snippet switch
- use feature 'switch';
-
-# Anonymous subroutine
-snippet asub
- sub {
- ${0}
- }
-
-
-
-# Begin block
-snippet begin
- BEGIN {
- ${0}
- }
-
-# call package function with some parameter
-snippet pkgmv
- __PACKAGE__->${1:package_method}(${0:var})
-
-# call package function without a parameter
-snippet pkgm
- __PACKAGE__->${0:package_method}()
-
-# call package "get_" function without a parameter
-snippet pkget
- __PACKAGE__->get_${0:package_method}()
-
-# call package function with a parameter
-snippet pkgetv
- __PACKAGE__->get_${1:package_method}(${0:var})
-
-# complex regex
-snippet qrx
- qr/
- ${0:regex}
- /xms
-
-#simpler regex
-snippet qr/
- qr/${0:regex}/x
-
-#given
-snippet given
- given ($${1:var}) {
- ${2:# cases}
- ${0:# default}
- }
-
-# switch-like case
-snippet when
- when (${1:case}) {
- ${0}
- }
-
-# hash slice
-snippet hslice
- @{ ${1:hash} }{ ${0:array} }
-
-
-# map
-snippet map
- map { ${0: body } } ${1: @array } ;
-
-
-
-# Pod stub
-snippet ppod
- =head1 NAME
-
- ${1:ClassName} - ${2:ShortDesc}
-
- =head1 SYNOPSIS
-
- use $1;
-
- ${3:# synopsis...}
-
- =head1 DESCRIPTION
-
- ${0:# longer description...}
-
-
- =head1 INTERFACE
-
-
- =head1 DEPENDENCIES
-
-
- =head1 SEE ALSO
-
-
-# Heading for a subroutine stub
-snippet psub
- =head2 ${1:MethodName}
-
- ${0:Summary....}
-
-# Heading for inline subroutine pod
-snippet psubi
- =head2 ${1:MethodName}
-
- ${0:Summary...}
-
-
- =cut
-# inline documented subroutine
-snippet subpod
- =head2 $1
-
- Summary of $1
-
- =cut
-
- sub ${1:subroutine_name} {
- ${0}
- }
-# Subroutine signature
-snippet parg
- =over 2
-
- =item
- Arguments
-
-
- =over 3
-
- =item
- C<${1:DataStructure}>
-
- ${2:Sample}
-
-
- =back
-
-
- =item
- Return
-
- =over 3
-
-
- =item
- C<${0:...return data}>
-
-
- =back
-
-
- =back
-
-
-
-# Moose has
-snippet has
- has ${1:attribute} => (
- is => '${2:ro|rw}',
- isa => '${3:Str|Int|HashRef|ArrayRef|etc}',
- default => sub {
- ${4:defaultvalue}
- },
- ${0:# other attributes}
- );
-
-
-# override
-snippet override
- override ${1:attribute} => sub {
- ${2:# my $self = shift;};
- ${0:# my ($self, $args) = @_;};
- };
-
-
-# use test classes
-snippet tuse
- use Test::More;
- use Test::Deep; # (); # uncomment to stop prototype errors
- use Test::Exception;
-
-# local test lib
-snippet tlib
- use lib qw{ ./t/lib };
-
-#test methods
-snippet tmeths
- $ENV{TEST_METHOD} = '${0:regex}';
-
-# runtestclass
-snippet trunner
- use ${0:test_class};
- $1->runtests();
-
-# Test::Class-style test
-snippet tsub
- sub t${1:number}_${2:test_case} :Test(${3:num_of_tests}) {
- my $self = shift;
- ${0}
-
- }
-
-# Test::Routine-style test
-snippet trsub
- test ${1:test_name} => { description => '${2:Description of test.}'} => sub {
- my ($self) = @_;
- ${0}
- };
-
-#prep test method
-snippet tprep
- sub prep${1:number}_${2:test_case} :Test(startup) {
- my $self = shift;
- ${0}
- }
-
-# cause failures to print stack trace
-snippet debug_trace
- use Carp; # 'verbose';
- # cloak "die"
- # warn "warning"
- $SIG{'__DIE__'} = sub {
- require Carp; Carp::confess
- };
-
-snippet dump
- use Data::Dump qw(dump);
- warn dump ${1:variable}
-
-snippet subtest
- subtest '${1: test_name}' => sub {
- ${2}
- };
diff --git a/vim/snippets/vim-snippets/snippets/perl6.snippets b/vim/snippets/vim-snippets/snippets/perl6.snippets
deleted file mode 100644
index 21ddf5b..0000000
--- a/vim/snippets/vim-snippets/snippets/perl6.snippets
+++ /dev/null
@@ -1,116 +0,0 @@
-# shebang
-snippet #!
- #!/usr/bin/env perl6
-
-# Hash Pointer
-snippet .
- =>
-# Function
-snippet sub
- sub ${1:function_name}(${2:Str $var}) {
- ${3}
- }
-snippet mul
- multi ${1:function_name}(${2:Str $var}) {
- ${3}
- }
-# Conditional
-snippet if
- if ${1} {
- ${2}
- }
-# Conditional if..else
-snippet ife
- if ${1} {
- ${2}
- }
- else {
- ${3}
- }
-snippet eif
- elsif ${1) {
- ${2}
- }
-# Conditional One-line
-snippet xif
- ${1:expression} if ${2:condition};
-# Unless conditional
-snippet unless
- unless ${1} {
- ${2}
- }
-# Unless conditional One-line
-snippet xunless
- ${1:expression} unless ${2:condition};
-# Ternary conditional
-snippet tc
- ${1:condition} ?? ${2:value-if-true} !! ${3:value-if-false};
-# given - when (perl6 switch)
-snippet switch
- given ${1:$var} {
- when ${2:condition} {
- ${3:# code block ...}
- }
- ${4}
- default {
- ${5}
- }
- }
-# 'loop' - C's for.
-snippet loop
- loop (my ${1:$i} = 0; $$1 < ${2:count}; $$1++) {
- ${3}
- }
-# for loop
-snippet for
- for ${1:@array} -> ${2:$variable} {
- ${3}
- }
-# While Loop
-snippet wh
- while ${1} {
- ${2}
- }
-# Repeat while and repean until
-snippet rp
- repeat {
- ${1}
- } ${2:while|until} ${3};
-# classes ..
-snippet cl
- ${1:my} class ${2:ClassName} ${3:is|does Parent|Role}{
- ${4}
- }
-snippet has
- has ${1:Type} ${2:$!identifier};
-snippet mth
- method ${1:method_name}(${2:$attr}) {
- ${3}
- }
-snippet pmth
- method ${1:!}${2:method_name}(${3:$attr}) {
- ${4}
- }
-snippet smth
- submethod ${1:submethod_name}(${2:$attr}) {
- ${3}
- }
-# Tests
-snippet test
- use v6;
- use Test;
- ${1:use lib 'lib';}
-
- plan ${2:$num-tests};
-
-# IO
-snippet slurp
- my ${1:$var} = "${2:filename}".IO.slurp;
-snippet rfile
- for "${1:filename}".IO.lines -> $line {
- ${2}
- }
-snippet open
- my $fh = open "${1:filename}", ${2::r|:w|:a};
- ${3:# actions};
- $fh.close;
diff --git a/vim/snippets/vim-snippets/snippets/php.snippets b/vim/snippets/vim-snippets/snippets/php.snippets
deleted file mode 100644
index fb313b8..0000000
--- a/vim/snippets/vim-snippets/snippets/php.snippets
+++ /dev/null
@@ -1,684 +0,0 @@
-snippet
-
-# this one is for php5.4
-snippet =
- =${0}?>
-snippet ?=
- = ${0} ?>
-snippet ?
-
-snippet ?f
-
- ${0:${VISUAL}}
-
-snippet ?i
-
- ${0:${VISUAL}}
-
-snippet ns
- namespace ${1:Foo\Bar\Baz};
-
- ${0:${VISUAL}}
-snippet c
- class ${1:`vim_snippets#Filename()`}
- {
- ${0:${VISUAL}}
- }
-snippet i
- interface ${1:`vim_snippets#Filename()`}
- {
- ${0:${VISUAL}}
- }
-snippet t.
- $this->
-snippet f
- function ${1}(${3})
- {
- ${0:${VISUAL}}
- }
-# method
-snippet m
- ${1:protected} function ${2:foo}()
- {
- ${0:${VISUAL}}
- }
-snippet sm "PHP Class Setter"
- /**
- * Sets the value of ${1:foo}
- *
- * @param ${2:string} $$1 ${3:description}
- *
- * @return ${4:`vim_snippets#Filename()`}
- */
- ${5:public} function set${6:$1}(${7:$2 }$$1)
- {
- $this->${8:$1} = $$1;
-
- return $this;
- }
-snippet gm "PHP Class Getter Setter"
- /**
- * Gets the value of ${1:foo}
- *
- * @return ${2:string}
- */
- ${3:public} function get${4:$1}()
- {
- return $this->${5:$1};
- }
-#setter
-snippet $s
- ${1:$foo}->set${2:Bar}(${0});
-#getter
-snippet $g
- ${1:$foo}->get${0:Bar}();
-# Tertiary conditional
-snippet =?:
- $${1:foo} = ${2:true} ? ${3:a} : ${0};
-snippet ?:
- ${1:true} ? ${2:a} : ${0}
-snippet t "$retVal = (condition) ? a : b"
- $${1:retVal} = (${2:condition}) ? ${3:a} : ${4:b};
-# Predefined variables
-snippet C
- $_COOKIE['${1:variable}']
-snippet E
- $_ENV['${1:variable}']
-snippet F
- $_FILES['${1:variable}']
-snippet G "_GET array"
- $_GET['${1:variable}']
-snippet P "_POST array"
- $_POST['${1:variable}']
-snippet R
- $_REQUEST['${1:variable}']
-snippet S
- $_SERVER['${1:variable}']
-snippet SS
- $_SESSION['${1:variable}']
-snippet get "get"
- $_GET['${1}']
-snippet post "post"
- $_POST['${1}']
-snippet session "session"
- $_SESSION['${1}']
-# the following are old ones
-snippet inc
- include '${1:file}';
-snippet inc1
- include_once '${1:file}';
-snippet req
- require '${1:file}';
-snippet req1
- require_once '${1:file}';
-# Start Docblock
-snippet /*
- /**
- * ${0}
- */
-# Class - post doc
-snippet doc_cp
- /**
- * ${1:undocumented class}
- *
- * @package ${2:default}
- * @subpackage ${3:default}
- * @author ${4:`g:snips_author`}
- */
-# Class Variable - post doc
-snippet doc_vp
- /**
- * ${1:undocumented class variable}
- *
- * @var ${2:string}
- */
-# Class Variable
-snippet doc_v
- /**
- * ${3:undocumented class variable}
- *
- * @var ${4:string}
- */
- ${1:var} $${2};
-# Class
-snippet doc_c
- /**
- * ${3:undocumented class}
- *
- * @package ${4:default}
- * @subpackage ${5:default}
- * @author ${6:`g:snips_author`}
- */
- ${1:}class ${2:}
- {
- ${0:${VISUAL}}
- } // END $1class $2
-# Constant Definition - post doc
-snippet doc_dp
- /**
- * ${1:undocumented constant}
- */
-# Constant Definition
-snippet doc_d
- /**
- * ${3:undocumented constant}
- */
- define(${1}, ${2});
-# Function - post doc
-snippet doc_fp
- /**
- * ${1:undocumented function}
- *
- * @return ${2:void}
- * @author ${3:`g:snips_author`}
- */
-# Function signature
-snippet doc_s
- /**
- * ${4:undocumented function}
- *
- * @return ${5:void}
- * @author ${6:`g:snips_author`}
- */
- ${1}function ${2}(${3});
-# Function
-snippet doc_f
- /**
- * ${4:undocumented function}
- *
- * @return ${5:void}
- * @author ${6:`g:snips_author`}
- */
- ${1}function ${2}(${3})
- {${0}
- }
-# Header
-snippet doc_h
- /**
- * ${1}
- *
- * @author ${2:`g:snips_author`}
- * @version ${3:$Id$}
- * @copyright ${4:$2}, `strftime('%d %B, %Y')`
- * @package ${0:default}
- */
-snippet doc_i "interface someClass {}"
- /**
- * $1
- * @package ${2:default}
- * @author ${3:`!v g:snips_author`}
- **/
- interface ${1:someClass}
- {${4}
- }
-snippet inheritdoc "@inheritdoc docblock"
- /**
- * {@inheritdoc}
- */
-# Interface
-snippet interface
- /**
- * ${2:undocumented class}
- *
- * @package ${3:default}
- * @author ${4:`g:snips_author`}
- */
- interface ${1:`vim_snippets#Filename()`}
- {
- ${0:${VISUAL}}
- }
-# Trait
-snippet trait
- /**
- * ${2:undocumented class}
- *
- * @package ${3:default}
- * @author ${4:`g:snips_author`}
- */
- trait ${1:`vim_snippets#Filename()`}
- {
- ${0:${VISUAL}}
- }
-# class ...
-snippet class
- /**
- * ${1}
- */
- class ${2:`vim_snippets#Filename()`}
- {
- ${3}
- /**
- * ${4}
- */
- ${5:public} function ${6:__construct}(${7:argument})
- {
- ${0}
- }
- }
-snippet nc
- namespace ${1:`substitute(substitute(expand("%:h"), '\v^\w+\/(\u)', '\1', ''), '\/', '\\\', 'g')`};
-
- ${2:abstract }class ${3:`vim_snippets#Filename()`}
- {
- ${0:${VISUAL}}
- }
-# define(...)
-snippet def "define('VARIABLE_NAME', 'definition')"
- define('${1:VARIABLE_NAME}', ${2:'definition'});
-# defined(...)
-snippet def?
- ${1}defined('${2}')
-snippet wh "while (condition) { ... }"
- while (${1:/* condition */}) {
- ${0:${VISUAL}}
- }
-snippet do "do { ... } while (condition)"
- do {
- ${0:${VISUAL}}
- } while (${1});
-snippet if "if (condition) { ... }"
- if (${1}) {
- ${0:${VISUAL}}
- }
-snippet ifn "if (!condition) { ... }"
- if (!${1}) {
- ${0:${VISUAL}}
- }
-snippet ifil " ... "
-
- ${0:${VISUAL}}
-
-snippet ife "if (cond) { ... } else { ... }"
- if (${1}) {
- ${0:${VISUAL}}
- } else {
- ${2}
- }
-snippet ifeil " ... ... "
-
- ${0:${VISUAL}}
-
- ${2}
-
-snippet el "else { ... }"
- else {
- ${0:${VISUAL}}
- }
-snippet eif "elseif(condition) { ... }"
- elseif (${1}) {
- ${0:${VISUAL}}
- }
-snippet switch "switch($var) { case 'xyz': ... default: .... }"
- switch ($${1:variable}) {
- case '${2:value}':
- ${3}
- break;
- ${0}
- default:
- ${4}
- break;
- }
-snippet case "case 'value': ... break"
- case '${1:value}':
- ${0:${VISUAL}}
- break;
-snippet for "for ($i = 0; $i < $count; $i++) { ... }"
- for ($${2:i} = 0; $$2 < ${1:count}; $$2${3:++}) {
- ${0:${VISUAL}}
- }
-snippet foreach "foreach ($var as $value) { .. }"
- foreach ($${1:variable} as $${2:value}) {
- ${0:${VISUAL}}
- }
-snippet foreachil " ... "
-
- ${0:${VISUAL}}
-
-snippet foreachk "foreach ($var as $key => $value) { .. }"
- foreach ($${1:variable} as $${2:key} => $${3:value}) {
- ${0:${VISUAL}}
- }
-snippet foreachkil " $value): ?> ... "
- $${3:value}): ?>
- ${0:}
-
-snippet array "$... = ['' => ]"
- $${1:arrayName} = ['${2}' => ${3}];
-snippet try "try { ... } catch (Exception $e) { ... }"
- try {
- ${0:${VISUAL}}
- } catch (${1:Exception} $e) {
- }
-# lambda with closure
-snippet lambda
- ${1:static }function (${2:args}) use (${3:&$x, $y /*put vars in scope (closure) */}) {
- ${0}
- };
-# pre_dump();
-snippet pd
- echo ''; var_dump(${0}); echo ' ';
-# pre_dump(); die();
-snippet pdd
- echo ''; var_dump(${1}); echo ' '; die(${0:});
-snippet vd
- var_dump(${0});
-snippet vdd
- var_dump(${1}); die(${0:});
-snippet pr
- print_r(${0});
-snippet prs
- print_r(${0}, 1);
-snippet vdf
- error_log(print_r($${1:foo}, true), 3, '${2:/tmp/debug.log}');
-snippet http_redirect
- header ("HTTP/1.1 301 Moved Permanently");
- header ("Location: ".URL);
- exit();
-snippet log "error_log(var_export($var, true));"
- error_log(var_export(${1}, true));
-snippet var "var_export($var)"
- var_export(${1});
-snippet ve "Dumb debug helper in HTML"
- echo '' . var_export(${1}, 1) . ' ';
-snippet pc "Dumb debug helper in cli"
- var_export($1);$0
-# Getters & Setters
-snippet gs "PHP Class Getter Setter"
- /**
- * Gets the value of ${1:foo}
- *
- * @return ${2:string}
- */
- public function get${3:$1}()
- {
- return $this->${4:$1};
- }
-
- /**
- * Sets the value of $1
- *
- * @param $2 $$1 ${5:description}
- *
- * @return ${6:`vim_snippets#Filename()`}
- */
- public function set$3(${7:$2 }$$1)
- {
- $this->$4 = $$1;
- return $this;
- }
-# anotation, get, and set, useful for doctrine
-snippet ags
- /**
- * ${1:description}
- *
- * @${0}
- */
- ${2:protected} $${3:foo};
-
- public function get${4:$3}()
- {
- return $this->$3;
- }
-
- public function set$4(${5:$4 }$${6:$3})
- {
- $this->$3 = $$6;
- return $this;
- }
-snippet rett
- return true;
-snippet retf
- return false;
-snippet am
- $${1:foo} = array_map(function($${2:v}) {
- ${0}
- return $$2;
- }, $$1);
-snippet aw
- array_walk($${1:foo}, function(&$${2:v}, $${3:k}) {
- $$2 = ${0};
- });
-# static var assign once
-snippet static_var
- static $${1} = null;
- if (is_null($$1)){
- $$1 = ${2};
- }
-snippet CSVWriter
- f =
- is_string($file_or_handle)
- ? fopen($file_or_handle, $mode)
- : $file_or_handle;
-
- $this->fputcsv_args = [$this->f, null, $sep, $quot];
-
- if (!$this->f) throw new Exception('bad file descriptor');
- }
-
- public function write($row){
- $this->fputcsv_args[1] =& $row;
- call_user_func_array('fputcsv', $this->fputcsv_args);
- }
-
- public function close(){
- if (!is_null($this->f))
- fclose($this->f);
- $this->f = null;
- }
-
- public function __destruct(){
- $this->close();
- }
-
- }
-snippet CSVIterator
-
- // http://snipplr.com/view.php?codeview&id=1986 // modified
- class CSVIterator implements Iterator
- {
- private $f;
- private $curr;
- private $rowCounter;
-
- /* opts keys:
- * row_size
- * escape
- * enclosure
- * delimiter
- */
- public function __construct( $file_or_handle, $opts = [4096, ','] )
- {
- $d = function($n) use(&$opts){ return isset($opts[$n]) ? $opts[$n] : false; };
-
- $this->combine = $d('combine');
- $this->headers = $d('headers');
- $this->headerCheckFunction = $d('header_check_function');
-
- $this->f =
- is_string($file_or_handle)
- ? fopen( $file_or_handle, 'r' )
- : $file_or_handle;
- if (!$this->f) throw new Exception('bad file descriptor');
- $this->fgetcsv_args = [
- $this->f,
- isset($opts['row_size']) ? $opts['row_size'] : 4096,
- isset($opts['delimiter']) ? $opts['delimiter'] : ',',
- isset($opts['enclosure']) ? $opts['enclosure'] : '"',
- isset($opts['escape']) ? $opts['escape'] : '\\',
- ];
- $this->start();
- }
-
- protected function readRow(){
- $this->curr = call_user_func_array('fgetcsv', $this->fgetcsv_args );
- $this->rowCounter++;
- if ($this->rowCounter == 1){
- $this->processHeader();
- } elseif ($this->curr) {
- $this->processRow();
- }
- }
-
- public function processHeader(){
- if ($this->headers || $this->combine){
- $this->header = $this->curr;
- if ($this->headerCheckFunction){
- $f = $this->headerCheckFunction;
- $f($this->header);
- }
- $this->readRow();
- }
- }
-
- public function processRow(){
- if ($this->combine)
- $this->curr = array_combine($this->header, $this->curr);
- }
-
- public function start(){
- $this->rowCounter = 0;
- rewind( $this->f );
- $this->readRow();
- }
-
- public function rewind()
- {
- $this->start();
- }
-
- public function current()
- {
- $curr = $this->curr;
- $this->readRow();
- return $curr;
- }
-
- public function key()
- {
- return $this->rowCounter;
- }
-
- public function next()
- {
- return $this->curr;
- }
-
- public function valid(){
- if( !$this->next() )
- {
- fclose( $this->f );
- return FALSE;
- }
- return TRUE;
- }
-
- } // end class
-# phpunit
-snippet ase "$this->assertEquals($a, $b)"
- $this->assertEquals(${1:$expected}, ${2:$actual});
-snippet asne "$this->assertNotEquals($a, $b)"
- $this->assertNotEquals(${1:$expected}, ${2:$actual});
-snippet asf "$this->assertFalse($a)"
- $this->assertFalse(${1});
-snippet ast "$this->assertTrue($a)"
- $this->assertTrue(${1});
-snippet asfex "$this->assertFileExists('path/to/file')"
- $this->assertFileExists(${1:'path/to/file'});
-snippet asfnex "$this->assertFileNotExists('path/to/file')"
- $this->assertFileNotExists(${1:'path/to/file'});
-snippet ascon "$this->assertContains($needle, $haystack)"
- $this->assertContains(${1:$needle}, ${2:$haystack});
-snippet asncon "$this->assertNotContains($needle, $haystack)"
- $this->assertNotContains(${1:$needle}, ${2:$haystack});
-snippet ascono "$this->assertContainsOnly($needle, $haystack)"
- $this->assertContainsOnly(${1:$needle}, ${2:$haystack});
-snippet asconoi "$this->assertContainsOnlyInstancesOf(Example::class, $haystack)"
- $this->assertContainsOnlyInstancesOf(${1:Example}::class, ${2:$haystack});
-snippet ashk "$this->assertArrayHasKey($key, $array)"
- $this->assertArrayHasKey(${1:$key}, ${2:$array});
-snippet asnhk "$this->assertArrayNotHasKey($key, $array)"
- this->assertArrayNotHasKey(${1:$key}, ${2:$array});
-snippet ascha "$this->assertClassHasAttribute($name, Example::class)"
- $this->assertClassHasAttribute(${1:$attributeName}, ${2:Example}::class);
-snippet asi "$this->assertInstanceOf(Example::class, $actual)"
- $this->assertInstanceOf(${1:Example}::class, ${2:$actual});
-snippet ast "$this->assertInternalType('string', $actual)"
- $this->assertInternalType(${1:'string'}, ${2:actual});
-snippet asco "$this->assertCount($count, $haystack)"
- $this->assertCount(${1:$expectedCount}, ${2:$haystack});
-snippet asnco "$this->assertNotCount($count, $haystack)"
- $this->assertNotCount(${1:$count}, ${2:$haystack});
-snippet assub "$this->assertArraySubset($subset, $array)"
- $this->assertArraySubset(${1:$subset}, ${2:$array});
-snippet asnu "$this->assertNull($a)"
- $this->assertNull(${1});
-snippet asnnu "$this->assertNotNull($a)"
- $this->assertNotNull(${1});
-snippet test "public function testXYZ() { ... }"
- public function test${1}()
- {
- ${0:${VISUAL}}
- }
-snippet setup "protected function setUp() { ... }"
- protected function setUp()
- {
- ${0:${VISUAL}}
- }
-snippet teardown "protected function tearDown() { ... }"
- protected function tearDown()
- {
- ${0:${VISUAL}}
- }
-snippet proph "$observer = $this->prophesize(SomeClass::class);"
- $${1:observer} = $this->prophesize(${2:SomeClass}::class);
-snippet mock "$mock = $this->createMock(SomeClass::class);"
- $${1:mock} = $this->createMock(${2:SomeClass}::class);
-snippet exp "phpunit expects"
- expects($this->${1:once}())
- ->method('${2}')
- ->with(${3})
- ->willReturn(${4});
-snippet testcmt "phpunit comment with group"
- /**
- * @group ${1}
- */
-snippet fail "$this->fail()"
- $this->fail(${1});
-snippet marki "$this->markTestIncomplete()"
- $this->markTestIncomplete(${1});
-snippet marks "$this->markTestSkipped()"
- $this->markTestSkipped(${1});
-# end of phpunit snippets
-snippet te "throw new Exception()"
- throw new ${1:Exception}("${2:Error Processing Request}");
-snippet fpc "file_put_contents" b
- file_put_contents(${1:file}, ${2:content}${3:, FILE_APPEND});$0
-snippet sr "str_replace"
- str_replace(${1:search}, ${2:replace}, ${3:subject})$0
-snippet ia "in_array"
- in_array(${1:needle}, ${2:haystack})$0
-snippet is "isset"
- isset(${1:var})$0
-snippet isa "isset array"
- isset($${1:array}[${2:key}])$0
-snippet in "is_null"
- is_null($${1:var})$0
-snippet fe "file_exists"
- file_exists(${1:file})$0
-snippet id "is_dir"
- is_dir(${1:path})$0
diff --git a/vim/snippets/vim-snippets/snippets/plsql.snippets b/vim/snippets/vim-snippets/snippets/plsql.snippets
deleted file mode 100644
index 2920758..0000000
--- a/vim/snippets/vim-snippets/snippets/plsql.snippets
+++ /dev/null
@@ -1,109 +0,0 @@
-# create package spec
-snippet ps
- create or replace package ${1:name}
- as
- ${0:-- spec}
- end; -- end of package spec $1
-# create package body
-snippet pb
- create or replace package body ${1:name}
- as
- ${0:-- body}
- end; -- end of package body $1;
-# package procedure spec
-snippet pps
- procedure ${1:name}(${0:args});
-# package procedure body
-snippet ppb
- procedure ${1:name}(${2:args})
- as
- begin
- ${0:-- body}
- end $2;
-# package function spec
-snippet pfs
- function ${1:name}(${2:args})
- return ${0:type};
-# package function body
-snippet pfb
- function ${1:name}(${2:args})
- return ${3:type}
- as
- l_res $3;
- begin
- ${0:-- body};
- return l_res;
- end $1;
-# snow errors
-snippet err
- show errors;
-# proc/func in parameter
-snippet p
- ${1:name} ${2:in} ${3:type} ${0: := null}
-# package type: record
-snippet tr
- type tr_${1:name} is record (${0:/* columns */});
-# package type: nested table
-snippet tt
- type tt_${1:name} is table of tr_${0:name};
-# package type: indexed table
-snippet tti
- type tt_${1:name} is table of tr_${0:name} index by binary_integer;
-# proc/func comment
-snippet doc
- /*
- * ${0: comment ...}
- */
-# plsql block
-snippet beg
- begin
- ${0}
- end;
-# plsql block with declare part
-snippet dec
- declare
- ${1}
- begin
- ${0}
- end;
-# return pipe row
-snippet rpipe
- for ${1:i} in 1 .. ${0:l_res}.count loop
- pipe row( $2($1) );
- end loop;
- return;
-# bulk collect
-snippet bc
- bulk collect into ${0}
-# local variable
-snippet l
- l_${1} ${0:number};
-# output
-snippet log
- dbms_output.put_line('${0}');
-# for loop
-snippet for
- for ${1:i} in ${2:1}..${3:42} loop
- ${0}
- end loop;
-# for loop with select
-snippet fors
- for ${1:rec} in (${2: select}) loop
- ${0}
- end loop;
-# for loop with collection
-snippet forc
- for ${1:i} in ${2:l_var}.first .. $2.last loop
- ${0: -- dbms_output.put_line($2($1)); }
- end loop;
-# if
-snippet if
- if ${1} then
- ${0}
- end if;
-snippet ife
- if ${1} then
- ${2}
- else
- ${0}
- end if;
diff --git a/vim/snippets/vim-snippets/snippets/po.snippets b/vim/snippets/vim-snippets/snippets/po.snippets
deleted file mode 100644
index 84916fa..0000000
--- a/vim/snippets/vim-snippets/snippets/po.snippets
+++ /dev/null
@@ -1,5 +0,0 @@
-snippet msg
- msgid "${1}"
- msgstr "${2}"
-
- ${0}
diff --git a/vim/snippets/vim-snippets/snippets/processing.snippets b/vim/snippets/vim-snippets/snippets/processing.snippets
deleted file mode 100755
index 798e545..0000000
--- a/vim/snippets/vim-snippets/snippets/processing.snippets
+++ /dev/null
@@ -1,705 +0,0 @@
-#BASICS
-# doc
-snippet doc
- /**
- * ${1:Description}
- *
- * @author ${2:name}
- * @since ${3:`strftime("%d/%m/%y %H:%M:%S")`}
- */
- ${0}
-# doc comment
-snippet docc
- /**
- * ${1:@private}$0
- */
- ${0}
-# class
-snippet class
- ${1:public }class ${2:`fnamemodify(bufname("%"),":t:r")`} ${3:extends}
- {
-
- //--------------------------------------
- // CONSTRUCTOR
- //--------------------------------------
-
- public $2 (${4:arguments}) {
- ${0:// expression}
- }
- }
-# package
-snippet package
- /**
- * ${1:Description}
- *
- * @author ${2:$TM_FULLNAME}
- * @since ${3:`strftime("%d/%m/%y %H:%M:%S")`}
- */
-
- package ${0:package};
-# function
-snippet fun
- ${1:void/private/protected/public}${2: static} ${3:name}(${4}) {
- ${5://if not void return null;}
- }
- ${0}
-snippet fn
- ${1:void }${2:name}(${3}) {
- ${4://if not void return null;}
- }
- ${0}
-# constant
-snippet const
- static final ${1:Object} ${2:VAR_NAM} = ${0};
-# var
-snippet var
- ${1:private/public }${2:static }${3:String} ${4:str}${5: =}${0:value};
-# var objects
-snippet obj
- ${1:private/public }${2:Object} ${3:o}${4: = new }$2(${0});
-#loop for
-snippet for
- for (int ${2:i} = 0; $2 < ${1:Things}.length; $2${3:++}) {
- ${0:$1[$2]}
- };
-#loop while
-snippet wh
- while (${1:/* condition */}) {
- ${0}
- }
-#break
-snippet break
- break ${1:label};
-#case
-snippet case
- case ${1:expression} :
- ${0}
- break;
-#default
-snippet default
- default :
- ${1}
- break;
-#switch
-snippet switch
- switch(${1:expression}) {
- case '${3:case}':
- ${4}
- break;
- ${0}
- default:
- ${2}
- }
-#try
-snippet try
- try {
- ${0:${VISUAL}}
- } catch(${1:Exception} ${2:e}) {
- }
-#try catch finally
-snippet tryf
- try {
- ${0:${VISUAL}}
- } catch(${1:Exception} ${2:e}) {
- } finally {
- }
-#throw
-snippet throw
- throw new ("${1:Exception()}");
-#ternary
-snippet ?
- ? ${1:trueExpression} : ${2:falseExpression}
- ${0}
-snippet if
- if (${1:true}) {${0}}
-# if ... else
-snippet ife
- if (${1:true}) {${2}}
- else{${0}}
-#get
-snippet get
- public ${1:String} get${2}() {
- return ${0:fieldName};
- }
-#set
-snippet set
- public void set${1}(${0:String} new${1}) {
- ${1:fieldName} = new${1};
- }
-#printIn
-snippet println
- println("${1:`fnamemodify(bufname("%"),":t:r")`}::${2:method}() "${3: +} ${0});
-#println string
-snippet pr
- println("${0}");
-#setup draw
-snippet setup
- void setup(){
- ${1}
- }
-
- void draw(){
- ${0}
- }
-#setup OPENGL
-snippet opengl
- import processing.opengl.*;
- import javax.media.opengl.*;
-
- PGraphicsOpenGL pgl;
- GL gl;
-
- void setup(){
- size( ${1:300}, ${2:300}, OPENGL );
- colorMode( RGB, 1.0 );
- hint( ENABLE_OPENGL_4X_SMOOTH );
- pgl = (PGraphicsOpenGL) g;
- gl = pgl.gl;
- gl.setSwapInterval(1);
- initGL();
- ${3}
- }
-
- void draw(){
- pgl.beginGL();
- ${4}
- pgl.endGL();
- getOpenGLErrors();
- }
-
- void initGL(){
- ${0}
- }
-
- void getOpenGLErrors(){
- int error = gl.glGetError();
- switch (error){
- case 1280 :
- println("GL_INVALID_ENUM - An invalid enumerant was passed to an OpenGL command.");
- break;
- case 1282 :
- println("GL_INVALID_OPERATION - An OpenGL command was issued that was invalid or inappropriate for the current state.");
- break;
- case 1281 :
- println("GL_INVALID_VALUE - A value was passed to OpenGL that was outside the allowed range.");
- break;
- case 1285 :
- println("GL_OUT_OF_MEMORY - OpenGL was unable to allocate enough memory to process a command.");
- break;
- case 1283 :
- println("GL_STACK_OVERFLOW - A command caused an OpenGL stack to overflow.");
- break;
- case 1284 :
- println("GL_STACK_UNDERFLOW - A command caused an OpenGL stack to underflow.");
- break;
- case 32817 :
- println("GL_TABLE_TOO_LARGE");
- break;
- }
- }
-
-#GL Functions
-snippet gl begin gl
- pgl.beginGL();
- ${0}
- pgl.endGL();
-snippet gl gl swap interval
- // specify the minimum swap interval for buffer swaps.
- gl.setSwapInterval(${0:interval});
-snippet gl gl call list
- // execute a display list
- gl.glCallList(${0:list});
-snippet gl gl gen buffers
- // import java.nio.IntBuffer;
- // import java.nio.FloatBuffer;
- // import com.sun.opengl.util.BufferUtil;
-
- // You might need to create four buffers to store vertext data, normal data, texture coordinate data, and indices in vertex arrays
- IntBuffer bufferObjects = IntBuffer.allocate(${1:4});
- gl.glGenBuffers($1, bufferObjects);
-
- int vertexCount = ${2:3};
- int numCoordinates = ${0:3};
- // vertexCount * numCoordinates
- FloatBuffer vertices = BufferUtil.newFloatBuffer(vertexCount * numCoordinates);
- float[] v = {0.0f, 0.0f, 0.0f,
- 1.0f, 0.0f, 0.0f,
- 0.0f, 1.0f, 1.0f};
- vertices.put(v);
-
- // Bind the first buffer object ID for use with vertext array data
- gl.glBindBuffer(GL.GL_ARRAY_BUFFER, bufferObjects.get(0));
- gl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount * numCoordinates * BufferUtil.SIZEOF_FLOAT, vertices, GL.GL_STATIC_DRAW);
-snippet gl gl bind buffer
- ${0:// A buffer ID of zero unbinds a buffer object}
- gl.glBindBuffer(GL.GL_ARRAY_BUFFER, ${1:0});
-snippet gl gl delete buffers
- ${0:// Parameters are the same for glGenBuffers}
- gl.glDeleteBuffers(${1:4}, ${2:bufferObjects});
-snippet gl gl depth mask
- // enable or disable writing into the depth buffer
- gl.glDepthMask(${0:flag});
-snippet gl gl load identity
- // replaces the top of the active matrix stack with the identity matrix
- gl.glLoadIdentity();
-snippet gl gl tex coord 2f
- // set the current texture coordinates - 2 floats
- gl.glTexCoord2f(${1:0.0f}, ${0:0.0f});
-snippet gl gl vertex 2f
- gl.glVertex2f(${1:0.0f}, ${0:0.0f});
-snippet gl gl vertex 3f
- gl.glVertex3f(${1:0.0f}, ${2:0.0f}, ${0:0.0f});
-snippet gl gl translate f
- // multiply the current matrix by a translation matrix
- gl.glTranslatef(${1:x}, ${2:y}, ${0:z});
-snippet gl gl rotate f
- // rotate, x-axis, y-axis, z-axiz
- gl.glRotatef(${1:angle}, ${2:x}, ${3:y}, ${0:z});
-snippet gl gl scale f
- // multiply the current matrix by a general scaling matrix
- gl.glScalef(${1:x}, ${2:y}, ${0:z});
-snippet gl gl color 4f
- gl.glColor4f(${1:red}, ${2:green}, ${3:blue}, ${0:alpha});
-snippet gl gl clear color
- gl.glClearColor(${1:red}, ${2:green}, ${3:blue}, ${0:alpha});
-snippet gl gl color 3f
- gl.glColor3f(${1:red}, ${2:green}, ${0:blue});
-snippet gl gl push matrix
- // spush and pop the current matrix stack
- gl.glPushMatrix();
- ${0}
- gl.glPopMatrix();
-snippet gl gl gen lists
- gl.glGenLists(${0:1})
-snippet gl gl flush
- // Empties buffers. Call this when all previous issues commands completed
- gl.glFlush();
- ${0}
-snippet gl gl get error
- println(gl.glGetError());
-snippet gl gl clear
- gl.glClear(${1:GL.GL_COLOR_BUFFER_BIT}${2: | }${0:GL.GL_DEPTH_BUFFER_BIT});
-
-#frame operations
-snippet frameRate
- frameRate(${1:30});
- ${0}
-snippet saveFrame
- saveFrame("${1:filename-####}${0:.ext}");
-
-#size
-snippet size normal
- size(${1:200}, ${2:200}${0:, P3D});
-snippet size opengl
- size(${1:200}, ${2:200}${0:, OPENGL});
-
-#PRIMITIVES
-#color
-snippet color
- color ${1:c}${2: = color(}${3:value1, }${4:value2, }${0:value3)};
-#char
-snippet char
- char ${1:m}${2: = "}${0:char"};
-#float
-snippet float
- float ${1:f}${2: = }${0:0.0f};
-#int
-snippet int
- int ${1:f}${2: = }${0:0};
-#boolean
-snippet boolean
- boolean ${1:b}${2: = }${0:true};
-#byte
-snippet byte
- byte ${1:b}${2: = }${0:127};
-#string
-snippet string
- String ${1:str}${2: = "}${0:CCCP"};
-#array
-snippet array
- ${1:int}[] ${2:numbers}${3: = new $1}[${0:length}];
-#object
-snippet object
- ${1:Object} ${2:o}${3: = new $1}(${0});
-
-#curve
-snippet curve
- curve(${1:x1}, ${2:y1}, ${3:x2}, ${4:y2}, ${5:x3}, ${6:y3}, ${7:x4}, ${0:y4});
-snippet curve 3D
- curve(${1:x1}, ${2:y1}, ${3:z1}, ${4:x2}, ${5:y2}, ${6:z2}, ${7:x3}, ${8:y3}, ${9:z3}, ${10:x4}, ${11:y4}, ${0:z4});
-snippet curveDetail
- curveDetail(${0:detail});
-snippet curvePoint
- curvePoint(${1:a}, ${2:b}, ${3:c}, ${4:d}, ${0:t});
-snippet curveTightness
- curveTightness(${0:squishy});
-
-#bezier
-snippet bezier
- bezier(${1:x1}, ${2:y1}, ${3:cx1}, ${4:cy1}, ${5:cx2}, ${6:cy2}, ${7:x2}, ${0:y2});
-snippet bezier 3D
- bezier(${1:x1}, ${2:y1}, ${3:z1}, ${4:cx1}, ${5:cy1}, ${6:cz1}, ${7:cx2}, ${8:cy2}, ${9:cz2}, ${10:x2}, ${11:y2}, ${0:z2});
-snippet bezierDetail
- bezierDetail(${0:detail});
-snippet bezierTangent
- bezierTangent(${1:a}, ${2:b}, ${3:c}, ${4:d}, ${0:t});
-snippet bezierPoint
- bezierPoint(${1:a}, ${2:b}, ${3:c}, ${4:d}, ${0:t});
-
-#vertex
-snippet vertex
- vertex(${1:x}, ${2:y}${3:, }${4:u}${5:, }${0:v});
-snippet vertex 3D
- vertex(${1:x}, ${2:y}, ${3:z}${4:, }${5:u}${6:, }${0:v});
-snippet bezierVertex
- bezierVertex(${1:cx1}, ${2:cy1}, ${3:cx2}, ${4:cy2}, ${5:x}, ${0:y});
-snippet bezierVertex 3D
- bezierVertex(${1:cx1}, ${2:cy1}, ${3:cz1}, ${4:cx2}, ${5:cy2}, ${6:cz2}, ${7:x}, ${8:y}, ${0:z});
-snippet curveVertex
- curveVertex(${1:x}, ${0:y});
-snippet curveVertex 3D
- curveVertex(${1:x}, ${2:y}, ${0:z});
-
-#stroke
-snippet stroke
- stroke(${1:value1}, ${2:value2}, ${3:value3}${4:, }${0:alpha});
-snippet strokeWeight
- strokeWeight(${0:1});
-
-#mouse
-snippet mouseDragged
- void mouseDragged(){
- ${0}
- }
-snippet mouseMoved
- void mouseMoved(){
- ${0}
- }
-snippet mouseReleased
- void mouseReleased(){
- ${0}
- }
-snippet mousePressed
- void mousePressed(){
- ${0}
- }
-
-#key
-snippet keyReleased
- void keyReleased(){
- ${0}
- }
-snippet keyTyped
- void keyTyped(){
- ${0}
- }
-snippet keyPressed
- void keyPressed(){
- ${0}
- }
-
-#file
-snippet loadStrings
- loadStrings("${0:filename}");
-snippet saveStrings
- saveStrings(${1:filename}, ${0:strings});
-snippet loadBytes
- loadBytes("${0:filename}");
-snippet beginRecord
- beginRecord(${1:renderer}, ${0:filename});
-snippet saveBytes
- saveBytes(${1:filename}, ${0:bytes});
-snippet createWriter
- createWriter(${0:filename});
-snippet createReader
- createReader(${0:filename});
-
-#matrix
-snippet pushMatrix
- pushMatrix();
- ${0:};
- popMatrix();
-
-
-#text
-snippet text data
- text(${1:data}, ${2:x}, ${3:y}${4:, }${0:z});
-snippet text stringdata
- text(${1:stringdata}, ${2:x}, ${3:y}, ${4:width}, ${5:height}${6:, }${0:z});
-snippet textSize
- textSize(${0:size});
-snippet textLeading
- textLeading(${0:size});
-snippet textWidth
- textWidth(${0:data});
-snippet font
- PFont ${1:font};
- $1 = loadFont("${0:FFScala-32.vlw}");
-#load font
-snippet loadFont
- ${1:font} = loadFont("${0:FFScala-32.vlw}");
-snippet textFont
- textFont(${1:font}${2:, }${0:size});
-
-#math
-snippet tan
- tan(${0:rad});
-snippet atan
- atan(${0:rad});
-snippet atan2
- atan2(${0:rad});
-snippet sin
- sin(${0:rad});
-snippet asin
- asin(${0:rad});
-snippet cos
- cos(${0:rad});
-snippet acos
- acos(${0:rad});
-snippet degrees
- degrees(${0:rad});
-snippet radians
- radians(${0:deg});
-snippet randomSseed
- randomSeed(${0:value});
-snippet random
- random(${1:value1}${2:, }${0:value2});
-snippet pow
- pow(${1:num}, ${0:exponent});
-snippet floor
- floor(${0:value});
-snippet sqrt
- sqrt(${0:value});
-snippet abs
- abs(${0:value});
-snippet sq
- sq(${0:value});
-snippet ceil
- ceil(${0:value});
-snippet exp
- exp(${0:value});
-snippet round
- round(${0:value}};
-snippet min
- min(${1:value1}, ${2:value2}${3:, }${0:value3});
-snippet max
- max(${1:value1}, ${2:value2}${3:, }${0:value3});
-snippet max array
- max(${0:array});
-snippet min array
- min(${0:array});
-snippet log
- log(${0:value});
-snippet map
- map(${1:value}, ${2:low1}, ${4:high1}, ${5:low2}, ${0:high2});
-snippet norm
- norm(${1:value}, ${2:low}, ${0:high});
-snippet constrain
- constrain(${1:value}, ${2:min}, ${0:max});
-snippet mag
- mag(${1:a}, ${2:b}${3:, }${0:c});
-snippet dist
- dist(${1:x1}, ${2:y1}, ${4:x2}, ${0:y2});
-snippet dist 3D
- dist(${1:x1}, ${2:y1}, ${3:z1}, ${4:x2}, ${5:y2}, ${0:z2});
-
-#noise math
-snippet noise
- noise(${1:x}${2:, }${3:y}${4:, }${0:z});
-snippet noiseDetail
- noiseDetail(${1:octaves}${2:, }${0:falloff});
-snippet noiseSeed
- noiseSeed(${0:x});
-
-#material
-snippet shininess
- shininess(${0:shine});
-snippet specular
- specular(${1:value1}, ${2:value2}, ${3:value3}${4:, }${0:alpha});
-snippet ambient
- ambient(${1:value1}, ${2:value2}, ${0:value3});
-snippet emissive
- emissive(${1:value1}, ${2:value2}, ${0:value3});
-
-#light
-snippet diretionalLight
- directionalLight(${1:v1}, ${2:v2}, ${3:v3}, ${4:nx}, ${5:ny}, ${0:nz});
-snippet pointLight
- pointLight(${1:v1}, ${2:v2}, ${3:v3}, ${4:nx}, ${5:ny}, ${0:nz});
-snippet lightFalloff
- lightFalloff(${1:constant}, ${2:linear}, ${0:quadratic});
-snippet normal
- normal(${1:nx}, ${2:ny}, ${0:nz});
-snippet lightSpecular
- lightSpecular(${1:v1}, ${2:v2}, ${0:v3});
-snippet ambientLight
- ambientLight(${1:v1}, ${2:v2}, ${3:v3}${7:, ${4:x}, ${5:y}, ${0:z}});
-snippet spotLight
- spotLight(${1:v1}, ${2:v2}, ${3:v3}, ${4:x}, ${5:y}, ${6:z}, ${7:nx}, ${8:ny}, ${9:nz}, ${10:angle}, ${0:concentration});
-
-#camera
-snippet camera
- camera(${1:eyeX}, ${2:eyeY}, ${3:eyeZ}, ${4:centerX}, ${5:centerY}, ${6:centerZ}, ${7:upX}, ${8:upY}, ${0:upZ});
-snippet ortho
- ortho(${1:left}, ${2:right}, ${3:bottom}, ${4:top}, ${5:near}, ${0:far});
-snippet perspective
- perspective(${1:fov}, ${2:aspect}, ${3:zNear}, ${0:zFar});
-snippet frustrum
- frustrum(${1:left}, ${2:right}, ${3:bottom}, ${4:top}, ${5:near}, ${0:far});
-
-#transformations
-snippet rotate
- rotate${1:X}(${0:angle});
-snippet translate
- translate(${1:x}, ${2:y}${3:, }${0:z});
-snippet scale size
- scale(${0:size});
-snippet scale
- scale(${1:x}, ${2:y}${3:, }${0:z});
-
-#coordinates
-snippet coord
- ${1:model/screen}${2:X}(${3:x}, ${4:y}, ${0:z});
-
-#effects
-snippet brightness
- brightness(${0:color});
-snippet lerpColor
- lerpColor(${1:c1}, ${2:c2}, ${0:amt});
-snippet saturation
- saturation(${0:color});
-snippet hue
- hue(${0:color});
-snippet alpha
- alpha(${0:color});
-snippet tint
- tint(${1:value1}, ${2:value2}, ${3:value3}${4:, }${0:alpha});
-
-#pixel
-snippet set pixel
- set(${1:x}, ${2:y}, ${0:color/image});
-snippet pixels
- pixels[${0:index}]
-snippet get pixel
- get(${1:x}, ${2:y}${3:, }${4:width}${5:, }${0:height});
-
-#geometric figures
-snippet triangle
- triangle(${1:x1}, ${2:y1}, ${3:x2}, ${4:y2}, ${5:x3}, ${0:y3});
-snippet line
- line(${1:x1}, ${2:y1}, ${3:x2}, ${0:y2});
-snippet line 3D
- line(${1:x1}, ${2:y1}, ${3:z1}, ${4:x2}, ${5:y2}, ${0:z2});
-snippet arc
- arc(${1:x}, ${2:y}, ${3:width}, ${4:height}, ${5:start}, ${0:stop});
-snippet point
- point(${1:x}, ${2:y}${3:, }${0:z});
-snippet quad
- quad(${1:x1}, ${2:y1}, ${3:x2}, ${4:y2}, ${5:x3}, ${6:y3}, ${7:x4}, ${0:y4});
-snippet ellipse
- ellipse(${1:x}, ${2:y}, ${3:width}, ${0:height});
-snippet rect
- rect(${1:x}, ${2:y}, ${3:width}, ${0:height});
-snippet box
- box(${1:width}, ${2:height}, ${0:depth});
-snippet sphere
- sphere(${0:radius});
-snippet sphereDetails
- sphereDetail(${0:n});
-
-#array operations
-snippet split
- split("${1:str}"${2: , }${0:delimiter});
-snippet splitTokens
- splitTokens(${1:str}${2:, }${0:tokens});
-snippet join
- join(${1:strgArray}${2: , }${0:seperator});
-snippet shorten
- shorten(${0:array});
-snippet concat
- concat(${1:array1}, ${0:array2});
-snippet subset
- subset(${1:array}, ${0:offset});
-snippet append
- append(${1:array}, ${0:element});
-snippet reverse
- reverse(${0:array});
-snippet splice
- splice(${1:array}, ${2:value/array2}, ${0:index});
-snippet sort
- sort(${1:dataArray}${2:, }${0:count});
-snippet expand
- expand(${1:array}${2:, }${0:newSize});
-snippet arrayCopy
- arrayCopy(${1:src}, ${2:dest}, ${3:, }${0:length});
-
-#string operations
-snippet str
- str("${0:str}");
-snippet match
- match(${1:str}, ${0:regexp});
-snippet trim
- trim(${0:str});
-snippet nf
- nf(${2:value}, ${3:left}${4:, }${0:right});
-snippet nfs
- nfs(${2:value}, ${3:left}${4:, }${0:right});
-snippet nfp
- nfp(${2:value}, ${3:left}${4:, }${0:right});
-snippet nfc
- nfc(${1:value}${2:, }${0:right});
-
-#convert
-snippet unbinary
- unbinary("${0:str}"});
-snippet hexadecimal
- hex(${0:c});
-snippet unhex
- unhex(${0:c});
-snippet binary
- binary(${1:value}${2:, }${0:digits});
-
-#image operations
-snippet loadImage
- loadImage(${0:filename});
-snippet image
- image(${1:img}, ${2:x}, ${3:y}${4:, }${5:width}${6:, }${0:height});
-snippet copy
- copy(${1:srcImg}${2:, }${3:x}, ${4:y}, ${5:width}, ${6:height}, ${7:dx}, ${8:dy}, ${9:dwidth}, ${0:dheight});
-
-
-
-#containers
-snippet bg
- background(${1:value1}, ${2:value2}, ${3:value3}${4:, }${0:alpha});
-snippet pg
- PGraphics pg;
- pg = createGraphics(${1:width}, ${2:height}${3:, }${0:applet});
-snippet pimage
- PImage(${1:width}, ${0:height});
-
-#UTILS
-#fill
-snippet fill
- fill(${1:value1}, ${2:value2}, ${3:value3}${4:, }${0:alpha});
-#red
-snippet red
- red(${0:color});
-#green
-snippet green
- green(${0:color});
-#blue
-snippet blue
- blue(${0:color});
-#status
-snippet status
- status(${0:text});
-#param
-snippet param
- param(${0:s});
-#link
-snippet link
- link(${1:url}${2:, }${0:target});
-#@param
-snippet @
- @${1:param/return/private/public} ${1:parameter} ${0:description}
diff --git a/vim/snippets/vim-snippets/snippets/progress.snippets b/vim/snippets/vim-snippets/snippets/progress.snippets
deleted file mode 100644
index dee07a8..0000000
--- a/vim/snippets/vim-snippets/snippets/progress.snippets
+++ /dev/null
@@ -1,58 +0,0 @@
-# Progress/OpenEdge ABL snippets
-# define
-snippet defbuf
- DEFINE BUFFER b_${1:TableName} FOR $1 ${0}.
-snippet defvar
- DEFINE VARIABLE ${1:VariableName} AS ${0}.
-snippet nl
- NO-LOCK
-snippet ne
- NO-ERROR
-snippet nle
- NO-LOCK NO-ERROR
-snippet ini
- INITIAL ${0:?}
-snippet nu
- NO-UNDO
-snippet err
- ERROR
-snippet ff
- FIND FIRST ${1:BufferName}
- ${2:WHERE $1.${3}} ${0}
-snippet input
- DEFINE INPUT PARAMETER ${1:ParamName} AS ${0}.
-snippet output
- DEFINE OUTPUT PARAMETER ${1:ParamName} AS ${0:ParamType}.
-snippet proc
-
- /******************************************************************************/
-
- PROCEDURE ${1:ProcName}:
-
- ${0}
-
- END PROCEDURE. /* $1 */
-
- /******************************************************************************/
-
-snippet alert
- MESSAGE "${1:MessageContent}" ${2:Data} VIEW-AS ALERT-BOX.
-snippet if
- IF ${1:Condition}
- THEN ${2:Action}
- ${3:ELSE ${4:OtherWise}}
-snippet do
- DO${1: Clauses}:
- ${0}
- END.
-# datatypes
-snippet int
- INTEGER
-snippet char
- CHARACTER
-snippet log
- LOGICAL
-snippet dec
- DECIMAL
-snippet sep
- /* ------------------------------------------------------------------------- */
diff --git a/vim/snippets/vim-snippets/snippets/ps1.snippets b/vim/snippets/vim-snippets/snippets/ps1.snippets
deleted file mode 100644
index acab10c..0000000
--- a/vim/snippets/vim-snippets/snippets/ps1.snippets
+++ /dev/null
@@ -1,58 +0,0 @@
-# Snippets for
-# Authored by Trevor Sullivan
-
-# PowerShell Class
-snippet class
- class {
- [string] ${0:FirstName}
- }
-
-# PowerShell Advanced Function
-snippet function
- function {0:name} {
- [CmdletBinding()]
- param (
- [Parameter(Mandatory = $true)]
- [string] $Param1
- )
-
- begin {
- }
-
- process {
- }
-
- end {
- }
- }
-
-# PowerShell Splatting
-snippet splatting
- $Params = @{
- ${0:Param1} = 'Value1'
- ${1:Param2} = 'Value2'
- }
- ${3:CommandName}
-
-# PowerShell Enumeration
-snippet enum
- enum ${0:name} {
- ${1:item1}
- ${2:item2}
- }
-
-# PowerShell if..then
-snippet if
- if (${0:condition}) {
- ${1:statement}
- }
-
-# PowerShell While Loop
-snippet while
- while (${0:condition}) {
- ${1:statement}
- }
-
-# PowerShell Filter..Sort
-snippet filtersort
- ${0:command} | Where-Object -FilterScript { $PSItem.${1:property} -${2:operator} '${3:expression}' } | Sort-Object -Property ${4:sortproperty}
diff --git a/vim/snippets/vim-snippets/snippets/puppet.snippets b/vim/snippets/vim-snippets/snippets/puppet.snippets
deleted file mode 100644
index 9e9ceeb..0000000
--- a/vim/snippets/vim-snippets/snippets/puppet.snippets
+++ /dev/null
@@ -1,269 +0,0 @@
-# Snippets for use with VIM and http://www.vim.org/scripts/script.php?script_id=2540
-#
-# Please contact R.I.Pienaar for additions and feedback,
-# see it in action @ http://www.devco.net/archives/2009/09/22/vim_and_puppet.php
-
-# Header to match http://docs.puppetlabs.com/guides/style_guide.html#puppet-doc
-snippet classheader
- # == Class: ${1:`vim_snippets#Filename(expand('%:p:s?.*modules/??:h:h'), 'name')`}
- #
- # ${2:Full description of class $1 here}
- #
- # === Parameters
- #
- # Document parameters here.
- #
- # [*parameter1*]
- # Explanation of what this parameter affects and what it defaults to.
- # e.g. "Specify one or more upstream ntp servers as an array."
- #
- # === Variables
- #
- # Here you should define a list of variables that this module would require.
- #
- # [*variable1*]
- # Explanation of how this variable affects the funtion of this class and
- # if it has a default. e.g. "The parameter enc_ntp_servers must be set by the
- # External Node Classifier as a comma separated list of hostnames."
- #
- # === Examples
- #
- # class { '$1':
- # parameter1 => [ 'just', 'an', 'example', ]
- # }
- #
- # === Authors
- #
- # `g:snips_author` <`g:snips_email`>
- #
- # === Copyright
- #
- # Copyright `strftime("%Y")` `g:snips_author`
- #
- class $1 (${3}){
- ${4}
- }
-
-snippet defheader
- # == Define: ${1:`vim_snippets#Filename(expand('%:p:s?.*modules/??:r:s?/manifests/?::?'), 'name')`}
- #
- # ${2:Full description of defined resource type $1 here}
- #
- # === Parameters
- #
- # Document parameters here
- #
- # [*namevar*]
- # If there is a parameter that defaults to the value of the title string
- # when not explicitly set, you must always say so. This parameter can be
- # referred to as a "namevar," since it's functionally equivalent to the
- # namevar of a core resource type.
- #
- # [*basedir*]
- # Description of this variable. For example, "This parameter sets the
- # base directory for this resource type. It should not contain a trailing
- # slash."
- #
- # === Examples
- #
- # Provide some examples on how to use this type:
- #
- # $1 { 'namevar':
- # basedir => '/tmp/src',
- # }
- #
- # === Authors
- #
- # `g:snips_author` <`g:snips_email`>
- #
- # === Copyright
- #
- # Copyright `strftime("%Y")` `g:snips_author`
- #
- define $1(${3}) {
- ${4}
- }
-
-# Language Constructs
-snippet class
- class ${1:`vim_snippets#Filename('', 'name')`} {
- ${0}
- }
-snippet node
- node "${1:`vim_snippets#Filename('', 'fqdn')`}" {
- ${0}
- }
-snippet case
- case $${1:variable} {
- default: { ${0} }
- }
-snippet ife
- if $${1:variable} {
- ${2}
- } else {
- ${0}
- }
-snippet if
- if $${1:variable} {
- ${0}
- }
-snippet ifd
- if defined(${1:Resource}["${2:name}"]) {
- ${0}
- }
-snippet ifnd
- if !defined(${1:Resource}["${2:name}"]) {
- ${0}
- }
-snippet el
- else {
- ${0}
- }
-snippet ?
- ? {
- "${1}" => ${0}
- }
-#
-# blocks etc and general syntax sugar
-snippet [
- [ ${1} ]
-snippet >
- ${1} => ${0}
-snippet p:
- "puppet://puppet/${1:module name}/${0:file name}"
-#
-# Functions
-snippet alert
- alert("${1:message}")
-snippet crit
- crit("${1:message}")
-snippet debug
- debug("${1:message}")
-snippet defined
- defined(${1:Resource}["${2:name}"])
-snippet emerg
- emerg("${1:message}")
-snippet extlookup Simple extlookup
- extlookup("${1:variable}")
-snippet extlookup Extlookup with defaults
- extlookup("${1:variable}", "${2:default}")
-snippet extlookup Extlookup with defaults and custom data file
- extlookup("${1:variable}", "${2:default}", "${3:data source}")
-snippet fail
- fail("${1:message}")
-snippet info
- info("${1:message}")
-snippet inline_template
- inline_template("<%= ${1} %>")
-snippet notice
- notice("${1:message}")
-snippet realize
- realize(${1:Resource}[${2:name}])
-snippet regsubst
- regsubst(${1:hay stack}, ${2:needle}, "${3:replacement}")
-snippet inc
- include ${1:classname}
-snippet split
- split(${1:hay stack}, "${2:patten}")
-snippet versioncmp
- versioncmp("${1:version}", "${2:version}")
-snippet warning
- warning("${1:message}")
-#
-# Types
-snippet cron
- cron { "${1:name}":
- command => "${2}",
- user => "${3:root}",
- ${4} => ${0},
- }
-
-snippet exec
- exec { "${1:name}":
- command => "${2:$1}",
- user => "${3:root}",
- ${4} => ${0},
- }
-
-snippet user
- user { "${1:user}":
- ensure => present,
- comment => "${2:$1}",
- managehome => true,
- home => "${0:/home/$1}",
- }
-
-snippet group
- group { "${1:group}":
- ensure => ${0:present},
- }
-
-snippet host
- host { "${1:hostname}":
- ip => ${0:127.0.0.1},
- }
-
-snippet mailalias
- mailalias { "${1:localpart}":
- recipient => "${0:recipient}",
- }
-
-snippet mount
- mount { "${1:destination path}":
- ensure => ${2:mounted},
- device => "${0:device name or path}",
- }
-
-snippet package
- package { "${1:package name}":
- ensure => ${0:present},
- }
-
-snippet yumrepo
- yumrepo { "${1:repo name}":
- descr => "${2:$1}",
- enabled => ${0:1},
- }
-
-snippet define
- define ${1} (${2}) {
- ${0}
- }
-
-snippet service
- service { "${1:service}" :
- ensure => running,
- enable => true,
- require => [ Package["${2:package}"], File["${3:file}"], ],
- subscribe => [ File["${4:configfile1}"], File["${5:configfile2}"], Package["${6:package}"], ],
- }
-
-snippet file
- file { "${1:filename}" :
- ensure => ${2:present},
- owner => "${3:root}",
- group => "${4:root}",
- mode => "${5:0644}",
- source => "puppet:///modules/${6:module}/${7:source}",
- content => template("${8:module}/${9:template}"),
- alias => "${10:alias}",
- require => [ Package["${11:package}"], File["${12:file}"], ],
- }
-
-snippet archive
- archive { "${1:filename}" :
- ensure => ${2:present},
- url => "http://${3:url}",
- extension => "${4:tgz}",
- target => "${5:target}",
- checksum => ${6:false},
- src_target => "${7:/tmp}",
- }
-
-snippet firewall
- firewall { "${1:comment}" :
- proto => ${2:tcp},
- action => ${3:accept},
- port => ${4},
- }
-
diff --git a/vim/snippets/vim-snippets/snippets/purescript.snippets b/vim/snippets/vim-snippets/snippets/purescript.snippets
deleted file mode 100644
index cdbcbd2..0000000
--- a/vim/snippets/vim-snippets/snippets/purescript.snippets
+++ /dev/null
@@ -1,57 +0,0 @@
-snippet mod
- module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')`
- (
- ) where
-
- import Prelude
-
- ${0}
-snippet imp
- import ${0:Data.List}
-snippet impq
- import ${1:Data.List} as ${0:List}
-snippet fn0
- ${1:name} :: ${2:a}
- $1 = ${0:undefined}
-snippet fn
- ${1:fn} :: ${2:a} -> ${3:a}
- $1 ${4}= ${0}
-snippet fn1
- ${1:fn} :: ${2:a} -> ${3:a}
- $1 ${4}= ${0}
-snippet fn2
- ${1:fn} :: ${2:a} -> ${3:a} -> ${4:a}
- $1 ${5}= ${0}
-snippet fn3
- ${1:fn} :: ${2:a} -> ${3:a} -> ${4:a} -> ${5:a}
- $1 ${6}= ${0}
-snippet case
- case ${1} of
- ${2} -> ${0}
-snippet let
- let
- ${1} = ${2}
- in
- ${3}
-snippet where
- where
- ${1} = ${0}
-snippet testunit
- module Test.Main where
-
- import Prelude
- import Test.Unit (suite, test)
- import Test.Unit.Main (runTest)
- import Test.Unit.Assert as Assert
-
- main = runTest do
- suite "${1}" do
- test "${2:the tests run}" do
- Assert.equal
- "Hello, world!"
- "Hello, sailor!"
-snippet if
- if ${1} then
- ${2:${VISUAL}}
- else
- ${0}
diff --git a/vim/snippets/vim-snippets/snippets/python.snippets b/vim/snippets/vim-snippets/snippets/python.snippets
deleted file mode 100644
index 9e35a2f..0000000
--- a/vim/snippets/vim-snippets/snippets/python.snippets
+++ /dev/null
@@ -1,242 +0,0 @@
-snippet #!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
-snippet #!3
- #!/usr/bin/env python3
- # -*- coding: utf-8 -*-
-snippet imp
- import ${0:module}
-snippet uni
- def __unicode__(self):
- ${0:representation}
-snippet from
- from ${1:package} import ${0:module}
-# Module Docstring
-snippet docs
- """
- File: ${1:`vim_snippets#Filename('$1.py', 'foo.py')`}
- Author: `g:snips_author`
- Email: `g:snips_email`
- Github: `g:snips_github`
- Description: ${0}
- """
-
-snippet wh
- while ${1:condition}:
- ${0:${VISUAL}}
-# dowh - does the same as do...while in other languages
-snippet dowh
- while True:
- ${1}
- if ${0:condition}:
- break
-snippet with
- with ${1:expr} as ${2:var}:
- ${0:${VISUAL}}
-# New Class
-snippet cl
- class ${1:ClassName}(${2:object}):
- """${3:docstring for $1}"""
- def __init__(self, ${4:arg}):
- ${5:super($1, self).__init__()}
- self.$4 = $4
- ${0}
-# New Function
-snippet def
- def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
- """${3:docstring for $1}"""
- ${0}
-snippet deff
- def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
- ${0}
-# New Method
-snippet defm
- def ${1:mname}(self, ${2:arg}):
- ${0}
-# New Property
-snippet property
- def ${1:foo}():
- doc = "${2:The $1 property.}"
- def fget(self):
- ${3:return self._$1}
- def fset(self, value):
- ${4:self._$1 = value}
- def fdel(self):
- ${0:del self._$1}
- return locals()
- $1 = property(**$1())
-# Ifs
-snippet if
- if ${1:condition}:
- ${0:${VISUAL}}
-snippet el
- else:
- ${0:${VISUAL}}
-snippet ei
- elif ${1:condition}:
- ${0:${VISUAL}}
-# For
-snippet for
- for ${1:item} in ${2:items}:
- ${0}
-# Encodes
-snippet cutf8
- # -*- coding: utf-8 -*-
-snippet clatin1
- # -*- coding: latin-1 -*-
-snippet cascii
- # -*- coding: ascii -*-
-# Lambda
-snippet ld
- ${1:var} = lambda ${2:vars} : ${0:action}
-snippet .
- self.
-snippet try Try/Except
- try:
- ${1:${VISUAL}}
- except ${2:Exception} as ${3:e}:
- ${0:raise $3}
-snippet try Try/Except/Else
- try:
- ${1:${VISUAL}}
- except ${2:Exception} as ${3:e}:
- ${4:raise $3}
- else:
- ${0}
-snippet try Try/Except/Finally
- try:
- ${1:${VISUAL}}
- except ${2:Exception} as ${3:e}:
- ${4:raise $3}
- finally:
- ${0}
-snippet try Try/Except/Else/Finally
- try:
- ${1:${VISUAL}}
- except ${2:Exception} as ${3:e}:
- ${4:raise $3}
- else:
- ${5}
- finally:
- ${0}
-# if __name__ == '__main__':
-snippet ifmain
- if __name__ == '__main__':
- ${0:main()}
-# __magic__
-snippet _
- __${1:init}__
-# python debugger (pdb)
-snippet pdb
- import pdb
- pdb.set_trace()
-# bpython debugger (bpdb)
-snippet bpdb
- import bpdb
- bpdb.set_trace()
-# ipython debugger (ipdb)
-snippet ipdb
- import ipdb
- ipdb.set_trace()
-# embed ipython itself
-snippet iem
- import IPython
- IPython.embed()
-# remote python debugger (rpdb)
-snippet rpdb
- import rpdb
- rpdb.set_trace()
-# web python debugger (wdb)
-snippet wdb
- import wdb
- wdb.set_trace()
-# ptpython
-snippet ptpython
- from ptpython.repl import embed
- embed(globals(), locals(), vi_mode=${1:False}, history_filename=${2:None})
-# python console debugger (pudb)
-snippet pudb
- import pudb
- pudb.set_trace()
-# pdb in nosetests
-snippet nosetrace
- from nose.tools import set_trace
- set_trace()
-snippet pprint
- import pprint
- pprint.pprint(${1})
-snippet "
- """${0:doc}
- """
-# assertions
-snippet a=
- self.assertEqual(${0}, ${1})
-# test function/method
-snippet test
- def test_${1:description}(${2:`indent('.') ? 'self' : ''`}):
- ${0}
-# test case
-snippet testcase
- class ${1:ExampleCase}(unittest.TestCase):
-
- def test_${2:description}(self):
- ${0}
-snippet fut
- from __future__ import ${0}
-#getopt
-snippet getopt
- try:
- # Short option syntax: "hv:"
- # Long option syntax: "help" or "verbose="
- opts, args = getopt.getopt(sys.argv[1:], "${1:short_options}", [${2:long_options}])
-
- except getopt.GetoptError, err:
- # Print debug info
- print str(err)
- ${3:error_action}
-
- for option, argument in opts:
- if option in ("-h", "--help"):
- ${0}
- elif option in ("-v", "--verbose"):
- verbose = argument
-# logging
-# glog = get log
-snippet glog
- import logging
- logger = logging.getLogger(${0:__name__})
-snippet le
- logger.error(${0:msg})
-# conflict with lambda=ld, therefor we change into Logger.debuG
-snippet lg
- logger.debug(${0:msg})
-snippet lw
- logger.warning(${0:msg})
-snippet lc
- logger.critical(${0:msg})
-snippet li
- logger.info(${0:msg})
-snippet epydoc
- """${1:Description}
-
- @param ${2:param}: ${3: Description}
- @type $2: ${4: Type}
-
- @return: ${5: Description}
- @rtype : ${6: Type}
-
- @raise e: ${0: Description}
- """
-snippet dol
- def ${1:__init__}(self, *args, **kwargs):
- super(${0:ClassName}, self).$1(*args, **kwargs)
-snippet kwg
- self.${1:var_name} = kwargs.get('$1', ${2:None})
-snippet lkwg
- ${1:var_name} = kwargs.get('$1', ${2:None})
-snippet args
- *args${1:,}${0}
-snippet kwargs
- **kwargs${1:,}${0}
-snippet akw
- *args, **kwargs${1:,}${0}
diff --git a/vim/snippets/vim-snippets/snippets/r.snippets b/vim/snippets/vim-snippets/snippets/r.snippets
deleted file mode 100644
index 7bdeeec..0000000
--- a/vim/snippets/vim-snippets/snippets/r.snippets
+++ /dev/null
@@ -1,131 +0,0 @@
-snippet #!
- #!/usr/bin/env Rscript
-
-# includes
-snippet lib
- library(${0:package})
-snippet req
- require(${0:package})
-snippet source
- source('${0:file}')
-
-# conditionals
-snippet if
- if (${1:condition}) {
- ${0}
- }
-snippet el
- else {
- ${0}
- }
-snippet ei
- else if (${1:condition}) {
- ${0}
- }
-
-# loops
-snippet wh
- while(${1}) {
- ${2}
- }
-snippet for
- for (${1:item} in ${2:list}) {
- ${3}
- }
-
-# functions
-snippet fun
- ${1:name} <- function (${2:variables}) {
- ${0}
- }
-snippet ret
- return(${0})
-
-# dataframes, lists, etc
-snippet df
- ${1:name}[${2:rows}, ${0:cols}]
-snippet c
- c(${0:items})
-snippet li
- list(${0:items})
-snippet mat
- matrix(${1:data}, nrow = ${2:rows}, ncol = ${0:cols})
-
-# apply functions
-snippet apply
- apply(${1:array}, ${2:margin}, ${0:function})
-snippet lapply
- lapply(${1:list}, ${0:function})
-snippet sapply
- lapply(${1:list}, ${0:function})
-snippet vapply
- vapply(${1:list}, ${2:function}, ${0:type})
-snippet mapply
- mapply(${1:function}, ${0:...})
-snippet tapply
- tapply(${1:vector}, ${2:index}, ${0:function})
-snippet rapply
- rapply(${1:list}, ${0:function})
-
-# plyr functions
-snippet dd
- ddply(${1:frame}, ${2:variables}, ${0:function})
-snippet dl
- dlply(${1:frame}, ${2:variables}, ${0:function})
-snippet da
- daply(${1:frame}, ${2:variables}, ${0:function})
-snippet d_
- d_ply(${1:frame}, ${2:variables}, ${0:function})
-
-snippet ad
- adply(${1:array}, ${2:margin}, ${0:function})
-snippet al
- alply(${1:array}, ${2:margin}, ${0:function})
-snippet aa
- aaply(${1:array}, ${2:margin}, ${0:function})
-snippet a_
- a_ply(${1:array}, ${2:margin}, ${0:function})
-
-snippet ld
- ldply(${1:list}, ${0:function})
-snippet ll
- llply(${1:list}, ${0:function})
-snippet la
- laply(${1:list}, ${0:function})
-snippet l_
- l_ply(${1:list}, ${0:function})
-
-snippet md
- mdply(${1:matrix}, ${0:function})
-snippet ml
- mlply(${1:matrix}, ${0:function})
-snippet ma
- maply(${1:matrix}, ${0:function})
-snippet m_
- m_ply(${1:matrix}, ${0:function})
-
-# plot functions
-snippet pl
- plot(${1:x}, ${0:y})
-snippet ggp
- ggplot(${1:data}, aes(${0:aesthetics}))
-snippet img
- ${1:(jpeg,bmp,png,tiff)}(filename = '${2:filename}', width = ${3}, height = ${4}, unit = '${5}')
- ${0:plot}
- dev.off()
-
-# statistical test functions
-snippet fis
- fisher.test(${1:x}, ${0:y})
-snippet chi
- chisq.test(${1:x}, ${0:y})
-snippet tt
- t.test(${1:x}, ${0:y})
-snippet wil
- wilcox.test(${1:x}, ${0:y})
-snippet cor
- cor.test(${1:x}, ${0:y})
-snippet fte
- var.test(${1:x}, ${0:y})
-snippet kvt
- kv.test(${1:x}, ${0:y})
diff --git a/vim/snippets/vim-snippets/snippets/rails.snippets b/vim/snippets/vim-snippets/snippets/rails.snippets
deleted file mode 100644
index 6a5c5ff..0000000
--- a/vim/snippets/vim-snippets/snippets/rails.snippets
+++ /dev/null
@@ -1,490 +0,0 @@
-snippet art
- assert_redirected_to ${1:action}: '${2:index}'
-snippet artnp
- assert_redirected_to ${1:parent}_${2:child}_path(${3:@$1}, ${0:@$2})
-snippet artnpp
- assert_redirected_to ${1:parent}_${2:child}_path(${0:@$1})
-snippet artp
- assert_redirected_to ${1:model}_path(${0:@$1})
-snippet artpp
- assert_redirected_to ${0:model}s_path
-snippet asd
- assert_difference '${1:Model}.${2:count}', ${3:1} do
- ${0}
- end
-snippet asnd
- assert_no_difference '${1:Model}.${2:count}' do
- ${0}
- end
-snippet asre
- assert_response :${1:success}, @response.body
-snippet asrj
- assert_rjs :${1:replace}, '${0:dom id}'
-snippet ass assert_select(..)
- assert_select '${1:path}', ${2:text}: '${3:inner_html}' ${4:do}
- ${0}
- end
-snippet ba
- before_action :${0:method}
-snippet bf
- before_filter :${0:method}
-snippet bt
- belongs_to :${0:association}
-snippet btp
- belongs_to :${1:association}, polymorphic: true
-snippet crw
- cattr_accessor :${0:attr_names}
-snippet defcreate
- def create
- @${1:model_class_name} = ${2:ModelClassName}.new($1_params)
-
- respond_to do |format|
- if @$1.save
- flash[:notice] = '$2 was successfully created.'
- format.html { redirect_to(@$1) }
- format.xml { render xml: @$1, status: :created, location: @$1 }
- else
- format.html { render action: 'new' }
- format.xml { render xml: @$1.errors, status: :unprocessable_entity }
- end
- end
- end
-snippet defdestroy
- def destroy
- @${1:model_class_name} = ${2:ModelClassName}.find(params[:id])
- @$1.destroy
-
- respond_to do |format|
- format.html { redirect_to($1s_url) }
- format.xml { head :ok }
- end
- end
-snippet defedit
- def edit
- @${1:model_class_name} = ${0:ModelClassName}.find(params[:id])
- end
-snippet defindex
- def index
- @${1:model_class_name} = ${2:ModelClassName}.all
-
- respond_to do |format|
- format.html # index.html.erb
- format.xml { render xml: @$1s }
- end
- end
-snippet defnew
- def new
- @${1:model_class_name} = ${2:ModelClassName}.new
-
- respond_to do |format|
- format.html # new.html.erb
- format.xml { render xml: @$1 }
- end
- end
-snippet defshow
- def show
- @${1:model_class_name} = ${2:ModelClassName}.find(params[:id])
-
- respond_to do |format|
- format.html # show.html.erb
- format.xml { render xml: @$1 }
- end
- end
-snippet defupdate
- def update
- @${1:model_class_name} = ${2:ModelClassName}.find(params[:id])
-
- respond_to do |format|
- if @$1.update($1_params)
- flash[:notice] = '$2 was successfully updated.'
- format.html { redirect_to(@$1) }
- format.xml { head :ok }
- else
- format.html { render action: 'edit' }
- format.xml { render xml: @$1.errors, status: :unprocessable_entity }
- end
- end
- end
-snippet defparams
- def ${1:model_class_name}_params
- params.require(:$1).permit()
- end
-snippet dele delegate .. to
- delegate :${1:methods}, to: :${0:object}
-snippet dele delegate .. to .. prefix .. allow_nil
- delegate :${1:methods}, to: :${2:object}, prefix: :${3:prefix}, allow_nil: ${0:allow_nil}
-snippet amc
- alias_method_chain :${1:method_name}, :${0:feature}
-snippet flash
- flash[:${1:notice}] = '${0}'
-snippet habtm
- has_and_belongs_to_many :${1:object}, join_table: '${2:table_name}', foreign_key: '${3}_id'
-snippet hm
- has_many :${0:object}
-snippet hmd
- has_many :${1:other}s, class_name: '${2:$1}', foreign_key: '${3:$1}_id', dependent: :destroy
-snippet hmt
- has_many :${1:object}, through: :${0:object}
-snippet ho
- has_one :${0:object}
-snippet hod
- has_one :${1:object}, dependent: :${0:destroy}
-snippet i18
- I18n.t('${1:type.key}')
-snippet ist
- <%= image_submit_tag('${1:agree.png}', id: '${2:id}'${0}) %>
-snippet log
- Rails.logger.${1:debug} ${0}
-snippet log2
- RAILS_DEFAULT_LOGGER.${1:debug} ${0}
-snippet logd
- logger.debug { '${1:message}' }
-snippet loge
- logger.error { '${1:message}' }
-snippet logf
- logger.fatal { '${1:message}' }
-snippet logi
- logger.info { '${1:message}' }
-snippet logw
- logger.warn { '${1:message}' }
-snippet mapc
- ${1:map}.${2:connect} '${0:controller/:action/:id}'
-snippet mapca
- ${1:map}.catch_all '*${2:anything}', controller: '${3:default}', action: '${4:error}'
-snippet mapr
- ${1:map}.resource :${0:resource}
-snippet maprs
- ${1:map}.resources :${0:resource}
-snippet mapwo
- ${1:map}.with_options ${2:controller}: '${3:thing}' do |$3|
- ${0}
- end
-
-###############################
-# model callback snippets #
-###############################
-
-# before callback
-snippet mbv
- before_validation :${0:method}
-snippet mbc
- before_create :${0:method}
-snippet mbu
- before_update :${0:method}
-snippet mbs
- before_save :${0:method}
-snippet mbd
- before_destroy :${0:method}
-
-# after callback
-snippet mav
- after_validation :${0:method}
-snippet maf
- after_find :${0:method}
-snippet mat
- after_touch :${0:method}
-snippet macr
- after_create :${0:method}
-snippet mau
- after_update :${0:method}
-snippet mas
- after_save :${0:method}
-snippet mad
- after_destroy :${0:method}
-
-# around callback
-snippet marc
- around_create :${0:method}
-snippet maru
- around_update :${0:method}
-snippet mars
- around_save :${0:method}
-snippet mard
- around_destroy :${0:method}
-
-snippet mcht
- change_table :${1:table_name} do |t|
- ${0}
- end
-snippet mp
- map(&:${0:id})
-snippet mrw
- mattr_accessor :${0:attr_names}
-snippet oa
- order('${0:field}')
-snippet od
- order('${0:field} DESC')
-snippet pa
- params[:${1:id}]
-snippet ra
- render action: '${0:action}'
-snippet ral
- render action: '${1:action}', layout: '${0:layoutname}'
-snippet rest
- respond_to do |format|
- format.${1:html} { ${0} }
- end
-snippet rf
- render file: '${0:filepath}'
-snippet rfu
- render file: '${1:filepath}', use_full_path: ${0:false}
-snippet ri
- render inline: "${0:<%= 'hello' %>}"
-snippet ril
- render inline: "${1:<%= 'hello' %>}", locals: { ${2:name}: '${3:value}'${0} }
-snippet rit
- render inline: "${1:<%= 'hello' %>}", type: ${0::rxml}
-snippet rjson
- render json: '${0:text to render}'
-snippet rl
- render layout: '${0:layoutname}'
-snippet rn
- render nothing: ${0:true}
-snippet rns
- render nothing: ${1:true}, status: ${0:401}
-snippet rp
- render partial: '${0:item}'
-snippet rpc
- render partial: '${1:item}', collection: ${0:@$1s}
-snippet rpl
- render partial: '${1:item}', locals: { ${2:$1}: ${0:@$1} }
-snippet rpo
- render partial: '${1:item}', object: ${0:@$1}
-snippet rps
- render partial: '${1:item}', status: ${0:500}
-snippet rt
- render text: '${0:text to render}'
-snippet rtl
- render text: '${1:text to render}', layout: '${0:layoutname}'
-snippet rtlt
- render text: '${1:text to render}', layout: ${0:true}
-snippet rts
- render text: '${1:text to render}', status: ${0:401}
-snippet ru
- render :update do |${1:page}|
- $1.${0}
- end
-snippet rxml
- render xml: '${0:text to render}'
-snippet sc
- scope :${1:name}, -> { where(${2:field}: ${0:value}) }
-snippet sl
- scope :${1:name}, lambda do |${2:value}|
- where('${3:field = ?}', ${0:value})
- end
-snippet sha1
- Digest::SHA1.hexdigest(${0:string})
-snippet sweeper
- class ${1:ModelClassName}Sweeper < ActionController::Caching::Sweeper
- observe $1
-
- def after_save(${0:model_class_name})
- expire_cache($2)
- end
-
- def after_destroy($2)
- expire_cache($2)
- end
-
- def expire_cache($2)
- expire_page
- end
- end
-snippet va validates_associated
- validates_associated :${0:attribute}
-snippet va validates .., acceptance: true
- validates :${0:terms}, acceptance: true
-snippet vc
- validates :${0:attribute}, confirmation: true
-snippet ve
- validates :${1:attribute}, exclusion: { in: ${0:%w( mov avi )} }
-snippet vf
- validates :${1:attribute}, format: { with: /${0:regex}/ }
-snippet vi
- validates :${1:attribute}, inclusion: { in: %w(${0: mov avi }) }
-snippet vl
- validates :${1:attribute}, length: { in: ${2:3}..${0:20} }
-snippet vn
- validates :${0:attribute}, numericality: true
-snippet vp
- validates :${0:attribute}, presence: true
-snippet vu
- validates :${0:attribute}, uniqueness: true
-snippet format
- format.${1:js|xml|html} { ${0} }
-snippet wc
- where(${1:'conditions'}${0:, bind_var})
-snippet wf
- where(${1:field}: ${0:value})
-snippet xdelete
- xhr :delete, :${1:destroy}, id: ${2:1}
-snippet xget
- xhr :get, :${1:show}, id: ${2:1}
-snippet xpost
- xhr :post, :${1:create}, ${2:object}: ${3:object}
-snippet xput
- xhr :put, :${1:update}, id: ${2:1}, ${3:object}: ${4:object}
-snippet test
- test '${1:should do something}' do
- ${0}
- end
-###########################
-# migrations snippets #
-###########################
-snippet mac
- add_column :${1:table_name}, :${2:column_name}, :${0:data_type}
-snippet mai
- add_index :${1:table_name}, :${0:column_name}
-snippet mrc
- remove_column :${1:table_name}, :${0:column_name}
-snippet mrnc
- rename_column :${1:table_name}, :${2:old_column_name}, :${0:new_column_name}
-snippet mcc
- change_column :${1:table}, :${2:column}, :${0:type}
-snippet mnc
- t.${1:string} :${2:title}${3:, null: false}
-snippet mct
- create_table :${1:table_name} do |t|
- ${0}
- end
-snippet migration class .. < ActiveRecord::Migration .. def up .. def down .. end
- class `substitute( substitute(vim_snippets#Filename(), '^\d\+_', '',''), '\(_\|^\)\(.\)', '\u\2', 'g')` < ActiveRecord::Migration
- def up
- ${0}
- end
-
- def down
- end
- end
-snippet migration class .. < ActiveRecord::Migration .. def change .. end
- class `substitute( substitute(vim_snippets#Filename(), '^\d\+_', '',''), '\(_\|^\)\(.\)', '\u\2', 'g')` < ActiveRecord::Migration
- def change
- ${0}
- end
- end
-snippet trc
- t.remove :${0:column}
-snippet tre
- t.rename :${1:old_column_name}, :${2:new_column_name}
- ${0}
-snippet tref
- t.references :${0:model}
-snippet tcb
- t.boolean :${1:title}
- ${0}
-snippet tcbi
- t.binary :${1:title}, limit: ${2:2}.megabytes
- ${0}
-snippet tcd
- t.decimal :${1:title}, precision: ${2:10}, scale: ${3:2}
- ${0}
-snippet tcda
- t.date :${1:title}
- ${0}
-snippet tcdt
- t.datetime :${1:title}
- ${0}
-snippet tcf
- t.float :${1:title}
- ${0}
-snippet tch
- t.change :${1:name}, :${2:string}, ${3:limit}: ${4:80}
- ${0}
-snippet tci
- t.integer :${1:title}
- ${0}
-snippet tcl
- t.integer :lock_version, null: false, default: 0
- ${0}
-snippet tcr
- t.references :${1:taggable}, polymorphic: { default: '${2:Photo}' }
- ${0}
-snippet tcs
- t.string :${1:title}
- ${0}
-snippet tct
- t.text :${1:title}
- ${0}
-snippet tcti
- t.time :${1:title}
- ${0}
-snippet tcts
- t.timestamp :${1:title}
- ${0}
-snippet tctss
- t.timestamps
- ${0}
-##########################
-# Rspec snippets #
-##########################
-#ShouldaMatchers#ActionController
-snippet isfp
- it { should filter_param :${0:key} }
-snippet isrt
- it { should redirect_to ${0:url} }
-snippet isrtp
- it { should render_template ${0} }
-snippet isrwl
- it { should render_with_layout ${0} }
-snippet isrf
- it { should rescue_from ${0:exception} }
-snippet isrw
- it { should respond_with ${0:status} }
-snippet isr
- it { should route(:${1:method}, '${0:path}') }
-snippet isss
- it { should set_session :${0:key} }
-snippet issf
- it { should set_the_flash('${0}') }
-#ShouldaMatchers#ActiveModel
-snippet isama
- it { should allow_mass_assignment_of :${0} }
-snippet isav
- it { should allow_value(${1}).for :${0} }
-snippet isee
- it { should ensure_exclusion_of :${0} }
-snippet isei
- it { should ensure_inclusion_of :${0} }
-snippet isel
- it { should ensure_length_of :${0} }
-snippet isva
- it { should validate_acceptance_of :${0} }
-snippet isvc
- it { should validate_confirmation_of :${0} }
-snippet isvn
- it { should validate_numericality_of :${0} }
-snippet isvp
- it { should validate_presence_of :${0} }
-snippet isvu
- it { should validate_uniqueness_of :${0} }
-#ShouldaMatchers#ActiveRecord
-snippet isana
- it { should accept_nested_attributes_for :${0} }
-snippet isbt
- it { should belong_to :${0} }
-snippet isbtcc
- it { should belong_to(:${1}).counter_cache ${0:true} }
-snippet ishbtm
- it { should have_and_belong_to_many :${0} }
-snippet isbv
- it { should be_valid }
-snippet ishc
- it { should have_db_column :${0} }
-snippet ishi
- it { should have_db_index :${0} }
-snippet ishm
- it { should have_many :${0} }
-snippet ishmt
- it { should have_many(:${1}).through :${0} }
-snippet isho
- it { should have_one :${0} }
-snippet ishro
- it { should have_readonly_attribute :${0} }
-snippet iss
- it { should serialize :${0} }
-snippet isres
- it { should respond_to :${0} }
-snippet isresw
- it { should respond_to(:${1}).with(${0}).arguments }
-snippet super_call
- ${1:super_class}.instance_method(:${0:method}).bind(self).call
diff --git a/vim/snippets/vim-snippets/snippets/rst.snippets b/vim/snippets/vim-snippets/snippets/rst.snippets
deleted file mode 100644
index dd47863..0000000
--- a/vim/snippets/vim-snippets/snippets/rst.snippets
+++ /dev/null
@@ -1,98 +0,0 @@
-# rst
-
-snippet :
- :${1:field name}: ${0:field body}
-snippet *
- *${1:Emphasis}* ${0}
-snippet **
- **${1:Strong emphasis}** ${0}
-snippet _
- \`${1:hyperlink-name}\`_
- .. _\`$1\`: ${0:link-block}
-snippet =
- ${1:Title}
- =====${2:=}
- ${0}
-snippet -
- ${1:Title}
- -----${2:-}
- ${0}
-#some directive
-snippet img:
- .. |${0:alias}| image:: ${1:img}
-snippet fig:
- .. figure:: ${1:img}
- :alt: ${0:alter text}
-
- $2
-snippet cont:
- .. contents::
- ${0:content}
-snippet code:
- .. code:: ${1:type}
-
- ${0:write some code}
-snippet tip:
- .. tip::
- ${0:my tips}
-snippet not:
- .. note::
- ${0:my notes}
-snippet war:
- .. warning::
- ${0:attention!}
-snippet imp:
- .. important::
- ${0:this is importatnt}
-snippet att:
- .. attention::
- ${0:hey!}
-snippet dan:
- .. danger::
- ${0:ah!}
-snippet err:
- .. error::
- ${0:Error occur}
-snippet cau:
- .. caution::
- ${0:Watch out!}
-#Sphinx only
-snippet sid:
- .. sidebar:: ${1:Title}
-
- ${0}
-snippet tod:
- .. todo::
- ${0}
-snippet lis:
- .. list-table:: ${0:Title}
- :header-rows: 1
- :stub-columns: 1
-
- * - x1,y1
- - x2,y1
- - x3,y1
- * - x1,y2
- - x2,y2
- - x3,y2
- * - x1,y3
- - x2,y3
- - x3,y3
-
-snippet toc:
- .. toctree::
- :maxdepth: 2
-
- ${0}
-snippet dow:
- :download:\`${0:text} <${1:path}>\`
-snippet ref:
- :ref:\`${0:text} <${1:path}>\`
-snippet doc:
- :doc:`${0:text} <${1:path}>`
-# CJK optimize, CJK has no space between charaters
-snippet *c
- \ *${1:Emphasis}*\ ${0}
-snippet **c
- \ **${1:Strong emphasis}**\ ${0}
-
diff --git a/vim/snippets/vim-snippets/snippets/ruby.snippets b/vim/snippets/vim-snippets/snippets/ruby.snippets
deleted file mode 100644
index 3f909a0..0000000
--- a/vim/snippets/vim-snippets/snippets/ruby.snippets
+++ /dev/null
@@ -1,716 +0,0 @@
-snippet enc
- # encoding: utf-8
-snippet frozen
- # frozen_string_literal: true
-snippet #!
- #!/usr/bin/env ruby
-# New Block
-snippet =b
- =begin rdoc
- ${0}
- =end
-snippet prot
- protected
-
- ${0}
-snippet priv
- private
-
- ${0}
-snippet y
- :yields: ${0:arguments}
-snippet rb
- #!/usr/bin/env ruby -wKU
-snippet beg
- begin
- ${0}
- rescue ${1:Exception} => ${2:e}
- end
-snippet req require
- require '${1}'
-snippet reqr
- require_relative '${1}'
-snippet #
- # =>
-snippet case
- case ${1:object}
- when ${2:condition}
- ${0}
- end
-snippet when
- when ${1:condition}
- ${0:${VISUAL}}
-snippet def
- def ${1:method_name}
- ${0}
- end
-snippet deft
- def test_${1:case_name}
- ${0}
- end
-snippet descendants
- class Class
- def descendants
- ObjectSpace.each_object(::Class).select { |klass| klass < self }
- end
- end
-snippet if
- if ${1:condition}
- ${0:${VISUAL}}
- end
-snippet ife
- if ${1:condition}
- ${2:${VISUAL}}
- else
- ${0}
- end
-snippet eif
- elsif ${1:condition}
- ${0:${VISUAL}}
-snippet ifee
- if ${1:condition}
- $2
- elsif ${3:condition}
- $4
- else
- $0
- end
-snippet unless
- unless ${1:condition}
- ${0:${VISUAL}}
- end
-snippet unlesse
- unless ${1:condition}
- $2
- else
- $0
- end
-snippet unlesee
- unless ${1:condition}
- $2
- elsif ${3:condition}
- $4
- else
- $0
- end
-snippet wh
- while ${1:condition}
- ${0:${VISUAL}}
- end
-snippet for
- for ${1:e} in ${2:c}
- ${0}
- end
-snippet until
- until ${1:condition}
- ${0:${VISUAL}}
- end
-snippet cla class .. end
- class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
- ${0}
- end
-snippet clai class .. initialize .. end
- class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
- def initialize(${2:args})
- ${0}
- end
- end
-snippet cla< class .. < ParentClass .. initialize .. end
- class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} < ${2:ParentClass}
- def initialize(${3:args})
- ${0}
- end
- end
-snippet blankslate class BlankSlate .. initialize .. end
- class ${0:BlankSlate}
- instance_methods.each { |meth| undef_method(meth) unless meth =~ /\A__/ }
- end
-snippet claself class << self .. end
- class << ${1:self}
- ${0}
- end
-# class .. < DelegateClass .. initialize .. end
-snippet cla-
- class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} < DelegateClass(${2:ParentClass})
- def initialize(${3:args})
- super(${4:del_obj})
-
- ${0}
- end
- end
-snippet mod module .. end
- module ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
- ${0}
- end
-# attr_reader
-snippet r
- attr_reader :${0:attr_names}
-# attr_writer
-snippet w
- attr_writer :${0:attr_names}
-# attr_accessor
-snippet rw
- attr_accessor :${0:attr_names}
-snippet atp
- attr_protected :${0:attr_names}
-snippet ata
- attr_accessible :${0:attr_names}
-snippet ana
- accepts_nested_attributes_for :${0:association}
-# ivc == instance variable cache
-snippet ivc
- @${1:variable_name} ||= ${0:cached_value}
-# include Enumerable
-snippet Enum
- include Enumerable
-
- def each(&block)
- ${0}
- end
-# include Comparable
-snippet Comp
- include Comparable
-
- def <=>(other)
- ${0}
- end
-# extend Forwardable
-snippet Forw-
- extend Forwardable
-# def self
-snippet defs
- def self.${1:class_method_name}
- ${0}
- end
-# def initialize
-snippet definit
- def initialize(${1:args})
- ${0}
- end
-# def method_missing
-snippet defmm
- def method_missing(meth, *args, &blk)
- ${0}
- end
-snippet defd
- def_delegator :${1:@del_obj}, :${2:del_meth}, :${0:new_name}
-snippet defds
- def_delegators :${1:@del_obj}, :${0:del_methods}
-snippet am
- alias_method :${1:new_name}, :${0:old_name}
-snippet app
- if __FILE__ == $PROGRAM_NAME
- ${0}
- end
-# usage_if()
-snippet usai
- if ARGV.${1}
- abort "Usage: #{$PROGRAM_NAME} ${2:ARGS_GO_HERE}"${0}
- end
-# usage_unless()
-snippet usau
- unless ARGV.${1}
- abort "Usage: #{$PROGRAM_NAME} ${2:ARGS_GO_HERE}"${0}
- end
-snippet array
- Array.new(${1:10}) { |${2:i}| ${0} }
-snippet hash
- Hash.new { |${1:hash}, ${2:key}| $1[$2] = ${0} }
-snippet file File.foreach() { |line| .. }
- File.foreach(${1:'path/to/file'}) { |${2:line}| ${0} }
-snippet file File.read()
- File.read(${1:'path/to/file'})
-snippet Dir Dir.global() { |file| .. }
- Dir.glob(${1:'dir/glob/*'}) { |${2:file}| ${0} }
-snippet Dir Dir[".."]
- Dir[${1:'glob/**/*.rb'}]
-snippet dir
- Filename.dirname(__FILE__)
-snippet deli
- delete_if { |${1:e}| ${0} }
-snippet fil
- fill(${1:range}) { |${2:i}| ${0} }
-# flatten_once()
-snippet flao
- reduce(Array.new) { |${1:arr}, ${2:a}| $1.push(*$2) }
-snippet zip
- zip(${1:enums}) { |${2:row}| ${0} }
-# downto(0) { |n| .. }
-snippet dow
- downto(${1:0}) { |${2:n}| ${0} }
-snippet ste
- step(${1:2}) { |${2:n}| ${0} }
-snippet tim
- times { |${1:n}| ${0} }
-snippet upt
- upto(${1:1.0/0.0}) { |${2:n}| ${0} }
-snippet loo
- loop { ${0} }
-snippet ea
- each { |${1:e}| ${0} }
-snippet ead
- each do |${1:e}|
- ${0}
- end
-snippet eab
- each_byte { |${1:byte}| ${0} }
-snippet eac- each_char { |chr| .. }
- each_char { |${1:chr}| ${0} }
-snippet eac- each_cons(..) { |group| .. }
- each_cons(${1:2}) { |${2:group}| ${0} }
-snippet eai
- each_index { |${1:i}| ${0} }
-snippet eaid
- each_index do |${1:i}|
- ${0}
- end
-snippet eak
- each_key { |${1:key}| ${0} }
-snippet eakd
- each_key do |${1:key}|
- ${0}
- end
-snippet eal
- each_line { |${1:line}| ${0} }
-snippet eald
- each_line do |${1:line}|
- ${0}
- end
-snippet eap
- each_pair { |${1:name}, ${2:val}| ${0} }
-snippet eapd
- each_pair do |${1:name}, ${2:val}|
- ${0}
- end
-snippet eas-
- each_slice(${1:2}) { |${2:group}| ${0} }
-snippet easd-
- each_slice(${1:2}) do |${2:group}|
- ${0}
- end
-snippet eav
- each_value { |${1:val}| ${0} }
-snippet eavd
- each_value do |${1:val}|
- ${0}
- end
-snippet eawi
- each_with_index { |${1:e}, ${2:i}| ${0} }
-snippet eawid
- each_with_index do |${1:e}, ${2:i}|
- ${0}
- end
-snippet eawo
- each_with_object(${1:init}) { |${2:e}, ${3:var}| ${0} }
-snippet eawod
- each_with_object(${1:init}) do |${2:e}, ${3:var}|
- ${0}
- end
-snippet reve
- reverse_each { |${1:e}| ${0} }
-snippet reved
- reverse_each do |${1:e}|
- ${0}
- end
-snippet inj
- inject(${1:init}) { |${2:mem}, ${3:var}| ${0} }
-snippet injd
- inject(${1:init}) do |${2:mem}, ${3:var}|
- ${0}
- end
-snippet red
- reduce(${1:init}) { |${2:mem}, ${3:var}| ${0} }
-snippet redd
- reduce(${1:init}) do |${2:mem}, ${3:var}|
- ${0}
- end
-snippet map
- map { |${1:e}| ${0} }
-snippet mapd
- map do |${1:e}|
- ${0}
- end
-snippet mapwi-
- enum_with_index.map { |${1:e}, ${2:i}| ${0} }
-snippet sor
- sort { |a, b| ${0} }
-snippet sorb
- sort_by { |${1:e}| ${0} }
-snippet ran
- sort_by { rand }
-snippet all
- all? { |${1:e}| ${0} }
-snippet any
- any? { |${1:e}| ${0} }
-snippet cl
- classify { |${1:e}| ${0} }
-snippet col
- collect { |${1:e}| ${0} }
-snippet cold
- collect do |${1:e}|
- ${0}
- end
-snippet det
- detect { |${1:e}| ${0} }
-snippet detd
- detect do |${1:e}|
- ${0}
- end
-snippet fet
- fetch(${1:name}) { |${2:key}| ${0} }
-snippet fin
- find { |${1:e}| ${0} }
-snippet find
- find do |${1:e}|
- ${0}
- end
-snippet fina
- find_all { |${1:e}| ${0} }
-snippet finad
- find_all do |${1:e}|
- ${0}
- end
-snippet gre
- grep(${1:/pattern/}) { |${2:match}| ${0} }
-snippet sub
- ${1:g}sub(${2:/pattern/}) { |${3:match}| ${0} }
-snippet sca
- scan(${1:/pattern/}) { |${2:match}| ${0} }
-snippet scad
- scan(${1:/pattern/}) do |${2:match}|
- ${0}
- end
-snippet max
- max { |a, b| ${0} }
-snippet min
- min { |a, b| ${0} }
-snippet par
- partition { |${1:e}| ${0} }
-snippet pard
- partition do |${1:e}|
- ${0}
- end
-snippet rej
- reject { |${1:e}| ${0} }
-snippet rejd
- reject do |${1:e}|
- ${0}
- end
-snippet sel
- select { |${1:e}| ${0} }
-snippet seld
- select do |${1:e}|
- ${0}
- end
-snippet lam
- lambda { |${1:args}| ${0} }
-snippet ->
- -> { ${0} }
-snippet ->a
- ->(${1:args}) { ${0} }
-# I'm pretty sure that ruby users expect do to expand to do .. end
-snippet do
- do
- ${0}
- end
-# this is for one or more variables. typing a ", " is that cheap that it may
-# not be worth adding another snippet. should 0/1 placeholders change order?
-# its a good idea to think about the var name, so use it first
-snippet dov
- do |${1:v}|
- ${2}
- end
-snippet :
- ${1:key}: ${2:'value'}
-snippet ope
- open('${1:path/or/url/or/pipe}', '${2:w}') { |${3:io}| ${0} }
-# path_from_here()
-snippet fpath
- File.join(File.dirname(__FILE__), *['${1:rel path here}'])
-# unix_filter {}
-snippet unif
- ARGF.each_line${1} do |${2:line}|
- ${0}
- end
-# option_parse {}
-snippet optp
- require 'optparse'
-
- options = { ${0:default: 'args'} }
-
- ARGV.options do |opts|
- opts.banner = "Usage: #{File.basename($PROGRAM_NAME)}"
- end
-snippet opt
- opts.on('-${1:o}', '--${2:long-option-name}', ${3:String}, '${4:Option description.}') do |${5:opt}|
- ${0}
- end
-snippet tc
- require 'test/unit'
-
- require '${1:library_file_name}'
-
- class Test${2:$1} < Test::Unit::TestCase
- def test_${3:case_name}
- ${0}
- end
- end
-snippet ts
- require 'test/unit'
-
- require 'tc_${1:test_case_file}'
- require 'tc_${2:test_case_file}'
-snippet as
- assert ${1:test}, '${2:Failure message.}'
-snippet ase
- assert_equal ${1:expected}, ${2:actual}
-snippet asne
- assert_not_equal ${1:unexpected}, ${2:actual}
-snippet asid
- assert_in_delta ${1:expected_float}, ${2:actual_float}, ${3:2**-20}
-snippet asi
- assert_includes ${1:collection}, ${2:object}
-snippet asio
- assert_instance_of ${1:ExpectedClass}, ${2:actual_instance}
-snippet asko
- assert_kind_of ${1:ExpectedKind}, ${2:actual_instance}
-snippet asn
- assert_nil ${1:instance}
-snippet asnn
- assert_not_nil ${1:instance}
-snippet asm
- assert_match(/${1:expected_pattern}/, ${2:actual_string})
-snippet asnm
- assert_no_match(/${1:unexpected_pattern}/, ${2:actual_string})
-snippet aso
- assert_operator ${1:left}, :${2:operator}, ${3:right}
-snippet asr
- assert_raise ${1:Exception} { ${0} }
-snippet asrd
- assert_raise ${1:Exception} do
- ${0}
- end
-snippet asnr
- assert_nothing_raised ${1:Exception} { ${0} }
-snippet asnrd
- assert_nothing_raised ${1:Exception} do
- ${0}
- end
-snippet asrt
- assert_respond_to ${1:object}, :${2:method}
-snippet ass assert_same(..)
- assert_same ${1:expected}, ${2:actual}
-snippet ass assert_send(..)
- assert_send [${1:object}, :${2:message}, ${3:args}]
-snippet asns
- assert_not_same ${1:unexpected}, ${2:actual}
-snippet ast
- assert_throws :${1:expected}, -> { ${0} }
-snippet astd
- assert_throws :${1:expected} do
- ${0}
- end
-snippet asnt
- assert_nothing_thrown { ${0} }
-snippet asntd
- assert_nothing_thrown do
- ${0}
- end
-snippet fl
- flunk '${1:Failure message.}'
-# Benchmark.bmbm do .. end
-snippet bm-
- TESTS = ${1:10_000}
- Benchmark.bmbm do |results|
- ${0}
- end
-snippet rep
- results.report('${1:name}:') { TESTS.times { ${0} } }
-# Marshal.dump(.., file)
-snippet Md
- File.open('${1:path/to/file.dump}', 'wb') { |${2:file}| Marshal.dump(${3:obj}, $2) }
-# Mashal.load(obj)
-snippet Ml
- File.open('${1:path/to/file.dump}', 'rb') { |${2:file}| Marshal.load($2) }
-# deep_copy(..)
-snippet deec
- Marshal.load(Marshal.dump(${1:obj_to_copy}))
-snippet Pn-
- PStore.new('${1:file_name.pstore}')
-snippet tra
- transaction(${1:true}) { ${0} }
-# xmlread(..)
-snippet xml-
- REXML::Document.new(File.read('${1:path/to/file}'))
-# xpath(..) { .. }
-snippet xpa
- elements.each('${1://Xpath}') do |${2:node}|
- ${0}
- end
-# class_from_name()
-snippet clafn
- split('::').inject(Object) { |par, const| par.const_get(const) }
-# singleton_class()
-snippet sinc
- class << self; self end
-snippet nam
- namespace :${1:`vim_snippets#Filename()`} do
- ${0}
- end
-snippet tas
- desc '${1:Task description}'
- task ${2:task_name: [:dependent, :tasks]} do
- ${0}
- end
-# block
-snippet b
- { |${1:var}| ${0} }
-snippet begin
- begin
- fail 'A test exception.'
- rescue Exception => e
- puts e.message
- puts e.backtrace.inspect
- else
- # other exception
- ensure
- # always executed
- end
-
-#debugging
-snippet debug
- require 'byebug'; byebug
-snippet debug19
- require 'debugger'; debugger
-snippet debug18
- require 'ruby-debug'; debugger
-snippet pry
- require 'pry'; binding.pry
-snippet strf
- strftime('${1:%Y-%m-%d %H:%M:%S %z}')${0}
-#
-# Minitest snippets
-#
-snippet mb
- must_be ${0}
-snippet wb
- wont_be ${0}
-snippet mbe
- must_be_empty
-snippet wbe
- wont_be_empty
-snippet mbio
- must_be_instance_of ${0:Class}
-snippet wbio
- wont_be_instance_of ${0:Class}
-snippet mbko
- must_be_kind_of ${0:Class}
-snippet wbko
- wont_be_kind_of ${0:Class}
-snippet mbn
- must_be_nil
-snippet wbn
- wont_be_nil
-snippet mbsa
- must_be_same_as ${0:other}
-snippet wbsa
- wont_be_same_as ${0:other}
-snippet mbsi
- -> { ${0} }.must_be_silent
-snippet mbwd
- must_be_within_delta ${1:0.1}, ${2:0.1}
-snippet wbwd
- wont_be_within_delta ${1:0.1}, ${2:0.1}
-snippet mbwe
- must_be_within_epsilon ${1:0.1}, ${2:0.1}
-snippet wbwe
- wont_be_within_epsilon ${1:0.1}, ${2:0.1}
-snippet me
- must_equal ${0:other}
-snippet we
- wont_equal ${0:other}
-snippet mi
- must_include ${0:what}
-snippet wi
- wont_include ${0:what}
-snippet mm
- must_match /${0:regex}/
-snippet wm
- wont_match /${0:regex}/
-snippet mout
- -> { ${1} }.must_output '${0}'
-snippet mra
- -> { ${1} }.must_raise ${0:Exception}
-snippet mrt
- must_respond_to :${0:method}
-snippet wrt
- wont_respond_to :${0:method}
-snippet msend
- must_send [ ${1:what}, :${2:method}, ${3:args} ]
-snippet mthrow
- -> { throw :${1:error} }.must_throw :${2:error}
-##########################
-# Rspec snippets #
-##########################
-snippet desc
- describe ${1:`substitute(substitute(vim_snippets#Filename(), '_spec$', '', ''), '\(_\|^\)\(.\)', '\u\2', 'g')`} do
- ${0}
- end
-snippet descm
- describe '${1:#method}' do
- ${0:pending 'Not implemented'}
- end
-snippet cont
- context '${1:message}' do
- ${0}
- end
-snippet bef
- before :${1:each} do
- ${0}
- end
-snippet aft
- after :${1:each} do
- ${0}
- end
-snippet let
- let(:${1:object}) { ${0} }
-snippet let!
- let!(:${1:object}) { ${0} }
-snippet subj
- subject { ${0} }
-snippet s.
- subject.${0:method}
-snippet spec
- specify { subject.${0} }
-snippet exp
- expect(${1:object}).to ${0}
-snippet expb
- expect { ${1:object} }.to ${0}
-snippet experr
- expect { ${1:object} }.to raise_error ${2:StandardError}, /${0:message_regex}/
-snippet shared
- shared_examples ${0:'shared examples name'}
-snippet ibl
- it_behaves_like ${0:'shared examples name'}
-snippet it
- it '${1:spec_name}' do
- ${0}
- end
-snippet its
- its(:${1:method}) { should ${0} }
-snippet is
- it { should ${0} }
-snippet isn
- it { should_not ${0} }
-snippet iexp
- it { expect(${1:object}).${2} ${0} }
-snippet iexpb
- it { expect { ${1:object} }.${2} ${0} }
-snippet iiexp
- it { is_expected.to ${0} }
-snippet iiexpn
- it { is_expected.not_to ${0} }
-snippet agg
- aggregate_failures '${1:message}' do
- ${0}
- end
diff --git a/vim/snippets/vim-snippets/snippets/rust.snippets b/vim/snippets/vim-snippets/snippets/rust.snippets
deleted file mode 100644
index adfd29c..0000000
--- a/vim/snippets/vim-snippets/snippets/rust.snippets
+++ /dev/null
@@ -1,193 +0,0 @@
-#################
-# Rust Snippets #
-#################
-
-# Functions
-snippet fn "Function definition"
- fn ${1:function_name}(${2})${3} {
- ${0}
- }
-snippet pfn "Function definition"
- pub fn ${1:function_name}(${2})${3} {
- ${0}
- }
-snippet test "Unit test function"
- #[test]
- fn ${1:test_function_name}() {
- ${0}
- }
-snippet bench "Bench function" b
- #[bench]
- fn ${1:bench_function_name}(b: &mut test::Bencher) {
- b.iter(|| {
- ${0}
- })
- }
-snippet new "Constructor function"
- pub fn new(${2}) -> ${1:Name} {
- $1 { ${3} }
- }
-snippet main "Main function"
- pub fn main() {
- ${0}
- }
-snippet let "let variable declaration with type inference"
- let ${1} = ${2};
-snippet lett "let variable declaration with explicit type annotation"
- let ${1}: ${2} = ${3};
-snippet letm "let mut variable declaration with type inference"
- let mut ${1} = ${2};
-snippet lettm "let mut variable declaration with explicit type annotation"
- let mut ${1}: ${2} = ${3};
-snippet pri "print!"
- print!("${1}");
-snippet pri, "print! with format param"
- print!("${1}", ${2});
-snippet pln "println!"
- println!("${1}");
-snippet pln, "println! with format param"
- println!("${1}", ${2});
-snippet fmt "format!"
- format!("${1}", ${2});
-
-# Modules
-snippet ec "extern crate"
- extern crate ${1:sync};
-snippet ecl "extern crate log"
- #[macro_use]
- extern crate log;
-snippet mod
- mod ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} {
- ${0}
- } /* $1 */
-snippet testmod "Test module" b
- #[cfg(test)]
- mod tests {
- use super::${1:*};
-
- test${0}
- }
-# Attributes
-snippet allow "allow lint attribute" b
- #[allow(${1:unused_variable})]
-snippet cfg "cfg attribute" b
- #[cfg(${1:target_os = "linux"})]
-snippet feat "feature attribute" b
- #![feature(${1:plugin})]
-snippet der "#[derive(..)]" b
- #[derive(${1:Debug})]
-snippet attr "#[..]" b
- #[${1:inline}]
-snippet crate "Define create meta attributes"
- // Crate name
- #![crate_name = "${1:crate_name}"]
- // Additional metadata attributes
- #![desc = "${2:Descrption.}"]
- #![license = "${3:BSD}"]
- #![comment = "${4:Comment.}"]
- // Specify the output type
- #![crate_type = "${5:lib}"]
-# Common types
-snippet opt "Option"
- Option<${1:i32}>
-snippet res "Result"
- Result<${1:~str}, ${2:()}>
-# Control structures
-snippet if
- if ${1} {
- ${0:${VISUAL}}
- }
-snippet ife "if / else"
- if ${1} {
- ${2:${VISUAL}}
- } else {
- ${0}
- }
-snippet el "else"
- else {
- ${0:${VISUAL}}
- }
-snippet eli "else if"
- else if ${1} {
- ${0:${VISUAL}}
- }
-snippet mat "match pattern"
- match ${1} {
- ${2} => ${3}
- }
-snippet case "Case clause of pattern match"
- ${1:_} => ${2:expression}
-snippet loop "loop {}" b
- loop {
- ${0:${VISUAL}}
- }
-snippet wh "while loop"
- while ${1:condition} {
- ${0:${VISUAL}}
- }
-snippet for "for ... in ... loop"
- for ${1:i} in ${2} {
- ${0}
- }
-# TODO commenting
-snippet todo "TODO comment"
- // [TODO]: ${0:Description}
-snippet fixme "FIXME comment"
- // FIXME: $0
-# Struct
-snippet st "Struct definition"
- struct ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} {
- ${0}
- }
-snippet impl "Struct/Trait implementation"
- impl ${1:Type/Trait}${2: for ${3:Type}} {
- ${0}
- }
-snippet stn "Struct with new constructor"
- pub struct ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} {
- ${0}
- }
-
- impl $1 {
- pub fn new(${2}) -> Self {
- $1 { ${3} }
- }
- }
-snippet type "Type alias"
- type ${1:NewName} = $2;
-snippet enum "enum definition"
- enum ${1:Name} {
- ${2},
- }
-# Traits
-snippet trait "Trait definition"
- trait ${1:Name} {
- ${0}
- }
-snippet drop "Drop trait implementation (destructor)"
- impl Drop for ${1:Name} {
- fn drop(&mut self) {
- ${0}
- }
- }
-# Statics
-snippet ss "static string declaration"
- static ${1}: &'static str = "${0}";
-snippet stat "static item declaration"
- static ${1}: ${2:usize} = ${0};
-# Concurrency
-snippet scoped "spawn a scoped thread"
- thread::scoped(${1:move }|| {
- ${0}
- });
-snippet spawn "spawn a thread"
- thread::spawn(${1:move }|| {
- ${0}
- });
-snippet chan "Declare (Sender, Receiver) pair of asynchronous channel()"
- let (${1:tx}, ${2:rx}): (Sender<${3:i32}>, Receiver<${4:i32}>) = channel();
-# Testing
-snippet as "assert!"
- assert!(${1:predicate})
-snippet ase "assert_eq!"
- assert_eq!(${1:expected}, ${2:actual})
diff --git a/vim/snippets/vim-snippets/snippets/sass.snippets b/vim/snippets/vim-snippets/snippets/sass.snippets
deleted file mode 100644
index 3e84c20..0000000
--- a/vim/snippets/vim-snippets/snippets/sass.snippets
+++ /dev/null
@@ -1,1015 +0,0 @@
-snippet $
- $${1:variable}: ${0:value}
-snippet imp
- @import '${0}'
-snippet mix
- =${1:name}(${2})
- ${0}
-snippet inc
- +${1:mixin}(${2})
-snippet ext
- @extend ${0}
-snippet fun
- @function ${1:name}(${2:args})
- ${0}
-snippet if
- @if ${1:condition}
- ${0:${VISUAL}}
-snippet ife
- @if ${1:condition}
- ${2:${VISUAL}}
- @else
- ${0}
-snippet eif
- @else if ${1:condition}
- ${0:${VISUAL}}
-snippet for
- @for ${1:$i} from ${2:1} through ${3:3}
- ${0}
-snippet each
- @each ${1:$item} in ${2:items}
- ${0}
-snippet while
- @while ${1:$i} ${2:>} ${3:0}
- ${0:${VISUAL}}
-snippet !
- !important
-snippet bdi:m+
- -moz-border-image: url('${1}') ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch}
-snippet bdi:m
- -moz-border-image: ${0}
-snippet bdrz:m
- -moz-border-radius: ${0}
-snippet bxsh:m+
- -moz-box-shadow: ${1:0} ${2:0} ${3:0} #${0:000}
-snippet bxsh:m
- -moz-box-shadow: ${0}
-snippet bdi:w+
- -webkit-border-image: url('${1}') ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch}
-snippet bdi:w
- -webkit-border-image: ${0}
-snippet bdrz:w
- -webkit-border-radius: ${0}
-snippet bxsh:w+
- -webkit-box-shadow: ${1:0} ${2:0} ${3:0} #${0:000}
-snippet bxsh:w
- -webkit-box-shadow: ${0}
-snippet @f
- @font-face
- font-family: ${1}
- src: url('${0}')
-snippet @i
- @import url('${0}')
-snippet @m
- @media ${1:print}
- ${0}
-snippet bg+
- background: #${1:fff} url('${2}') ${3:0} ${4:0} ${0:no-repeat}
-snippet bga
- background-attachment: ${0}
-snippet bga:f
- background-attachment: fixed
-snippet bga:s
- background-attachment: scroll
-snippet bgbk
- background-break: ${0}
-snippet bgbk:bb
- background-break: bounding-box
-snippet bgbk:c
- background-break: continuous
-snippet bgbk:eb
- background-break: each-box
-snippet bgcp
- background-clip: ${0}
-snippet bgcp:bb
- background-clip: border-box
-snippet bgcp:cb
- background-clip: content-box
-snippet bgcp:nc
- background-clip: no-clip
-snippet bgcp:pb
- background-clip: padding-box
-snippet bgc
- background-color: #${0:fff}
-snippet bgc:t
- background-color: transparent
-snippet bgi
- background-image: url('${0}')
-snippet bgi:n
- background-image: none
-snippet bgo
- background-origin: ${0}
-snippet bgo:bb
- background-origin: border-box
-snippet bgo:cb
- background-origin: content-box
-snippet bgo:pb
- background-origin: padding-box
-snippet bgpx
- background-position-x: ${0}
-snippet bgpy
- background-position-y: ${0}
-snippet bgp
- background-position: ${1:0} ${0:0}
-snippet bgr
- background-repeat: ${0}
-snippet bgr:n
- background-repeat: no-repeat
-snippet bgr:x
- background-repeat: repeat-x
-snippet bgr:y
- background-repeat: repeat-y
-snippet bgr:r
- background-repeat: repeat
-snippet bgz
- background-size: ${0}
-snippet bgz:a
- background-size: auto
-snippet bgz:ct
- background-size: contain
-snippet bgz:cv
- background-size: cover
-snippet bg
- background: ${0}
-snippet bg:ie
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1}',sizingMethod='${0:crop}')
-snippet bg:n
- background: none
-snippet bd+
- border: ${1:1px} ${2:solid} #${0:000}
-snippet bdb+
- border-bottom: ${1:1px} ${2:solid} #${0:000}
-snippet bdbc
- border-bottom-color: #${0:000}
-snippet bdbi
- border-bottom-image: url('${0}')
-snippet bdbi:n
- border-bottom-image: none
-snippet bdbli
- border-bottom-left-image: url('${0}')
-snippet bdbli:c
- border-bottom-left-image: continue
-snippet bdbli:n
- border-bottom-left-image: none
-snippet bdblrz
- border-bottom-left-radius: ${0}
-snippet bdbri
- border-bottom-right-image: url('${0}')
-snippet bdbri:c
- border-bottom-right-image: continue
-snippet bdbri:n
- border-bottom-right-image: none
-snippet bdbrrz
- border-bottom-right-radius: ${0}
-snippet bdbs
- border-bottom-style: ${0}
-snippet bdbs:n
- border-bottom-style: none
-snippet bdbw
- border-bottom-width: ${0}
-snippet bdb
- border-bottom: ${0}
-snippet bdb:n
- border-bottom: none
-snippet bdbk
- border-break: ${0}
-snippet bdbk:c
- border-break: close
-snippet bdcl
- border-collapse: ${0}
-snippet bdcl:c
- border-collapse: collapse
-snippet bdcl:s
- border-collapse: separate
-snippet bdc
- border-color: #${0:000}
-snippet bdci
- border-corner-image: url('${0}')
-snippet bdci:c
- border-corner-image: continue
-snippet bdci:n
- border-corner-image: none
-snippet bdf
- border-fit: ${0}
-snippet bdf:c
- border-fit: clip
-snippet bdf:of
- border-fit: overwrite
-snippet bdf:ow
- border-fit: overwrite
-snippet bdf:r
- border-fit: repeat
-snippet bdf:sc
- border-fit: scale
-snippet bdf:sp
- border-fit: space
-snippet bdf:st
- border-fit: stretch
-snippet bdi
- border-image: url('${1}') ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch}
-snippet bdi:n
- border-image: none
-snippet bdl+
- border-left: ${1:1px} ${2:solid} #${0:000}
-snippet bdlc
- border-left-color: #${0:000}
-snippet bdli
- border-left-image: url('${0}')
-snippet bdli:n
- border-left-image: none
-snippet bdls
- border-left-style: ${0}
-snippet bdls:n
- border-left-style: none
-snippet bdlw
- border-left-width: ${0}
-snippet bdl
- border-left: ${0}
-snippet bdl:n
- border-left: none
-snippet bdlt
- border-length: ${0}
-snippet bdlt:a
- border-length: auto
-snippet bdrz
- border-radius: ${0}
-snippet bdr+
- border-right: ${1:1px} ${2:solid} #${0:000}
-snippet bdrc
- border-right-color: #${0:000}
-snippet bdri
- border-right-image: url('${0}')
-snippet bdri:n
- border-right-image: none
-snippet bdrs
- border-right-style: ${0}
-snippet bdrs:n
- border-right-style: none
-snippet bdrw
- border-right-width: ${0}
-snippet bdr
- border-right: ${0}
-snippet bdr:n
- border-right: none
-snippet bdsp
- border-spacing: ${0}
-snippet bds
- border-style: ${0}
-snippet bds:ds
- border-style: dashed
-snippet bds:dtds
- border-style: dot-dash
-snippet bds:dtdtds
- border-style: dot-dot-dash
-snippet bds:dt
- border-style: dotted
-snippet bds:db
- border-style: double
-snippet bds:g
- border-style: groove
-snippet bds:h
- border-style: hidden
-snippet bds:i
- border-style: inset
-snippet bds:n
- border-style: none
-snippet bds:o
- border-style: outset
-snippet bds:r
- border-style: ridge
-snippet bds:s
- border-style: solid
-snippet bds:w
- border-style: wave
-snippet bdt+
- border-top: ${1:1px} ${2:solid} #${0:000}
-snippet bdtc
- border-top-color: #${0:000}
-snippet bdti
- border-top-image: url('${0}')
-snippet bdti:n
- border-top-image: none
-snippet bdtli
- border-top-left-image: url('${0}')
-snippet bdtli:c
- border-corner-image: continue
-snippet bdtli:n
- border-corner-image: none
-snippet bdtlrz
- border-top-left-radius: ${0}
-snippet bdtri
- border-top-right-image: url('${0}')
-snippet bdtri:c
- border-top-right-image: continue
-snippet bdtri:n
- border-top-right-image: none
-snippet bdtrrz
- border-top-right-radius: ${0}
-snippet bdts
- border-top-style: ${0}
-snippet bdts:n
- border-top-style: none
-snippet bdtw
- border-top-width: ${0}
-snippet bdt
- border-top: ${0}
-snippet bdt:n
- border-top: none
-snippet bdw
- border-width: ${0}
-snippet bd
- border: ${0}
-snippet bd:n
- border: none
-snippet b
- bottom: ${0}
-snippet b:a
- bottom: auto
-snippet bxsh+
- box-shadow: ${1:0} ${2:0} ${3:0} #${0:000}
-snippet bxsh
- box-shadow: ${0}
-snippet bxsh:n
- box-shadow: none
-snippet bxz
- box-sizing: ${0}
-snippet bxz:bb
- box-sizing: border-box
-snippet bxz:cb
- box-sizing: content-box
-snippet cps
- caption-side: ${0}
-snippet cps:b
- caption-side: bottom
-snippet cps:t
- caption-side: top
-snippet cl
- clear: ${0}
-snippet cl:b
- clear: both
-snippet cl:l
- clear: left
-snippet cl:n
- clear: none
-snippet cl:r
- clear: right
-snippet cp
- clip: ${0}
-snippet cp:a
- clip: auto
-snippet cp:r
- clip: rect(${1:0} ${2:0} ${3:0} ${0:0})
-snippet c
- color: #${0:000}
-snippet ct
- content: ${0}
-snippet ct:a
- content: attr(${0})
-snippet ct:cq
- content: close-quote
-snippet ct:c
- content: counter(${0})
-snippet ct:cs
- content: counters(${0})
-snippet ct:ncq
- content: no-close-quote
-snippet ct:noq
- content: no-open-quote
-snippet ct:n
- content: normal
-snippet ct:oq
- content: open-quote
-snippet coi
- counter-increment: ${0}
-snippet cor
- counter-reset: ${0}
-snippet cur
- cursor: ${0}
-snippet cur:a
- cursor: auto
-snippet cur:c
- cursor: crosshair
-snippet cur:d
- cursor: default
-snippet cur:ha
- cursor: hand
-snippet cur:he
- cursor: help
-snippet cur:m
- cursor: move
-snippet cur:p
- cursor: pointer
-snippet cur:t
- cursor: text
-snippet d
- display: ${0}
-snippet d:mib
- display: -moz-inline-box
-snippet d:mis
- display: -moz-inline-stack
-snippet d:b
- display: block
-snippet d:cp
- display: compact
-snippet d:ib
- display: inline-block
-snippet d:itb
- display: inline-table
-snippet d:i
- display: inline
-snippet d:li
- display: list-item
-snippet d:n
- display: none
-snippet d:ri
- display: run-in
-snippet d:tbcp
- display: table-caption
-snippet d:tbc
- display: table-cell
-snippet d:tbclg
- display: table-column-group
-snippet d:tbcl
- display: table-column
-snippet d:tbfg
- display: table-footer-group
-snippet d:tbhg
- display: table-header-group
-snippet d:tbrg
- display: table-row-group
-snippet d:tbr
- display: table-row
-snippet d:tb
- display: table
-snippet ec
- empty-cells: ${0}
-snippet ec:h
- empty-cells: hide
-snippet ec:s
- empty-cells: show
-snippet exp
- expression()
-snippet fl
- float: ${0}
-snippet fl:l
- float: left
-snippet fl:n
- float: none
-snippet fl:r
- float: right
-snippet f+
- font: ${1:1em} ${2:Arial},${0:sans-serif}
-snippet fef
- font-effect: ${0}
-snippet fef:eb
- font-effect: emboss
-snippet fef:eg
- font-effect: engrave
-snippet fef:n
- font-effect: none
-snippet fef:o
- font-effect: outline
-snippet femp
- font-emphasize-position: ${0}
-snippet femp:a
- font-emphasize-position: after
-snippet femp:b
- font-emphasize-position: before
-snippet fems
- font-emphasize-style: ${0}
-snippet fems:ac
- font-emphasize-style: accent
-snippet fems:c
- font-emphasize-style: circle
-snippet fems:ds
- font-emphasize-style: disc
-snippet fems:dt
- font-emphasize-style: dot
-snippet fems:n
- font-emphasize-style: none
-snippet fem
- font-emphasize: ${0}
-snippet ff
- font-family: ${0}
-snippet ff:c
- font-family: ${0:'Monotype Corsiva','Comic Sans MS'},cursive
-snippet ff:f
- font-family: ${0:Capitals,Impact},fantasy
-snippet ff:m
- font-family: ${0:Monaco,'Courier New'},monospace
-snippet ff:ss
- font-family: ${0:Helvetica,Arial},sans-serif
-snippet ff:s
- font-family: ${0:Georgia,'Times New Roman'},serif
-snippet fza
- font-size-adjust: ${0}
-snippet fza:n
- font-size-adjust: none
-snippet fz
- font-size: ${0}
-snippet fsm
- font-smooth: ${0}
-snippet fsm:aw
- font-smooth: always
-snippet fsm:a
- font-smooth: auto
-snippet fsm:n
- font-smooth: never
-snippet fst
- font-stretch: ${0}
-snippet fst:c
- font-stretch: condensed
-snippet fst:e
- font-stretch: expanded
-snippet fst:ec
- font-stretch: extra-condensed
-snippet fst:ee
- font-stretch: extra-expanded
-snippet fst:n
- font-stretch: normal
-snippet fst:sc
- font-stretch: semi-condensed
-snippet fst:se
- font-stretch: semi-expanded
-snippet fst:uc
- font-stretch: ultra-condensed
-snippet fst:ue
- font-stretch: ultra-expanded
-snippet fs
- font-style: ${0}
-snippet fs:i
- font-style: italic
-snippet fs:n
- font-style: normal
-snippet fs:o
- font-style: oblique
-snippet fv
- font-variant: ${0}
-snippet fv:n
- font-variant: normal
-snippet fv:sc
- font-variant: small-caps
-snippet fw
- font-weight: ${0}
-snippet fw:b
- font-weight: bold
-snippet fw:br
- font-weight: bolder
-snippet fw:lr
- font-weight: lighter
-snippet fw:n
- font-weight: normal
-snippet f
- font: ${0}
-snippet h
- height: ${0}
-snippet h:a
- height: auto
-snippet l
- left: ${0}
-snippet l:a
- left: auto
-snippet lts
- letter-spacing: ${0}
-snippet lh
- line-height: ${0}
-snippet lisi
- list-style-image: url('${0}')
-snippet lisi:n
- list-style-image: none
-snippet lisp
- list-style-position: ${0}
-snippet lisp:i
- list-style-position: inside
-snippet lisp:o
- list-style-position: outside
-snippet list
- list-style-type: ${0}
-snippet list:c
- list-style-type: circle
-snippet list:dclz
- list-style-type: decimal-leading-zero
-snippet list:dc
- list-style-type: decimal
-snippet list:d
- list-style-type: disc
-snippet list:lr
- list-style-type: lower-roman
-snippet list:n
- list-style-type: none
-snippet list:s
- list-style-type: square
-snippet list:ur
- list-style-type: upper-roman
-snippet lis
- list-style: ${0}
-snippet lis:n
- list-style: none
-snippet mb
- margin-bottom: ${0}
-snippet mb:a
- margin-bottom: auto
-snippet ml
- margin-left: ${0}
-snippet ml:a
- margin-left: auto
-snippet mr
- margin-right: ${0}
-snippet mr:a
- margin-right: auto
-snippet mt
- margin-top: ${0}
-snippet mt:a
- margin-top: auto
-snippet m
- margin: ${0}
-snippet m:4
- margin: ${1:0} ${2:0} ${3:0} ${0:0}
-snippet m:3
- margin: ${1:0} ${2:0} ${0:0}
-snippet m:2
- margin: ${1:0} ${0:0}
-snippet m:0
- margin: 0
-snippet m:a
- margin: auto
-snippet mah
- max-height: ${0}
-snippet mah:n
- max-height: none
-snippet maw
- max-width: ${0}
-snippet maw:n
- max-width: none
-snippet mih
- min-height: ${0}
-snippet miw
- min-width: ${0}
-snippet op
- opacity: ${0}
-snippet op:ie
- filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=${0:100})
-snippet op:ms
- -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=${0:100})'
-snippet orp
- orphans: ${0}
-snippet o+
- outline: ${1:1px} ${2:solid} #${0:000}
-snippet oc
- outline-color: ${0:#000}
-snippet oc:i
- outline-color: invert
-snippet oo
- outline-offset: ${0}
-snippet os
- outline-style: ${0}
-snippet ow
- outline-width: ${0}
-snippet o
- outline: ${0}
-snippet o:n
- outline: none
-snippet ovs
- overflow-style: ${0}
-snippet ovs:a
- overflow-style: auto
-snippet ovs:mq
- overflow-style: marquee
-snippet ovs:mv
- overflow-style: move
-snippet ovs:p
- overflow-style: panner
-snippet ovs:s
- overflow-style: scrollbar
-snippet ovx
- overflow-x: ${0}
-snippet ovx:a
- overflow-x: auto
-snippet ovx:h
- overflow-x: hidden
-snippet ovx:s
- overflow-x: scroll
-snippet ovx:v
- overflow-x: visible
-snippet ovy
- overflow-y: ${0}
-snippet ovy:a
- overflow-y: auto
-snippet ovy:h
- overflow-y: hidden
-snippet ovy:s
- overflow-y: scroll
-snippet ovy:v
- overflow-y: visible
-snippet ov
- overflow: ${0}
-snippet ov:a
- overflow: auto
-snippet ov:h
- overflow: hidden
-snippet ov:s
- overflow: scroll
-snippet ov:v
- overflow: visible
-snippet pb
- padding-bottom: ${0}
-snippet pl
- padding-left: ${0}
-snippet pr
- padding-right: ${0}
-snippet pt
- padding-top: ${0}
-snippet p
- padding: ${0}
-snippet p:4
- padding: ${1:0} ${2:0} ${3:0} ${0:0}
-snippet p:3
- padding: ${1:0} ${2:0} ${0:0}
-snippet p:2
- padding: ${1:0} ${0:0}
-snippet p:0
- padding: 0
-snippet pgba
- page-break-after: ${0}
-snippet pgba:aw
- page-break-after: always
-snippet pgba:a
- page-break-after: auto
-snippet pgba:l
- page-break-after: left
-snippet pgba:r
- page-break-after: right
-snippet pgbb
- page-break-before: ${0}
-snippet pgbb:aw
- page-break-before: always
-snippet pgbb:a
- page-break-before: auto
-snippet pgbb:l
- page-break-before: left
-snippet pgbb:r
- page-break-before: right
-snippet pgbi
- page-break-inside: ${0}
-snippet pgbi:a
- page-break-inside: auto
-snippet pgbi:av
- page-break-inside: avoid
-snippet pos
- position: ${0}
-snippet pos:a
- position: absolute
-snippet pos:f
- position: fixed
-snippet pos:r
- position: relative
-snippet pos:s
- position: static
-snippet q
- quotes: ${0}
-snippet q:en
- quotes: '\201C' '\201D' '\2018' '\2019'
-snippet q:n
- quotes: none
-snippet q:ru
- quotes: '\00AB' '\00BB' '\201E' '\201C'
-snippet rz
- resize: ${0}
-snippet rz:b
- resize: both
-snippet rz:h
- resize: horizontal
-snippet rz:n
- resize: none
-snippet rz:v
- resize: vertical
-snippet r
- right: ${0}
-snippet r:a
- right: auto
-snippet tbl
- table-layout: ${0}
-snippet tbl:a
- table-layout: auto
-snippet tbl:f
- table-layout: fixed
-snippet tal
- text-align-last: ${0}
-snippet tal:a
- text-align-last: auto
-snippet tal:c
- text-align-last: center
-snippet tal:l
- text-align-last: left
-snippet tal:r
- text-align-last: right
-snippet ta
- text-align: ${0}
-snippet ta:c
- text-align: center
-snippet ta:l
- text-align: left
-snippet ta:r
- text-align: right
-snippet td
- text-decoration: ${0}
-snippet td:l
- text-decoration: line-through
-snippet td:n
- text-decoration: none
-snippet td:o
- text-decoration: overline
-snippet td:u
- text-decoration: underline
-snippet te
- text-emphasis: ${0}
-snippet te:ac
- text-emphasis: accent
-snippet te:a
- text-emphasis: after
-snippet te:b
- text-emphasis: before
-snippet te:c
- text-emphasis: circle
-snippet te:ds
- text-emphasis: disc
-snippet te:dt
- text-emphasis: dot
-snippet te:n
- text-emphasis: none
-snippet th
- text-height: ${0}
-snippet th:a
- text-height: auto
-snippet th:f
- text-height: font-size
-snippet th:m
- text-height: max-size
-snippet th:t
- text-height: text-size
-snippet ti
- text-indent: ${0}
-snippet ti:-
- text-indent: -9999px
-snippet tj
- text-justify: ${0}
-snippet tj:a
- text-justify: auto
-snippet tj:d
- text-justify: distribute
-snippet tj:ic
- text-justify: inter-cluster
-snippet tj:ii
- text-justify: inter-ideograph
-snippet tj:iw
- text-justify: inter-word
-snippet tj:k
- text-justify: kashida
-snippet tj:t
- text-justify: tibetan
-snippet to+
- text-outline: ${1:0} ${2:0} #${0:000}
-snippet to
- text-outline: ${0}
-snippet to:n
- text-outline: none
-snippet tr
- text-replace: ${0}
-snippet tr:n
- text-replace: none
-snippet tsh+
- text-shadow: ${1:0} ${2:0} ${3:0} #${0:000}
-snippet tsh
- text-shadow: ${0}
-snippet tsh:n
- text-shadow: none
-snippet tt
- text-transform: ${0}
-snippet tt:c
- text-transform: capitalize
-snippet tt:l
- text-transform: lowercase
-snippet tt:n
- text-transform: none
-snippet tt:u
- text-transform: uppercase
-snippet tw
- text-wrap: ${0}
-snippet tw:no
- text-wrap: none
-snippet tw:n
- text-wrap: normal
-snippet tw:s
- text-wrap: suppress
-snippet tw:u
- text-wrap: unrestricted
-snippet t
- top: ${0}
-snippet t:a
- top: auto
-snippet va
- vertical-align: ${0}
-snippet va:bl
- vertical-align: baseline
-snippet va:b
- vertical-align: bottom
-snippet va:m
- vertical-align: middle
-snippet va:sub
- vertical-align: sub
-snippet va:sup
- vertical-align: super
-snippet va:tb
- vertical-align: text-bottom
-snippet va:tt
- vertical-align: text-top
-snippet va:t
- vertical-align: top
-snippet v
- visibility: ${0}
-snippet v:c
- visibility: collapse
-snippet v:h
- visibility: hidden
-snippet v:v
- visibility: visible
-snippet whsc
- white-space-collapse: ${0}
-snippet whsc:ba
- white-space-collapse: break-all
-snippet whsc:bs
- white-space-collapse: break-strict
-snippet whsc:k
- white-space-collapse: keep-all
-snippet whsc:l
- white-space-collapse: loose
-snippet whsc:n
- white-space-collapse: normal
-snippet whs
- white-space: ${0}
-snippet whs:n
- white-space: normal
-snippet whs:nw
- white-space: nowrap
-snippet whs:pl
- white-space: pre-line
-snippet whs:pw
- white-space: pre-wrap
-snippet whs:p
- white-space: pre
-snippet wid
- widows: ${0}
-snippet w
- width: ${0}
-snippet w:a
- width: auto
-snippet wob
- word-break: ${0}
-snippet wob:ba
- word-break: break-all
-snippet wob:bs
- word-break: break-strict
-snippet wob:k
- word-break: keep-all
-snippet wob:l
- word-break: loose
-snippet wob:n
- word-break: normal
-snippet wos
- word-spacing: ${0}
-snippet wow
- word-wrap: ${0}
-snippet wow:no
- word-wrap: none
-snippet wow:n
- word-wrap: normal
-snippet wow:s
- word-wrap: suppress
-snippet wow:u
- word-wrap: unrestricted
-snippet z
- z-index: ${0}
-snippet z:a
- z-index: auto
-snippet zoo
- zoom: 1
-snippet :h
- :hover
-snippet :fc
- :first-child
-snippet :lc
- :last-child
-snippet :nc
- :nth-child(${0})
-snippet :nlc
- :nth-last-child(${0})
-snippet :oc
- :only-child
-snippet :a
- :after
-snippet :b
- :before
-snippet ::a
- ::after
-snippet ::b
- ::before
diff --git a/vim/snippets/vim-snippets/snippets/scala.snippets b/vim/snippets/vim-snippets/snippets/scala.snippets
deleted file mode 100644
index a6c3f3c..0000000
--- a/vim/snippets/vim-snippets/snippets/scala.snippets
+++ /dev/null
@@ -1,360 +0,0 @@
-################################################################
-# © Copyright 2011 Konstantin Gorodinskiy. All Rights Reserved.#
-# Do What The Fuck You Want To Public License, Version 2. #
-# See http://sam.zoy.org/wtfpl/COPYING for more details. #
-################################################################
-# Scala lang
-#if
-snippet if
- if (${1})
- ${0:${VISUAL}}
-#if not
-snippet ifn
- if (!${1})
- ${0:${VISUAL}}
-#if-else
-snippet ife
- if (${1})
- ${2:${VISUAL}}
- else
- ${0}
-#if-else-if
-snippet ifelif
- if (${1})
- ${2:${VISUAL}}
- else if (${3})
- ${0:${VISUAL}}
-snippet eif
- else if (${3})
- ${0:${VISUAL}}
-#while loop
-snippet wh
- while (${1:obj}) {
- ${0:${VISUAL}}
- }
-#for loop(classic)
-snippet for
- for (${1:item} <- ${2:obj}) {
- ${0}
- }
-#for loop(indexed)
-snippet fori
- for (${1:i} <- ${2:0} to ${3:obj}.length) {
- ${0}
- }
-#for comprehension
-snippet fory
- for {
- ${1:item} <- ${2:obj}
- } yield ${0}
-#exceptions
-snippet try
- try {
- ${1:${VISUAL}}
- } catch {
- case e: FileNotFoundException => ${2}
- case e: IOException => ${3}
- } finally {
- ${0}
- }
-#match
-snippet match
- ${1: obj} match {
- case ${2:e} => ${3}
- case _ => ${0}
- }
-#case
-snippet case
- case ${1:value} => ${0}
-############################
-# methods and arguments
-#
-#arg
-snippet arg
- ${1:a}: ${2:T}${0:, arg}
-#args
-snippet args
- ${1:args}: ${0:T}*
-#def
-snippet def
- def ${1:name}(${2:arg}) = ${0:}
-#private def
-snippet prdef
- private def ${1:name}(${2:arg}) = ${0:}
-#override def
-snippet ovdef
- override def ${1:name}(${2:arg}) = ${0:}
-#first class function(see scalabook p 188)
-snippet fcf
- (${1:a}: ${2:T}) => $1 ${0}
-snippet =>
- ${1:name} => ${0}
-#recursion
-snippet rec
- def ${1:name}(${0:arg}) =
- if($2) $2
- else $1($2)
-#curried method
-snippet crdef
- def ${1:name}(${2:arg})(${3:arg}) = ${0:}
-#main method
-#check validity of T
-snippet main
- def main(args: Array[String]):${1:T} = ${0:}
-############################
-# basic types(general purpose)
-# you might want to use basic types snippets
-
-#1
-snippet T Double
- dbl
-#2
-snippet T Int
- int
-#3
-snippet T Long
- lng
-#4
-snippet T Char
- chr
-#5
-snippet T String
- str
-#6
-snippet T Array
- arr
-#7
-snippet T Buffer
- buf
-#8
-snippet T List
- list
-#9
-snippet T Tuple
- tpl
-#10
-snippet T Set
- set
-#11
-snippet T Map
- map
-#12
-snippet T HashSet
- hset
-#13
-snippet T HashMap
- hmap
-#14
-snippet T Boolean
- bool
-#end
-
-#named snippets for types
-snippet bool
- Boolean
-snippet anyr
- AnyRef
-snippet dbl
- Double
-snippet int
- Int
-snippet str
- String
-snippet chr
- Char
-snippet lng
- Long
-snippet arr
- Array${1:[T]}${0:()}
-snippet buf
- Buffer${1:[T]}${0:()}
-snippet list
- List${1:[T]}${0:()}
-snippet tpl
- Tuple${1:2}[${2:T},${0:T}]
-snippet set
- Set${1:[T]}${0:()}
-snippet hset
- HashSet${1:[T]}${0:()}
-snippet mhset
- mutable.HashSet${1:[T]}${0:()}
-#for maps
-snippet keyval
- ${1:key}->${2:val}${0:, keyval}
-snippet map
- Map[${1:T},${2:T}]${0:(keyval)}
-snippet hmap
- HashMap[${1:T},${2:T}]${0:(keyval)}
-snippet mmap
- mutable.Map[${1:T},${2:T}]${0:(keyval)}
-snippet mhmap
- mutable.HashMap[${1:T},${2:T}]${0:(keyval)}
-#TODO add TreeMap and TreeSet
-#asInstanceOf[]
-snippet as
- ${1:name}.asInstanceOf[${2:T}]
-#isInstanceOf[]
-snippet is
- ${1:name}.isInstanceOf[${2:T}]
-
-#collections methods
-
-#scope() with one arg
-snippet (a
- (${1:a} => ${0})
-#scope() with two args
-snippet {(
- {(${1:a},${2:b}) =>
- ${0}
- }
-#filter
-snippet filter
- ${0:name}.filter (a
-#map function
-snippet mapf
- ${0:name}.map (a
-#flatmap
-snippet flatmap
- ${1:name}.flatMap${0:[T]}(a
-#fold left
-snippet fldl
- ${1:name}.foldLeft(${0:first}) {(
-#fold right
-snippet fldr
- ${1:name}.foldRight(${0:first}) {(
-#fold left operator(if u wanna reduce readability of ur code)
-#use wildcard symbols
-snippet /:
- (${1:first}/:${2:name})(${0})
-#fold right operator
-snippet :\
- (${1:first}:\${2:name})(${0})
-#reduce left
-snippet redl
- ${1:name}.reduceLeft[${0:T}] {(
-#reduce right
-snippet redr
- ${1:name}.reduceRight[${0:T}] {(
-#zipWithIndex(safe way).
-#see http://daily-scala.blogspot.com/2010/05/zipwithindex.html
-snippet zipwi
- ${0:name}.view.zipWithIndex
-#split
-snippet spl
- ${1:name}.split("${0:,}")
-#end
-snippet val
- val ${1:name}${2:: T} = ${0:value}
-snippet var
- var ${1:name}${2:: T} = ${0:value}
-############################
-# classes
-#
-#extends
-snippet extends
- extends ${0:what}
-#with
-snippet with
- with ${1:what}${0: with}
-#auxiliary constructor(a. this)
-snippet athis
- def this(arg) = this(arg)
-#abstract class
-snippet abstract
- abstract class ${1:name}${2:(arg)}${3: extends }${4: with} {
- ${5:override def toString = "$1"}
- ${0}
- }
-#class
-snippet class
- class ${1:name}${2:(arg)}${3: extends }${4: with} {
- ${5:override def toString = "$1"}
- ${0}
- }
-#object
-snippet object
- object ${1:name}${2:(arg)}${3: extends }${4: with} ${0:}
-#trait
-snippet trait
- trait ${1:name}${2: extends }${3: with} {
- ${0:}
- }
-#class with trait Ordered(page 265)
-snippet ordered
- class ${1:name}${2:(arg)} extends Ordered[$1] ${3: with} {
- ${4:override def toString = "$1"}
- def compare(that: $1) = ${5:this - that}
- ${0}
- }
-#case class
-snippet casecl
- case class ${1:name}${2:(arg)}${3: extends }${4: with} ${0:}
-############################
-# testing
-#
-#scalatest imports
-snippet scalatest
- ${1:import org.scalatest.Suite}
- ${0:import org.scalatest.FunSuite}
-#assert
-snippet assert
- assert(${1:a} === ${0:b})
-#ensuring(p 296)
-snippet ensuring
- ifel ensuring(${1:a}==${0:b})
-#expect
-snippet expect
- expect(${1:what}) {
- ${0}
- }
-#intercept
-snippet intercept
- intercept[${1:IllegalArgumentException}] {
- ${0}
- }
-#test
-snippet test
- test("${1:description}") {
- ${0}
- }
-#suite
-snippet suite
- class ${0:name} extends Suite {
- def test() {
- }
-#funsuite
-snippet fsuite
- class ${1:name} extends FunSuite {
- test("${0:description}") {
- }
-############################
-# SBT
-#
-snippet webproject
- import sbt._
-
- class ${1:Name}(info: ProjectInfo) extends DefaultWebProject(info) {
- val liftVersion = "${0:2.3}"
-
- override def libraryDependencies = Set(
-
- ) ++ super.libraryDependencies
-
- val snapshots = ScalaToolsSnapshots
- }
-#depencies
-snippet liftjar
- "net.liftweb" %% "${0:lib}" % liftVersion % "compile->default",
-snippet jettyjar
- "org.mortbay.jetty" % "jetty" % "${0:version}" % "test->default",
-############################
-# Lift
-#
-#lift imports
-snippet liftimports
- import _root_.net.liftweb.http._
- import S._
- import _root_.net.liftweb.util._
- import Helpers._
- import _root_.scala.xml._
-#TODO LIFT,SBT,WEB.XML,HTML snippets
diff --git a/vim/snippets/vim-snippets/snippets/scheme.snippets b/vim/snippets/vim-snippets/snippets/scheme.snippets
deleted file mode 100644
index 035d534..0000000
--- a/vim/snippets/vim-snippets/snippets/scheme.snippets
+++ /dev/null
@@ -1,36 +0,0 @@
-snippet +
- (+ ${1}
- ${0})
-
-snippet -
- (- ${1}
- ${0})
-
-snippet /
- (/ ${1}
- ${0})
-
-snippet *
- (* ${1}
- ${0})
-
-# Definition
-snippet def
- (define (${1:name})
- (${0:definition}))
-
-# Definition with lambda
-snippet defl
- (define ${1:name}
- (lambda (x)(${0:definition})))
-
-# Condition
-snippet cond
- (cond ((${1:predicate}) (${2:action}))
- ((${3:predicate}) (${0:action})))
-
-# If statement
-snippet if
- (if (${1:predicate})
- (${2:true-action})
- (${0:false-action}))
diff --git a/vim/snippets/vim-snippets/snippets/scss.snippets b/vim/snippets/vim-snippets/snippets/scss.snippets
deleted file mode 100644
index 998a120..0000000
--- a/vim/snippets/vim-snippets/snippets/scss.snippets
+++ /dev/null
@@ -1,44 +0,0 @@
-extends css
-
-snippet $
- $${1:variable}: ${0:value};
-snippet imp
- @import '${0}';
-snippet mix
- @mixin ${1:name}(${2}) {
- ${0}
- }
-snippet inc
- @include ${1:mixin}(${2});
-snippet ext
- @extend ${0};
-snippet fun
- @function ${1:name}(${2:args}) {
- ${0}
- }
-snippet if
- @if ${1:condition} {
- ${0}
- }
-snippet ife
- @if ${1:condition} {
- ${2}
- } @else {
- ${0}
- }
-snippet eif
- @else if ${1:condition} {
- ${0}
- }
-snippet for
- @for ${1:$i} from ${2:1} through ${3:3} {
- ${0}
- }
-snippet each
- @each ${1:$item} in ${2:items} {
- ${0}
- }
-snippet while
- @while ${1:$i} ${2:>} ${3:0} {
- ${0}
- }
diff --git a/vim/snippets/vim-snippets/snippets/sh.snippets b/vim/snippets/vim-snippets/snippets/sh.snippets
deleted file mode 100644
index 35afa30..0000000
--- a/vim/snippets/vim-snippets/snippets/sh.snippets
+++ /dev/null
@@ -1,106 +0,0 @@
-# Shebang. Executing bash via /usr/bin/env makes scripts more portable.
-snippet #!
- #!/usr/bin/env sh
-
-snippet s#!
- #!/usr/bin/env sh
- set -euo pipefail
-
-snippet safe
- set -euo pipefail
-
-snippet bash
- #!/usr/bin/env bash
-
-snippet sbash
- #!/usr/bin/env bash
- set -euo pipefail
- IFS=$'\n\t'
-
-snippet if
- if [[ ${1:condition} ]]; then
- ${0:${VISUAL}}
- fi
-snippet elif
- elif [[ ${1:condition} ]]; then
- ${0:${VISUAL}}
-snippet for
- for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do
- ${0:${VISUAL}}
- done
-snippet fori
- for ${1:needle} in ${2:haystack} ; do
- ${0:${VISUAL}}
- done
-snippet wh
- while [[ ${1:condition} ]]; do
- ${0:${VISUAL}}
- done
-snippet until
- until [[ ${1:condition} ]]; do
- ${0:${VISUAL}}
- done
-snippet case
- case ${1:word} in
- ${2:pattern})
- ${0};;
- esac
-snippet go
- while getopts '${1:o}' ${2:opts}
- do
- case $$2 in
- ${3:o0})
- ${0:#staments};;
- esac
- done
-# Set SCRIPT_DIR variable to directory script is located.
-snippet sdir
- SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-# getopt
-snippet getopt
- __ScriptVersion="${1:version}"
-
- #=== FUNCTION ================================================================
- # NAME: usage
- # DESCRIPTION: Display usage information.
- #===============================================================================
- function usage ()
- {
- echo "Usage : $${0:0} [options] [--]
-
- Options:
- -h|help Display this message
- -v|version Display script version"
-
- } # ---------- end of function usage ----------
-
- #-----------------------------------------------------------------------
- # Handle command line arguments
- #-----------------------------------------------------------------------
-
- while getopts ":hv" opt
- do
- case $opt in
-
- h|help ) usage; exit 0 ;;
-
- v|version ) echo "$${0:0} -- Version $__ScriptVersion"; exit 0 ;;
-
- * ) echo -e "\n Option does not exist : $OPTARG\n"
- usage; exit 1 ;;
-
- esac # --- end of case ---
- done
- shift $(($OPTIND-1))
-snippet root
- if [ \$(id -u) -ne 0 ]; then exec sudo \$0; fi
-
-snippet fun-sh
- ${1:function_name}() {
- ${0:#function_body}
- }
-
-snippet fun
- function ${1:function_name}() {
- ${0:#function_body}
- }
diff --git a/vim/snippets/vim-snippets/snippets/simplemvcf.snippets b/vim/snippets/vim-snippets/snippets/simplemvcf.snippets
deleted file mode 100644
index 2ef6a65..0000000
--- a/vim/snippets/vim-snippets/snippets/simplemvcf.snippets
+++ /dev/null
@@ -1,122 +0,0 @@
-snippet sm_controller
- db->select('SELECT * FROM '.$table.' WHERE ${3:where}', $data);
- }
-
- public function getRows($where)
- {
- return $this->db->select('SELECT * FROM '.$table.');
- }
-
- public function insert($data)
- {
- $this->db->insert($table, $data);
- }
-
- public function update($data, $where)
- {
- $this->db->update($table ,$data, $where);
- }
-
- public function delete($where)
- {
- $this->db->delete($table, $where);
- }
- }
-snippet sm_render
- View::render('${1:view}', $${2:array});
-snippet sm_render_template
- View::renderTemplate('${1:part}', $${2:array});
-
-# database
-snippet sm_db_select
- $this->db->select(${1:sql}, ${2:where});
-
-snippet sm_db_insert
- $this->db->insert(${1:table}, ${2:data});
-
-snippet sm_db_update
- $this->db->update(${1:table}, ${2:data}, ${3:where});
-
-snippet sm_db_delete
- $this->db->delete(${1:table}, ${2:where});
-
-snippet sm_db_truncate
- $this->db->delete(${1:table});
-
-#session
-snippet sm_session_set
- Session::set(${1:key}, ${2:value});
-
-snippet sm_session_get
- Session::get(${1:key});
-
-snippet sm_session_pull
- Session::pull(${1:key});
-
-snippet sm_session_id
- Session::id();
-
-snippet sm_session_destroy
- Session::set(${1:key});
-
-snippet sm_session_display
- Session::display();
-
-#url
-snippet sm_url_redirect
- Url:redirect('${1:path}');
-
-snippet sm_url_previous
- Url:previous();
-
-snippet sm_url_templatepath
- Url:templatePath();
-
-snippet sm_url_autolink
- Url:autolink('${1:string}');
diff --git a/vim/snippets/vim-snippets/snippets/slim.snippets b/vim/snippets/vim-snippets/snippets/slim.snippets
deleted file mode 100644
index 885ca8d..0000000
--- a/vim/snippets/vim-snippets/snippets/slim.snippets
+++ /dev/null
@@ -1,63 +0,0 @@
-snippet pry
- - binding.pry
-snippet renp
- = render partial: '${0}'
-# Forms
-# =====
-snippet fieldset
- fieldset
- legend ${1}
-snippet css
- link rel="stylesheet" href="${1:style.css}" type="text/css" media="${2:all}"
-snippet script
- script src="${1:script.js}" type="text/javascript"
-# Some useful Unicode entities
-# ============================
-# Non-Breaking Space
-snippet nbs
-
-# ←
-snippet left
- ←
-# →
-snippet right
- →
-# ↑
-snippet up
- ↑
-# ↓
-snippet down
- ↓
-# ↩
-snippet return
- ↩
-# ⇤
-snippet backtab
- ⇤
-# ⇥
-snippet tab
- ⇥
-# ⇧
-snippet shift
- ⇧
-# ⌃
-snippet ctrl
- ⌃
-# ⌅
-snippet enter
- ⌅
-# ⌘
-snippet cmd
- ⌘
-# ⌥
-snippet option
- ⌥
-# ⌦
-snippet delete
- ⌦
-# ⌫
-snippet backspace
- ⌫
-# ⎋
-snippet esc
- ⎋
diff --git a/vim/snippets/vim-snippets/snippets/snippets.snippets b/vim/snippets/vim-snippets/snippets/snippets.snippets
deleted file mode 100644
index c2d932a..0000000
--- a/vim/snippets/vim-snippets/snippets/snippets.snippets
+++ /dev/null
@@ -1,8 +0,0 @@
-# snippets for making snippets :)
-snippet snip
- snippet ${1:trigger} "${2:description}"
- ${0:${VISUAL}}
-snippet v
- {VISUAL}
-snippet $
- ${${1:1}:${0:text}}
diff --git a/vim/snippets/vim-snippets/snippets/sql.snippets b/vim/snippets/vim-snippets/snippets/sql.snippets
deleted file mode 100644
index 556fae0..0000000
--- a/vim/snippets/vim-snippets/snippets/sql.snippets
+++ /dev/null
@@ -1,26 +0,0 @@
-snippet tbl
- create table ${1:table} (
- ${0:columns}
- );
-snippet col
- ${1:name} ${2:type} ${3:default ''} ${0:not null}
-snippet ccol
- ${1:name} varchar2(${2:size}) ${3:default ''} ${0:not null}
-snippet ncol
- ${1:name} number ${3:default 0} ${0:not null}
-snippet dcol
- ${1:name} date ${3:default sysdate} ${0:not null}
-snippet ind
- create index ${0:$1_$2} on ${1:table}(${2:column});
-snippet uind
- create unique index ${1:name} on ${2:table}(${0:column});
-snippet tblcom
- comment on table ${1:table} is '${0:comment}';
-snippet colcom
- comment on column ${1:table}.${2:column} is '${0:comment}';
-snippet addcol
- alter table ${1:table} add (${2:column} ${0:type});
-snippet seq
- create sequence ${1:name} start with ${2:1} increment by ${3:1} minvalue ${0:1};
-snippet s*
- select * from ${0:table}
diff --git a/vim/snippets/vim-snippets/snippets/stylus.snippets b/vim/snippets/vim-snippets/snippets/stylus.snippets
deleted file mode 100644
index 3ce35c2..0000000
--- a/vim/snippets/vim-snippets/snippets/stylus.snippets
+++ /dev/null
@@ -1,999 +0,0 @@
-snippet !
- !important
-snippet bdi:m+
- -moz-border-image url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch}
-snippet bdi:m
- -moz-border-image ${0}
-snippet bdrz:m
- -moz-border-radius ${0}
-snippet bxsh:m+
- -moz-box-shadow ${1:0} ${2:0} ${3:0} ${0}
-snippet bxsh:m
- -moz-box-shadow ${0}
-snippet bdi:w+
- -webkit-border-image url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch}
-snippet bdi:w
- -webkit-border-image ${0}
-snippet bdrz:w
- -webkit-border-radius ${0}
-snippet bxsh:w+
- -webkit-box-shadow ${1:0} ${2:0} ${3:0} ${0}
-snippet bxsh:w
- -webkit-box-shadow ${0}
-snippet @f
- @font-face ${0}
-snippet @i
- @import '${0}'
-snippet @r
- @require '${0}'
-snippet @m
- @media ${1:screen}
-snippet @msmw
- @media screen and (min-width: ${0}px)
-snippet @ext
- @extend .${1}
- ${0}
-snippet bg+
- background ${1} url(${2}) ${3:0} ${4:0} ${0:no-repeat}
-snippet bga
- background-attachment ${0}
-snippet bga:f
- background-attachment fixed
-snippet bga:s
- background-attachment scroll
-snippet bgbk
- background-break ${0}
-snippet bgbk:bb
- background-break bounding-box
-snippet bgbk:c
- background-break continuous
-snippet bgbk:eb
- background-break each-box
-snippet bgcp
- background-clip ${0}
-snippet bgcp:bb
- background-clip border-box
-snippet bgcp:cb
- background-clip content-box
-snippet bgcp:nc
- background-clip no-clip
-snippet bgcp:pb
- background-clip padding-box
-snippet bgc
- background-color ${0}
-snippet bgc:t
- background-color transparent
-snippet bgi
- background-image url(${0})
-snippet bgi:n
- background-image none
-snippet bgo
- background-origin ${0}
-snippet bgo:bb
- background-origin border-box
-snippet bgo:cb
- background-origin content-box
-snippet bgo:pb
- background-origin padding-box
-snippet bgpx
- background-position-x ${0}
-snippet bgpy
- background-position-y ${0}
-snippet bgp
- background-position ${1:0} ${0:0}
-snippet bgr
- background-repeat ${0}
-snippet bgr:n
- background-repeat no-repeat
-snippet bgr:x
- background-repeat repeat-x
-snippet bgr:y
- background-repeat repeat-y
-snippet bgr:r
- background-repeat repeat
-snippet bgz
- background-size ${0}
-snippet bgz:a
- background-size auto
-snippet bgz:ct
- background-size contain
-snippet bgz:cv
- background-size cover
-snippet bg
- background ${0}
-snippet bg:ie
- filter progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1}',sizingMethod='${0:crop}')
-snippet bg:n
- background none
-snippet bd+
- border ${1:1px} ${2:solid} ${0}
-snippet bdb+
- border-bottom ${1:1px} ${2:solid} ${0}
-snippet bdbc
- border-bottom-color ${0}
-snippet bdbi
- border-bottom-image url(${0})
-snippet bdbi:n
- border-bottom-image none
-snippet bdbli
- border-bottom-left-image url(${0})
-snippet bdbli:c
- border-bottom-left-image continue
-snippet bdbli:n
- border-bottom-left-image none
-snippet bdblrz
- border-bottom-left-radius ${0}
-snippet bdbri
- border-bottom-right-image url(${0})
-snippet bdbri:c
- border-bottom-right-image continue
-snippet bdbri:n
- border-bottom-right-image none
-snippet bdbrrz
- border-bottom-right-radius ${0}
-snippet bdbs
- border-bottom-style ${0}
-snippet bdbs:n
- border-bottom-style none
-snippet bdbw
- border-bottom-width ${0}
-snippet bdb
- border-bottom ${0}
-snippet bdb:n
- border-bottom none
-snippet bdbk
- border-break ${0}
-snippet bdbk:c
- border-break close
-snippet bdcl
- border-collapse ${0}
-snippet bdcl:c
- border-collapse collapse
-snippet bdcl:s
- border-collapse separate
-snippet bdc
- border-color ${0}
-snippet bdci
- border-corner-image url(${0})
-snippet bdci:c
- border-corner-image continue
-snippet bdci:n
- border-corner-image none
-snippet bdf
- border-fit ${0}
-snippet bdf:c
- border-fit clip
-snippet bdf:of
- border-fit overwrite
-snippet bdf:ow
- border-fit overwrite
-snippet bdf:r
- border-fit repeat
-snippet bdf:sc
- border-fit scale
-snippet bdf:sp
- border-fit space
-snippet bdf:st
- border-fit stretch
-snippet bdi
- border-image url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch}
-snippet bdi:n
- border-image none
-snippet bdl+
- border-left ${1:1px} ${2:solid} ${0}
-snippet bdlc
- border-left-color ${0}
-snippet bdli
- border-left-image url(${0})
-snippet bdli:n
- border-left-image none
-snippet bdls
- border-left-style ${0}
-snippet bdls:n
- border-left-style none
-snippet bdlw
- border-left-width ${0}
-snippet bdl
- border-left ${0}
-snippet bdl:n
- border-left none
-snippet bdlt
- border-length ${0}
-snippet bdlt:a
- border-length auto
-snippet bdrz
- border-radius ${0}
-snippet bdr+
- border-right ${1:1px} ${2:solid} ${0}
-snippet bdrc
- border-right-color ${0}
-snippet bdri
- border-right-image url(${0})
-snippet bdri:n
- border-right-image none
-snippet bdrs
- border-right-style ${0}
-snippet bdrs:n
- border-right-style none
-snippet bdrw
- border-right-width ${0}
-snippet bdr
- border-right ${0}
-snippet bdr:n
- border-right none
-snippet bdsp
- border-spacing ${0}
-snippet bds
- border-style ${0}
-snippet bds:ds
- border-style dashed
-snippet bds:dtds
- border-style dot-dash
-snippet bds:dtdtds
- border-style dot-dot-dash
-snippet bds:dt
- border-style dotted
-snippet bds:db
- border-style double
-snippet bds:g
- border-style groove
-snippet bds:h
- border-style hidden
-snippet bds:i
- border-style inset
-snippet bds:n
- border-style none
-snippet bds:o
- border-style outset
-snippet bds:r
- border-style ridge
-snippet bds:s
- border-style solid
-snippet bds:w
- border-style wave
-snippet bdt+
- border-top ${1:1px} ${2:solid} ${0}
-snippet bdtc
- border-top-color ${0}
-snippet bdti
- border-top-image url(${0})
-snippet bdti:n
- border-top-image none
-snippet bdtli
- border-top-left-image url(${0})
-snippet bdtli:c
- border-corner-image continue
-snippet bdtli:n
- border-corner-image none
-snippet bdtlrz
- border-top-left-radius ${0}
-snippet bdtri
- border-top-right-image url(${0})
-snippet bdtri:c
- border-top-right-image continue
-snippet bdtri:n
- border-top-right-image none
-snippet bdtrrz
- border-top-right-radius ${0}
-snippet bdts
- border-top-style ${0}
-snippet bdts:n
- border-top-style none
-snippet bdtw
- border-top-width ${0}
-snippet bdt
- border-top ${0}
-snippet bdt:n
- border-top none
-snippet bdw
- border-width ${0}
-snippet bd
- border ${0}
-snippet bd:n
- border none
-snippet b
- bottom ${0}
-snippet b:a
- bottom auto
-snippet bxsh+
- box-shadow ${1:0} ${2:0} ${3:0} ${0}
-snippet bxsh
- box-shadow ${0}
-snippet bxsh:n
- box-shadow none
-snippet bxz
- box-sizing ${0}
-snippet bxz:bb
- box-sizing border-box
-snippet bxz:cb
- box-sizing content-box
-snippet cps
- caption-side ${0}
-snippet cps:b
- caption-side bottom
-snippet cps:t
- caption-side top
-snippet cl
- clear ${0}
-snippet cl:b
- clear both
-snippet cl:l
- clear left
-snippet cl:n
- clear none
-snippet cl:r
- clear right
-snippet cp
- clip ${0}
-snippet cp:a
- clip auto
-snippet cp:r
- clip rect(${1:0} ${2:0} ${3:0} ${0:0})
-snippet c
- color ${0}
-snippet ct
- content ${0}
-snippet ct:a
- content attr(${0})
-snippet ct:cq
- content close-quote
-snippet ct:c
- content counter(${0})
-snippet ct:cs
- content counters(${0})
-snippet ct:ncq
- content no-close-quote
-snippet ct:noq
- content no-open-quote
-snippet ct:n
- content normal
-snippet ct:oq
- content open-quote
-snippet coi
- counter-increment ${0}
-snippet cor
- counter-reset ${0}
-snippet cur
- cursor ${0}
-snippet cur:a
- cursor auto
-snippet cur:c
- cursor crosshair
-snippet cur:d
- cursor default
-snippet cur:ha
- cursor hand
-snippet cur:he
- cursor help
-snippet cur:m
- cursor move
-snippet cur:p
- cursor pointer
-snippet cur:t
- cursor text
-snippet d
- display ${0}
-snippet d:mib
- display -moz-inline-box
-snippet d:mis
- display -moz-inline-stack
-snippet d:b
- display block
-snippet d:f
- display flex
-snippet d:cp
- display compact
-snippet d:ib
- display inline-block
-snippet d:itb
- display inline-table
-snippet d:i
- display inline
-snippet d:li
- display list-item
-snippet d:n
- display none
-snippet d:ri
- display run-in
-snippet d:tbcp
- display table-caption
-snippet d:tbc
- display table-cell
-snippet d:tbclg
- display table-column-group
-snippet d:tbcl
- display table-column
-snippet d:tbfg
- display table-footer-group
-snippet d:tbhg
- display table-header-group
-snippet d:tbrg
- display table-row-group
-snippet d:tbr
- display table-row
-snippet d:tb
- display table
-snippet ec
- empty-cells ${0}
-snippet ec:h
- empty-cells hide
-snippet ec:s
- empty-cells show
-snippet exp
- expression()
-snippet fl
- float ${0}
-snippet fl:l
- float left
-snippet fl:n
- float none
-snippet fl:r
- float right
-snippet f+
- font ${1:1em} ${2:Arial},${0:sans-serif}
-snippet fef
- font-effect ${0}
-snippet fef:eb
- font-effect emboss
-snippet fef:eg
- font-effect engrave
-snippet fef:n
- font-effect none
-snippet fef:o
- font-effect outline
-snippet femp
- font-emphasize-position ${0}
-snippet femp:a
- font-emphasize-position after
-snippet femp:b
- font-emphasize-position before
-snippet fems
- font-emphasize-style ${0}
-snippet fems:ac
- font-emphasize-style accent
-snippet fems:c
- font-emphasize-style circle
-snippet fems:ds
- font-emphasize-style disc
-snippet fems:dt
- font-emphasize-style dot
-snippet fems:n
- font-emphasize-style none
-snippet fem
- font-emphasize ${0}
-snippet ff
- font-family ${0}
-snippet ff:c
- font-family ${0:'Monotype Corsiva','Comic Sans MS'},cursive
-snippet ff:f
- font-family ${0:Capitals,Impact},fantasy
-snippet ff:m
- font-family ${0:Monaco,'Courier New'},monospace
-snippet ff:ss
- font-family ${0:Helvetica,Arial},sans-serif
-snippet ff:s
- font-family ${0:Georgia,'Times New Roman'},serif
-snippet fza
- font-size-adjust ${0}
-snippet fza:n
- font-size-adjust none
-snippet fz
- font-size ${0}
-snippet fsm
- font-smooth ${0}
-snippet fsm:aw
- font-smooth always
-snippet fsm:a
- font-smooth auto
-snippet fsm:n
- font-smooth never
-snippet fst
- font-stretch ${0}
-snippet fst:c
- font-stretch condensed
-snippet fst:e
- font-stretch expanded
-snippet fst:ec
- font-stretch extra-condensed
-snippet fst:ee
- font-stretch extra-expanded
-snippet fst:n
- font-stretch normal
-snippet fst:sc
- font-stretch semi-condensed
-snippet fst:se
- font-stretch semi-expanded
-snippet fst:uc
- font-stretch ultra-condensed
-snippet fst:ue
- font-stretch ultra-expanded
-snippet fs
- font-style ${0}
-snippet fs:i
- font-style italic
-snippet fs:n
- font-style normal
-snippet fs:o
- font-style oblique
-snippet fv
- font-variant ${0}
-snippet fv:n
- font-variant normal
-snippet fv:sc
- font-variant small-caps
-snippet fw
- font-weight ${0}
-snippet fw:b
- font-weight bold
-snippet fw:br
- font-weight bolder
-snippet fw:lr
- font-weight lighter
-snippet fw:n
- font-weight normal
-snippet f
- font ${0}
-snippet h
- height ${0}
-snippet h:a
- height auto
-snippet l
- left ${0}
-snippet l:a
- left auto
-snippet lts
- letter-spacing ${0}
-snippet lh
- line-height ${0}
-snippet lisi
- list-style-image url(${0})
-snippet lisi:n
- list-style-image none
-snippet lisp
- list-style-position ${0}
-snippet lisp:i
- list-style-position inside
-snippet lisp:o
- list-style-position outside
-snippet list
- list-style-type ${0}
-snippet list:c
- list-style-type circle
-snippet list:dclz
- list-style-type decimal-leading-zero
-snippet list:dc
- list-style-type decimal
-snippet list:d
- list-style-type disc
-snippet list:lr
- list-style-type lower-roman
-snippet list:n
- list-style-type none
-snippet list:s
- list-style-type square
-snippet list:ur
- list-style-type upper-roman
-snippet lis
- list-style ${0}
-snippet lis:n
- list-style none
-snippet mb
- margin-bottom ${0}
-snippet mb:a
- margin-bottom auto
-snippet ml
- margin-left ${0}
-snippet ml:a
- margin-left auto
-snippet mr
- margin-right ${0}
-snippet mr:a
- margin-right auto
-snippet mt
- margin-top ${0}
-snippet mt:a
- margin-top auto
-snippet m
- margin ${0}
-snippet m:4
- margin ${1:0} ${2:0} ${3:0} ${0:0}
-snippet m:3
- margin ${1:0} ${2:0} ${0:0}
-snippet m:2
- margin ${1:0} ${0:0}
-snippet m:0
- margin 0
-snippet m:a
- margin auto
-snippet mah
- max-height ${0}
-snippet mah:n
- max-height none
-snippet maw
- max-width ${0}
-snippet maw:n
- max-width none
-snippet mih
- min-height ${0}
-snippet miw
- min-width ${0}
-snippet op
- opacity ${0}
-snippet op:ie
- filter progid:DXImageTransform.Microsoft.Alpha(Opacity=${0:100})
-snippet op:ms
- -ms-filter 'progid:DXImageTransform.Microsoft.Alpha(Opacity=${0:100})'
-snippet orp
- orphans ${0}
-snippet o+
- outline ${1:1px} ${2:solid} ${0}
-snippet oc
- outline-color ${0}
-snippet oc:i
- outline-color invert
-snippet oo
- outline-offset ${0}
-snippet os
- outline-style ${0}
-snippet ow
- outline-width ${0}
-snippet o
- outline ${0}
-snippet o:n
- outline none
-snippet ovs
- overflow-style ${0}
-snippet ovs:a
- overflow-style auto
-snippet ovs:mq
- overflow-style marquee
-snippet ovs:mv
- overflow-style move
-snippet ovs:p
- overflow-style panner
-snippet ovs:s
- overflow-style scrollbar
-snippet ovx
- overflow-x ${0}
-snippet ovx:a
- overflow-x auto
-snippet ovx:h
- overflow-x hidden
-snippet ovx:s
- overflow-x scroll
-snippet ovx:v
- overflow-x visible
-snippet ovy
- overflow-y ${0}
-snippet ovy:a
- overflow-y auto
-snippet ovy:h
- overflow-y hidden
-snippet ovy:s
- overflow-y scroll
-snippet ovy:v
- overflow-y visible
-snippet ov
- overflow ${0}
-snippet ov:a
- overflow auto
-snippet ov:h
- overflow hidden
-snippet ov:s
- overflow scroll
-snippet ov:v
- overflow visible
-snippet pb
- padding-bottom ${0}
-snippet pl
- padding-left ${0}
-snippet pr
- padding-right ${0}
-snippet pt
- padding-top ${0}
-snippet p
- padding ${0}
-snippet p:4
- padding ${1:0} ${2:0} ${3:0} ${0:0}
-snippet p:3
- padding ${1:0} ${2:0} ${0:0}
-snippet p:2
- padding ${1:0} ${0:0}
-snippet p:0
- padding 0
-snippet pgba
- page-break-after ${0}
-snippet pgba:aw
- page-break-after always
-snippet pgba:a
- page-break-after auto
-snippet pgba:l
- page-break-after left
-snippet pgba:r
- page-break-after right
-snippet pgbb
- page-break-before ${0}
-snippet pgbb:aw
- page-break-before always
-snippet pgbb:a
- page-break-before auto
-snippet pgbb:l
- page-break-before left
-snippet pgbb:r
- page-break-before right
-snippet pgbi
- page-break-inside ${0}
-snippet pgbi:a
- page-break-inside auto
-snippet pgbi:av
- page-break-inside avoid
-snippet pos
- position ${0}
-snippet pos:a
- position absolute
-snippet pos:f
- position fixed
-snippet pos:r
- position relative
-snippet pos:s
- position static
-snippet q
- quotes ${0}
-snippet q:en
- quotes '\201C' '\201D' '\2018' '\2019'
-snippet q:n
- quotes none
-snippet q:ru
- quotes '\00AB' '\00BB' '\201E' '\201C'
-snippet rz
- resize ${0}
-snippet rz:b
- resize both
-snippet rz:h
- resize horizontal
-snippet rz:n
- resize none
-snippet rz:v
- resize vertical
-snippet r
- right ${0}
-snippet r:a
- right auto
-snippet tbl
- table-layout ${0}
-snippet tbl:a
- table-layout auto
-snippet tbl:f
- table-layout fixed
-snippet tal
- text-align-last ${0}
-snippet tal:a
- text-align-last auto
-snippet tal:c
- text-align-last center
-snippet tal:l
- text-align-last left
-snippet tal:r
- text-align-last right
-snippet ta
- text-align ${0}
-snippet ta:c
- text-align center
-snippet ta:l
- text-align left
-snippet ta:r
- text-align right
-snippet td
- text-decoration ${0}
-snippet td:l
- text-decoration line-through
-snippet td:n
- text-decoration none
-snippet td:o
- text-decoration overline
-snippet td:u
- text-decoration underline
-snippet te
- text-emphasis ${0}
-snippet te:ac
- text-emphasis accent
-snippet te:a
- text-emphasis after
-snippet te:b
- text-emphasis before
-snippet te:c
- text-emphasis circle
-snippet te:ds
- text-emphasis disc
-snippet te:dt
- text-emphasis dot
-snippet te:n
- text-emphasis none
-snippet th
- text-height ${0}
-snippet th:a
- text-height auto
-snippet th:f
- text-height font-size
-snippet th:m
- text-height max-size
-snippet th:t
- text-height text-size
-snippet ti
- text-indent ${0}
-snippet ti:-
- text-indent -9999px
-snippet tj
- text-justify ${0}
-snippet tj:a
- text-justify auto
-snippet tj:d
- text-justify distribute
-snippet tj:ic
- text-justify inter-cluster
-snippet tj:ii
- text-justify inter-ideograph
-snippet tj:iw
- text-justify inter-word
-snippet tj:k
- text-justify kashida
-snippet tj:t
- text-justify tibetan
-snippet to+
- text-outline ${1:0} ${2:0} ${0}
-snippet to
- text-outline ${0}
-snippet to:n
- text-outline none
-snippet tr
- text-replace ${0}
-snippet tr:n
- text-replace none
-snippet tsh+
- text-shadow ${1:0} ${2:0} ${3:0} ${0}
-snippet tsh
- text-shadow ${0}
-snippet tsh:n
- text-shadow none
-snippet tt
- text-transform ${0}
-snippet tt:c
- text-transform capitalize
-snippet tt:l
- text-transform lowercase
-snippet tt:n
- text-transform none
-snippet tt:u
- text-transform uppercase
-snippet tw
- text-wrap ${0}
-snippet tw:no
- text-wrap none
-snippet tw:n
- text-wrap normal
-snippet tw:s
- text-wrap suppress
-snippet tw:u
- text-wrap unrestricted
-snippet t
- top ${0}
-snippet t:a
- top auto
-snippet va
- vertical-align ${0}
-snippet va:bl
- vertical-align baseline
-snippet va:b
- vertical-align bottom
-snippet va:m
- vertical-align middle
-snippet va:sub
- vertical-align sub
-snippet va:sup
- vertical-align super
-snippet va:tb
- vertical-align text-bottom
-snippet va:tt
- vertical-align text-top
-snippet va:t
- vertical-align top
-snippet v
- visibility ${0}
-snippet v:c
- visibility collapse
-snippet v:h
- visibility hidden
-snippet v:v
- visibility visible
-snippet whsc
- white-space-collapse ${0}
-snippet whsc:ba
- white-space-collapse break-all
-snippet whsc:bs
- white-space-collapse break-strict
-snippet whsc:k
- white-space-collapse keep-all
-snippet whsc:l
- white-space-collapse loose
-snippet whsc:n
- white-space-collapse normal
-snippet whs
- white-space ${0}
-snippet whs:n
- white-space normal
-snippet whs:nw
- white-space nowrap
-snippet whs:pl
- white-space pre-line
-snippet whs:pw
- white-space pre-wrap
-snippet whs:p
- white-space pre
-snippet wid
- widows ${0}
-snippet w
- width ${0}
-snippet w:a
- width auto
-snippet wob
- word-break ${0}
-snippet wob:ba
- word-break break-all
-snippet wob:bs
- word-break break-strict
-snippet wob:k
- word-break keep-all
-snippet wob:l
- word-break loose
-snippet wob:n
- word-break normal
-snippet wos
- word-spacing ${0}
-snippet wow
- word-wrap ${0}
-snippet wow:no
- word-wrap none
-snippet wow:n
- word-wrap normal
-snippet wow:s
- word-wrap suppress
-snippet wow:u
- word-wrap unrestricted
-snippet z
- z-index ${0}
-snippet z:a
- z-index auto
-snippet zoo
- zoom 1
-snippet :h
- :hover
-snippet :fc
- :first-child
-snippet :lc
- :last-child
-snippet :nc
- :nth-child(${0})
-snippet :nlc
- :nth-last-child(${0})
-snippet :oc
- :only-child
-snippet :a
- :after
-snippet :b
- :before
-snippet ::a
- ::after
-snippet ::b
- ::before
-snippet if
- if ${0}
-snippet mix
- ${1}(${0})
-snippet for
- for ${1:i} in ${0}
-snippet keyf
- @keyframes ${0}
-snippet jc:c
- justify-content center
-snippet jc
- justify-content
diff --git a/vim/snippets/vim-snippets/snippets/supercollider.snippets b/vim/snippets/vim-snippets/snippets/supercollider.snippets
deleted file mode 100644
index afaefb6..0000000
--- a/vim/snippets/vim-snippets/snippets/supercollider.snippets
+++ /dev/null
@@ -1,22 +0,0 @@
-snippet b
- (
- ${0}
- )
-snippet if
- if (${1}) {
- ${0}
- }
-snippet ife
- if (${1}) {
- ${2}
- } {
- ${0}
- }
-snippet for
- for (${1:1}, ${2:10}) { |i|
- ${0}
- }
-snippet sdef
- SynthDef(\\${1:synthName}, {${2}
- ${0}
- }).add;
diff --git a/vim/snippets/vim-snippets/snippets/systemverilog.snippets b/vim/snippets/vim-snippets/snippets/systemverilog.snippets
deleted file mode 100644
index 70a9d2d..0000000
--- a/vim/snippets/vim-snippets/snippets/systemverilog.snippets
+++ /dev/null
@@ -1,73 +0,0 @@
-extends verilog
-
-# Foreach Loop
-snippet fe
- foreach (${1}) begin
- ${0}
- end
-# Do-while statement
-snippet dowh
- do begin
- ${0}
- end while (${1});
-# Combinational always block
-snippet alc
- always_comb begin ${1:: statement_label}
- ${0}
- end $1
-# Sequential logic
-snippet alff
- always_ff @(posedge ${1:clk}) begin ${2:: statement_label}
- ${0}
- end $2
-# Latched logic
-snippet all
- always_latch begin ${1:: statement_label}
- ${0}
- end $1
-# Class
-snippet cl
- class ${1:class_name};
- // data or class properties
- ${0}
-
- // initialization
- function new();
- endfunction : new
-
- endclass : $1
-# Typedef structure
-snippet types
- typedef struct {
- ${0}
- } ${1:name_t};
-# Program block
-snippet prog
- program ${1:program_name} ();
- ${0}
- endprogram : $1
-# Interface block
-snippet intf
- interface ${1:program_name} ();
- // nets
- ${0}
- // clocking
-
- // modports
-
- endinterface : $1
-# Clocking Block
-snippet clock
- clocking ${1:clocking_name} @(${2:posedge} ${3:clk});
- ${0}
- endclocking : $1
-# Covergroup construct
-snippet cg
- covergroup ${1:group_name} @(${2:posedge} ${3:clk});
- ${0}
- endgroup : $1
-# Package declaration
-snippet pkg
- package ${1:package_name};
- ${0}
- endpackage : $1
diff --git a/vim/snippets/vim-snippets/snippets/tcl.snippets b/vim/snippets/vim-snippets/snippets/tcl.snippets
deleted file mode 100644
index 9da703c..0000000
--- a/vim/snippets/vim-snippets/snippets/tcl.snippets
+++ /dev/null
@@ -1,96 +0,0 @@
-# #!/usr/bin/env tclsh
-snippet #!
- #!/usr/bin/env tclsh
-
-# Process
-snippet pro
- proc ${1:function_name} {${2:args}} {
- ${0}
- }
-#xif
-snippet xif
- ${1:expr}? ${2:true} : ${0:false}
-# Conditional
-snippet if
- if {${1}} {
- ${0}
- }
-# Conditional if..else
-snippet ife
- if {${1}} {
- ${2}
- } else {
- ${0:# else...}
- }
-snippet eif
- elseif {${1}} {
- ${0}
- }
-# Conditional if..elsif..else
-snippet ifee
- if {${1}} {
- ${2}
- } elseif {${3}} {
- ${4:# elsif...}
- } else {
- ${0:# else...}
- }
-# If catch then
-snippet ifc
- if { [catch {${1:#do something...}} ${2:err}] } {
- ${0:# handle failure...}
- }
-# Catch
-snippet catch
- catch {${1}} ${2:err} ${0:options}
-# While Loop
-snippet wh
- while {${1}} {
- ${0}
- }
-# For Loop
-snippet for
- for {set ${2:var} 0} {$$2 < ${1:count}} {${3:incr} $2} {
- ${0}
- }
-# Foreach Loop
-snippet fore
- foreach ${1:x} {${2:#list}} {
- ${0}
- }
-# after ms script...
-snippet af
- after ${1:ms} ${0:#do something}
-# after cancel id
-snippet afc
- after cancel ${0:id or script}
-# after idle
-snippet afi
- after idle ${0:script}
-# after info id
-snippet afin
- after info ${0:id}
-# Expr
-snippet exp
- expr {${0:#expression here}}
-# Switch
-snippet sw
- switch ${1:var} {
- ${3:pattern 1} {
- ${0:#do something}
- }
- default {
- ${2:#do something}
- }
- }
-# Case
-snippet ca
- ${1:pattern} {
- ${2:#do something}
- }
-# Namespace eval
-snippet ns
- namespace eval ${1:path} {${0:#script...}}
-# Namespace current
-snippet nsc
- namespace current
diff --git a/vim/snippets/vim-snippets/snippets/tex.snippets b/vim/snippets/vim-snippets/snippets/tex.snippets
deleted file mode 100644
index f60f312..0000000
--- a/vim/snippets/vim-snippets/snippets/tex.snippets
+++ /dev/null
@@ -1,341 +0,0 @@
-#version 1
-#PREAMBLE
-#newcommand
-snippet nc \newcommand
- \\newcommand{\\${1:cmd}}[${2:opt}]{${3:realcmd}} ${0}
-#usepackage
-snippet up \usepackage
- \\usepackage[${1:options}]{${2:package}} ${0}
-#newunicodechar
-snippet nuc \newunicodechar
- \\newunicodechar{${1}}{${2:\\ensuremath}${3:tex-substitute}}} ${0}
-#DeclareMathOperator
-snippet dmo \DeclareMathOperator
- \\DeclareMathOperator{${1}}{${2}} ${0}
-
-#DOCUMENT
-# \begin{}...\end{}
-snippet begin \begin{} ... \end{} block
- \\begin{${1:env}}
- ${0:${VISUAL}}
- \\end{$1}
-# Tabular
-snippet tab tabular (or arbitrary) environment
- \\begin{${1:tabular}}{${2:c}}
- ${0:${VISUAL}}
- \\end{$1}
-snippet thm thm (or arbitrary) environment with optional argument
- \\begin[${1:author}]{${2:thm}}
- ${0:${VISUAL}}
- \\end{$2}
-snippet center center environment
- \\begin{center}
- ${0:${VISUAL}}
- \\end{center}
-# Align(ed)
-snippet ali align(ed) environment
- \\begin{align${1:ed}}
- \\label{eq:${2}}
- ${0:${VISUAL}}
- \\end{align$1}
-# Gather(ed)
-snippet gat gather(ed) environment
- \\begin{gather${1:ed}}
- ${0:${VISUAL}}
- \\end{gather$1}
-# Equation
-snippet eq equation environment
- \\begin{equation}
- ${0:${VISUAL}}
- \\end{equation}
-# Equation
-snippet eql Labeled equation environment
- \\begin{equation}
- \\label{eq:${2}}
- ${0:${VISUAL}}
- \\end{equation}
-# Equation
-snippet eq* unnumbered equation environment
- \\begin{equation*}
- ${0:${VISUAL}}
- \\end{equation*}
-# Unnumbered Equation
-snippet \ unnumbered equation: \[ ... \]
- \\[
- ${0:${VISUAL}}
- \\]
-# Equation array
-snippet eqnarray eqnarray environment
- \\begin{eqnarray}
- ${0:${VISUAL}}
- \\end{eqnarray}
-# Label
-snippet lab \label
- \\label{${1:eq:}${2:fig:}${3:tab:}${0}}
-# Enumerate
-snippet enum enumerate environment
- \\begin{enumerate}
- \\item ${0}
- \\end{enumerate}
-snippet enuma enumerate environment
- \\begin{enumerate}[(a)]
- \\item ${0}
- \\end{enumerate}
-snippet enumi enumerate environment
- \\begin{enumerate}[(i)]
- \\item ${0}
- \\end{enumerate}
-# Itemize
-snippet item itemize environment
- \\begin{itemize}
- \\item ${0}
- \\end{itemize}
-snippet it \item
- \\item ${1:${VISUAL}}
-# Description
-snippet desc description environment
- \\begin{description}
- \\item[${1}] ${0}
- \\end{description}
-# Endless new item
-snippet ]i \item (recursive)
- \\item ${1}
- ${0:]i}
-# Matrix
-snippet mat smart matrix environment
- \\begin{${1:p/b/v/V/B/small}matrix}
- ${0:${VISUAL}}
- \\end{$1matrix}
-# Cases
-snippet cas cases environment
- \\begin{cases}
- ${1:equation}, &\\text{ if }${2:case}\\
- ${0:${VISUAL}}
- \\end{cases}
-# Split
-snippet spl split environment
- \\begin{split}
- ${0:${VISUAL}}
- \\end{split}
-# Part
-snippet part document \part
- \\part{${1:part name}} % (fold)
- \\label{prt:${2:$1}}
- ${0}
- % part $2 (end)
-# Chapter
-snippet cha \chapter
- \\chapter{${1:chapter name}}
- \\label{cha:${2:$1}}
- ${0}
-# Section
-snippet sec \section
- \\section{${1:section name}}
- \\label{sec:${2:$1}}
- ${0}
-# Section without number
-snippet sec* \section*
- \\section*{${1:section name}}
- \\label{sec:${2:$1}}
- ${0}
-# Sub Section
-snippet sub \subsection
- \\subsection{${1:subsection name}}
- \\label{sub:${2:$1}}
- ${0}
-# Sub Section without number
-snippet sub* \subsection*
- \\subsection*{${1:subsection name}}
- \\label{sub:${2:$1}}
- ${0}
-# Sub Sub Section
-snippet ssub \subsubsection
- \\subsubsection{${1:subsubsection name}}
- \\label{ssub:${2:$1}}
- ${0}
-# Sub Sub Section without number
-snippet ssub* \subsubsection*
- \\subsubsection*{${1:subsubsection name}}
- \\label{ssub:${2:$1}}
- ${0}
-# Paragraph
-snippet par \paragraph
- \\paragraph{${1:paragraph name}}
- \\label{par:${2:$1}}
- ${0}
-# Sub Paragraph
-snippet subp \subparagraph
- \\subparagraph{${1:subparagraph name}}
- \\label{subp:${2:$1}}
- ${0}
-snippet ni \noindent
- \\noindent
- ${0}
-#References
-snippet itd description \item
- \\item[${1:description}] ${0:item}
-snippet figure reference to a figure
- ${1:Figure}~\\ref{${2:fig:}}
-snippet table reference to a table
- ${1:Table}~\\ref{${2:tab:}}
-snippet listing reference to a listing
- ${1:Listing}~\\ref{${2:list}}
-snippet section reference to a section
- ${1:Section}~\\ref{sec:${2}} ${0}
-snippet page reference to a page
- ${1:page}~\\pageref{${2}} ${0}
-snippet index \index
- \\index{${1:index}} ${0}
-#Citations
-snippet citen \citen
- \\citen{${1}} ${0}
-# natbib citations
-snippet citep \citep
- \\citep{${1}} ${0}
-snippet citet \citet
- \\citet{${1}} ${0}
-snippet cite \cite[]{}
- \\cite[${1}]{${2}} ${0}
-snippet citea \citeauthor
- \\citeauthor{${1}} ${0}
-snippet citey \citeyear
- \\citeyear{${1}} ${0}
-snippet fcite \footcite[]{}
- \\footcite[${1}]{${2}}${0}
-#Formating text: italic, bold, underline, small capital, emphase ..
-snippet it italic text
- \\textit{${1:${VISUAL:text}}} ${0}
-snippet bf bold face text
- \\textbf{${1:${VISUAL:text}}} ${0}
-snippet under underline text
- \\underline{${1:${VISUAL:text}}} ${0}
-snippet emp emphasize text
- \\emph{${1:${VISUAL:text}}} ${0}
-snippet sc small caps text
- \\textsc{${1:${VISUAL:text}}} ${0}
-#Choosing font
-snippet sf sans serife text
- \\textsf{${1:${VISUAL:text}}} ${0}
-snippet rm roman font text
- \\textrm{${1:${VISUAL:text}}} ${0}
-snippet tt typewriter (monospace) text
- \\texttt{${1:${VISUAL:text}}} ${0}
-#Math font
-snippet mf mathfrak
- \\mathfrak{${1:${VISUAL:text}}} ${0}
-snippet mc mathcal
- \\mathcal{${1:${VISUAL:text}}} ${0}
-snippet ms mathscr
- \\mathscr{${1:${VISUAL:text}}} ${0}
-#misc
-snippet ft \footnote
- \\footnote{${1:${VISUAL:text}}} ${0}
-snippet fig figure environment (includegraphics)
- \\begin{figure}
- \\begin{center}
- \\includegraphics[scale=${1}]{Figures/${2}}
- \\end{center}
- \\caption{${3}}
- \\label{fig:${4}}
- \\end{figure}
- ${0}
-snippet tikz figure environment (tikzpicture)
- \\begin{figure}[htpb]
- \\begin{center}
- \\begin{tikzpicture}[scale=${1:1}, transform shape]
- ${2}
- \\end{tikzpicture}
- \\end{center}
- \\caption{${3}}
- \\label{fig:${4}}
- \\end{figure}
- ${0}
-snippet subfig subfigure environment
- \\begin{subfigure}[${1}]{${2:\\textwidth}}
- \\begin{center}
- ${3}
- \\end{center}
- \\caption{${4}}
- \\label{fig:${5}}
- \\end{subfigure}
- ${0}
-snippet tikzcd tikzcd environment in equation
- \\begin{equation}
- \\begin{tikzcd}
- ${1}
- \\end{tikzcd}
- \\end{equation}
- ${0}
-snippet tikzcd* tikzcd environment in equation*
- \\begin{equation*}
- \\begin{tikzcd}
- ${1}
- \\end{tikzcd}
- \\end{equation*}
- ${0}
-#math
-snippet stackrel \stackrel{}{}
- \\stackrel{${1:above}}{${2:below}} ${0}
-snippet frac \frac{}{}
- \\frac{${1:num}}{${2:denom}} ${0}
-snippet sum \sum^{}_{}
- \\sum^{${1:n}}_{${2:i=1}} ${0}
-snippet lim \lim_{}
- \\lim_{${1:n \\to \\infty}} ${0}
-snippet frame frame environment
- \\begin{frame}[${1:t}]{${2:title}}
- ${0:${VISUAL}}
- \\end{frame}
-snippet block block environment
- \\begin{block}{${1:title}}
- ${0:${VISUAL}}
- \\end{block}
-snippet alert alertblock environment
- \\begin{alertblock}{${1:title}}
- ${0:${VISUAL}}
- \\end{alertblock}
-snippet example exampleblock environment
- \\begin{exampleblock}{${1:title}}
- ${0:${VISUAL}}
- \\end{exampleblock}
-snippet col2 two-column environment
- \\begin{columns}
- \\begin{column}{0.5\\textwidth}
- ${1}
- \\end{column}
- \\begin{column}{0.5\\textwidth}
- ${0}
- \\end{column}
- \\end{columns}
-snippet \{ \{ \}
- \\{ ${0} \\}
-#delimiter
-snippet lr left right
- \\left${1} ${0} \\right$1
-snippet lr( left( right)
- \\left( ${0} \\right)
-snippet lr| left| right|
- \\left| ${0} \\right|
-snippet lr{ left\{ right\}
- \\left\\{ ${0} \\right\\}
-snippet lr[ left[ right]
- \\left[ ${0} \\right]
-snippet lra langle rangle
- \\langle ${0} \\rangle
-# Code listings
-snippet lst
- \\begin{listing}[language=${1:language}]
- ${0:${VISUAL}}
- \\end{listing}
-snippet lsi
- \\lstinline|${1}| ${0}
-# Hyperlinks
-snippet url
- \\url{${1}} ${0}
-snippet href
- \\href{${1}}{${2}} ${0}
-# URL from Clipboard.
-snippet urlc
- \\url{`@+`} ${0}
-snippet hrefc
- \\href{`@+`}{${1}} ${0}
diff --git a/vim/snippets/vim-snippets/snippets/textile.snippets b/vim/snippets/vim-snippets/snippets/textile.snippets
deleted file mode 100644
index 1522bad..0000000
--- a/vim/snippets/vim-snippets/snippets/textile.snippets
+++ /dev/null
@@ -1,30 +0,0 @@
-# Jekyll post header
-snippet header
- ---
- title: ${1:title}
- layout: post
- date: ${2:date} ${0:hour:minute:second} -05:00
- ---
-
-# Image
-snippet img
- !${1:url}(${2:title}):${0:link}!
-
-# Table
-snippet |
- |${1}|
-
-# Link
-snippet link
- "${1:link text}":${0:url}
-
-# Acronym
-snippet (
- (${1:Expand acronym})
-
-# Footnote
-snippet fn
- [${1:ref number}] ${0}
-
- fn$1. ${2:footnote}
-
diff --git a/vim/snippets/vim-snippets/snippets/twig.snippets b/vim/snippets/vim-snippets/snippets/twig.snippets
deleted file mode 100644
index d0d7e1c..0000000
--- a/vim/snippets/vim-snippets/snippets/twig.snippets
+++ /dev/null
@@ -1,34 +0,0 @@
-snippet bl "{% block xyz %} .. {% endblock xyz %}"
- {% block ${1} %}
- ${2:${VISUAL}}
- {% endblock $1 %}
-snippet js "{% javascripts 'xyz' %} .. {% endjavascripts %}"
- {% javascripts '${1}' %}
-
- {% endjavascripts %}
-snippet css "{% stylesheets 'xyz' %} .. {% endstylesheets %}"
- {% stylesheets '${1}' %}
-
- {% endstylesheets %}
-snippet if "{% if %} .. {% endif %}"
- {% if ${1} %}
- ${2:${VISUAL}}
- {% endif %}
-snippet ife "{% if %} .. {% else %} .. {% endif %}"
- {% if ${1} %}
- ${2:${VISUAL}}
- {% else %}
- ${0}
- {% endif %}
-snippet el "{% else %}"
- {% else %}
- ${0:${VISUAL}}
-snippet eif "{% elseif %}"
- {% elseif ${1} %}
- ${0}
-snippet for "{% for x in y %} .. {% endfor %}"
- {% for ${1} in ${2} %}
- ${3}
- {% endfor %}
-snippet ext "{% extends xyz %}"
- {% extends ${1} %}
diff --git a/vim/snippets/vim-snippets/snippets/typescript.snippets b/vim/snippets/vim-snippets/snippets/typescript.snippets
deleted file mode 100644
index aa87242..0000000
--- a/vim/snippets/vim-snippets/snippets/typescript.snippets
+++ /dev/null
@@ -1 +0,0 @@
-extends javascript
diff --git a/vim/snippets/vim-snippets/snippets/verilog.snippets b/vim/snippets/vim-snippets/snippets/verilog.snippets
deleted file mode 100644
index 5cd80f3..0000000
--- a/vim/snippets/vim-snippets/snippets/verilog.snippets
+++ /dev/null
@@ -1,63 +0,0 @@
-# if statement
-snippet if
- if (${1}) begin
- ${0}
- end
-# If/else statements
-snippet ife
- if (${1}) begin
- ${2}
- end
- else begin
- ${1}
- end
-# Else if statement
-snippet eif
- else if (${1}) begin
- ${0}
- end
-#Else statement
-snippet el
- else begin
- ${0}
- end
-# While statement
-snippet wh
- while (${1}) begin
- ${0}
- end
-# Repeat Loop
-snippet rep
- repeat (${1}) begin
- ${0}
- end
-# Case statement
-snippet case
- case (${1:/* variable */})
- ${2:/* value */}: begin
- ${3}
- end
- default: begin
- ${4}
- end
- endcase
-# CaseZ statement
-snippet casez
- casez (${1:/* variable */})
- ${2:/* value */}: begin
- ${3}
- end
- default: begin
- ${4}
- end
- endcase
-# Always block
-snippet al
- always @(${1:/* sensitive list */}) begin
- ${0}
- end
-# Module block
-snippet mod
- module ${1:module_name} (${2});
- ${0}
- endmodule
diff --git a/vim/snippets/vim-snippets/snippets/vhdl.snippets b/vim/snippets/vim-snippets/snippets/vhdl.snippets
deleted file mode 100644
index f13f5bf..0000000
--- a/vim/snippets/vim-snippets/snippets/vhdl.snippets
+++ /dev/null
@@ -1,127 +0,0 @@
-#
-## Libraries
-
-snippet lib
- library ${1}
- use ${1}.${2}
-
-# Standard Libraries
-snippet libs
- library IEEE;
- use IEEE.std_logic_1164.ALL;
- use IEEE.numeric_std.ALL;
-
-# Xilinx Library
-snippet libx
- library UNISIM;
- use UNISIM.VCOMPONENTS.ALL;
-
-## Entity Declaration
-snippet ent
- entity ${1:`vim_snippets#Filename()`} is
- generic (
- ${2}
- );
- port (
- ${3}
- );
- end entity $1;
-
-## Architecture
-snippet arc
- architecture ${1:behav} of ${2:`vim_snippets#Filename()`} is
-
- ${3}
-
- begin
-
-
- end $1;
-
-## Declarations
-# std_logic
-snippet st
- signal ${1} : std_logic;
-# std_logic_vector
-snippet sv
- signal ${1} : std_logic_vector (${2} downto 0);
-# std_logic in
-snippet ist
- ${1} : in std_logic;
-# std_logic_vector in
-snippet isv
- ${1} : in std_logic_vector (${2} downto 0);
-# std_logic out
-snippet ost
- ${1} : out std_logic;
-# std_logic_vector out
-snippet osv
- ${1} : out std_logic_vector (${2} downto 0);
-# unsigned
-snippet un
- signal ${1} : unsigned (${2} downto 0);
-## Process Statements
-# process
-snippet pr
- process (${1})
- begin
- ${2}
- end process;
-# process with clock
-snippet prc
- process (${1:clk})
- begin
- if rising_edge ($1) then
- ${2}
- end if;
- end process;
-# process all
-snippet pra
- process (${1:all})
- begin
- ${2}
- end process;
-## Control Statements
-# if
-snippet if
- if ${1} then
- ${2}
- end if;
-# if
-snippet ife
- if ${1} then
- ${2}
- else
- ${3}
- end if;
-# else
-snippet el
- else
- ${1}
-# if
-snippet eif
- elsif ${1} then
- ${2}
-# case
-snippet ca
- case ${1} is
- ${2}
- end case;
-# when
-snippet wh
- when ${1} =>
- ${2}
-# for
-snippet for
- for ${1:i} in ${2} ${3:to} ${4} loop
- ${5}
- end loop;
-# while
-snippet wh
- while ${1} loop
- ${2}
- end loop;
-## Misc
-# others
-snippet oth
- (others => '${1:0}');
diff --git a/vim/snippets/vim-snippets/snippets/vim.snippets b/vim/snippets/vim-snippets/snippets/vim.snippets
deleted file mode 100644
index c604d9a..0000000
--- a/vim/snippets/vim-snippets/snippets/vim.snippets
+++ /dev/null
@@ -1,52 +0,0 @@
-snippet header standard Vim script file header
- " File: ${1:`expand('%:t')`}
- " Author: ${2:`g:snips_author`}
- " Description: ${3}
- ${0:" Last Modified: `strftime("%B %d, %Y")`}
-snippet guard script reload guard
- if exists('${1:did_`vim_snippets#Filename()`}') || &cp${2: || version < 700}
- finish
- endif
- let $1 = 1${0}
-snippet f function
- fun! ${1:`expand('%') =~ 'autoload' ? substitute(matchstr(expand('%:p'),'autoload/\zs.*\ze.vim'),'[/\\]','#','g').'#' : ''`}${2:function_name}(${3})
- ${0}
- endf
-snippet t try ... catch statement
- try
- ${1:${VISUAL}}
- catch ${2}
- ${0}
- endtry
-snippet for for ... in loop
- for ${1} in ${2}
- ${0:${VISUAL}}
- endfor
-snippet forkv for [key, value] in loop
- for [${1},${2}] in items(${3})
- ${0}
- unlet $1 $2
- endfor
-snippet wh while loop
- while ${1}
- ${0:${VISUAL}}
- endw
-snippet if if statement
- if ${1}
- ${0:${VISUAL}}
- endif
-snippet ife if ... else statement
- if ${1}
- ${2:${VISUAL}}
- else
- ${0}
- endif
-snippet au augroup ... autocmd block
- augroup ${1:AU_NAME}
- " this one is which you're most likely to use?
- autocmd ${2:BufRead,BufNewFile} ${3:*.ext,*.ext3|} ${0}
- augroup end
-snippet bun Vundle.vim Plugin definition
- Plugin '${0}'
-snippet plug Vundle.vim Plugin definition
- Plugin '${0}'
diff --git a/vim/snippets/vim-snippets/snippets/vue.snippets b/vim/snippets/vim-snippets/snippets/vue.snippets
deleted file mode 100644
index 63764f8..0000000
--- a/vim/snippets/vim-snippets/snippets/vue.snippets
+++ /dev/null
@@ -1,183 +0,0 @@
-# This snippet file enables vue files to use tabs for html, js and css. It also
-# includes some vue-specific html-like snippets, as well as some general
-# boilerplate code for vue.
-
-extends html, javascript, css
-
-# These snippets form a port of Sarah Drasner's vue-sublime-snippets
-
-# some html-like snippets
-
-snippet slot
-
-
-snippet template
-
-
-snippet transition
-
-
-# The following snippets create more complex boilerplate code.
-
-snippet vbase
-
-
-
-
-
-
-
-
-snippet vimport:c
- import New from './components/New.vue';
-
- export default{
- components: {
- appNew: New
- }
- }
-
-snippet vactionsis now
-
- actions: {
- updateValue({commit}, payload) {
- commit(updateValue, payload);
- }
- }
-
-# Add in js animation hooks
-snippet vanim:js:el
-
-
-
-
-snippet vanim:js:method
- methods: {
- beforeEnter(el) {
- console.log('beforeEnter');
- },
- enter(el, done) {
- console.log('enter');
- done();
- },
- afterEnter(el) {
- console.log('afterEnter');
- },
- enterCancelled(el, done) {
- console.log('enterCancelled');
- },
- beforeLeave(el) {
- console.log('beforeLeave');
- },
- leave(el, done) {
- console.log('leave');
- done();
- },
- afterLeave(el) {
- console.log('afterLeave');
- },
- leaveCancelled(el, done) {
- console.log('leaveCancelled');
- }
- }
-
-snippet vcl
- @click=""
-
-snippet vdata
- data: function () {
- return {
- key: value
- };
- }
-
-snippet vfilter
- filters: {
- fnName: function (v) {
- return;
- }
- }
-
-snippet vfor
-
- {{ item }}
-
{
- return state.value;
- }
- }
-
-snippet vimport
- import New from './components/New.vue';
-
-snippet vkeep
-
-
- default
-
-
-
-snippet vmixin
- // define a mixin object
- var myMixin = {
- created: function () {
- this.hello()
- },
- methods: {
- hello: function () {
- console.log('hello from mixin!')
- }
- }
- }
- // define a component that uses this mixin
- var Component = Vue.extend({
- mixins: [myMixin]
- })
- var component = new Component() // -> "hello from mixin!"
-
-snippet vmutations
- // define a mixin object
- var myMixin = {
- created: function () {
- this.hello()
- },
- methods: {
- hello: function () {
- console.log('hello from mixin!')
- }
- }
- }
- // define a component that uses this mixin
- var Component = Vue.extend({
- mixins: [myMixin]
- })
- var component = new Component() // -> "hello from mixin!"
-
-snippet vprops:d
- propName: {
- type: Number,
- default: 100
- },
-
-snippet vprops
- propName: {
- type: Number
- },
diff --git a/vim/snippets/vim-snippets/snippets/xml.snippets b/vim/snippets/vim-snippets/snippets/xml.snippets
deleted file mode 100644
index 0ab346b..0000000
--- a/vim/snippets/vim-snippets/snippets/xml.snippets
+++ /dev/null
@@ -1,12 +0,0 @@
-# xml declaration
-snippet xml
-
-# tag
-snippet t
- <${1:}>
- ${2}
- $1>
-# inline tag
-snippet ti
- <${1:}>${2}$1>
-
diff --git a/vim/snippets/vim-snippets/snippets/xslt.snippets b/vim/snippets/vim-snippets/snippets/xslt.snippets
deleted file mode 100644
index 700e77d..0000000
--- a/vim/snippets/vim-snippets/snippets/xslt.snippets
+++ /dev/null
@@ -1,97 +0,0 @@
-snippet apply-templates with-param
-
- ${3} ${4}
-
-
-snippet apply-templates sort-by
-
- ${5}
-
-
-snippet apply-templates plain
-
-
-snippet attribute blank
- ${2}
-
-snippet attribute value-of
-
-
-
-
-snippet call-template
-
-
-snippet call-template with-param
-
- ${3} ${4}
-
-
-snippet choose
-
-
- ${2}
-
-
-
-snippet copy-of
-
-
-snippet for-each
- ${2}
-
-
-snippet if
- ${2}
-
-
-snippet import
-
-
-snippet include
-
-
-snippet otherwise
- ${0}
-
-
-snippet param
- ${2}
-
-
-snippet stylesheet
- ${0}
-
-
-snippet template
- ${0}
-
-
-snippet template named
- ${0}
-
-
-snippet text
- ${0}
-
-snippet value-of
-
-
-snippet variable blank
- ${0}
-
-
-snippet variable select
-
-
-snippet when
- ${0}
-
-
-snippet with-param
- ${0}
-
-snippet with-param select
-
-
diff --git a/vim/snippets/vim-snippets/snippets/yii-chtml.snippets b/vim/snippets/vim-snippets/snippets/yii-chtml.snippets
deleted file mode 100644
index e827901..0000000
--- a/vim/snippets/vim-snippets/snippets/yii-chtml.snippets
+++ /dev/null
@@ -1,248 +0,0 @@
-#--------------------Yii CHtml---------------------------------
-#Yii CHtml::radioButton
-snippet yhrb
- echo CHtml::radioButton('${1:name}', ${2:false},array(${3:optionName}=>${0:optionValue} );
-
-#Yii CHtml::asset
-snippet yhass
- echo CHtml::asset('${0:path}');
-
-#Yii CHtml::activeLabelEx
-snippet yhale
- echo CHtml::activeLabelEx(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::encodeArray
-snippet yheca
- echo CHtml::encodeArray(array(${0}));
-
-#Yii CHtml::normalizeUrl
-snippet yhnurl
- echo CHtml::normalizeUrl(array('${0}'));
-
-#Yii CHtml::resetButton
-snippet yhsb
- echo CHtml::submitButton('${1:label}',array('${2:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::linkButton
-snippet yhlinkb
- echo CHtml::linkButton('${1:lable}',array('${2:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::activeTextArea
-snippet yhata
- echo CHtml::activeTextArea(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::ajaxButton
-snippet yhajb
- echo CHtml::ajaxButton('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::activeId
-snippet yhai
- echo CHtml::activeId(${1:model}, '${0:attribute}');
-
-#Yii CHtml::activeCheckBox
-snippet yhacb
- echo CHtml::activeCheckBox(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::activeHiddenField
-snippet yhahf
- echo CHtml::activeHiddenField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::encode
-snippet yhec
- echo CHtml::encode(${0:text});
-
-#Yii CHtml::metaTag
-snippet yhmtag
- echo CHtml::metaTag('${1:content}', '${2:name}', '${3:httpEquiv}',array('${4:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::dropDownList
-snippet yhddl
- echo CHtml::dropDownList('${1:name}', '${2:select}', array(${3}),array('${4:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::listBox
-snippet yhlb
- echo CHtml::listBox('${1:name}', '${2:select}',array(${3}),array('${4:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::script
-snippet yhjs
- echo CHtml::script('${0:test}');
-
-#Yii CHtml::ajax
-snippet yhaj
- echo CHtml::ajax(array(${0}));
-
-#Yii CHtml::textField
-snippet yhtf
- echo CHtml::textField('${1:name}', '${2:value}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::activePasswordField
-snippet yhapf
- echo CHtml::activePasswordField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::listData
-snippet yhld
- echo CHtml::listData(array(${1}),'${2:valueField}', '${3:textField}','${0:groupField}');
-
-#Yii CHtml::mailto
-snippet yhmt
- echo CHtml::mailto('${1:text}', '${2:email}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::image
-snippet yhimg
- echo CHtml::image('${1:src}', '${2:alt}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::activeListBox
-snippet yhalb
- echo CHtml::activeListBox(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::activeFileField
-snippet yhaff
- echo CHtml::activeFileField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::closeTag
-snippet yhct
- echo CHtml::closeTag('${0:tag}');
-
-#Yii CHtml::activeInputField
-snippet yhaif
- echo CHtml::activeInputField('${1:type}', ${2:model}, '${3:attribute}',array('${4:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::scriptFile
-snippet yhjsf
- echo CHtml::scriptFile('${0:url}');
-
-#Yii CHtml::radioButtonList
-snippet yhrbl
- echo CHtml::radioButtonList('${1:name}', ${2:select}, array(${3}),array('${4:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::cssFile
-snippet yhcssf
- echo CHtml::cssFile('${1:url}','${0:media}');
-
-#Yii CHtml::error
-snippet yherr
- echo CHtml::error(${1:model}, '${0:attribute}');
-
-#Yii CHtml::passwordField
-snippet yhpf
- echo CHtml::passwordField('${1:name}', '${2:value}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::hiddenField
-snippet yhhf
- echo CHtml::hiddenField('${1:name}', '${2:value}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::cdata
-snippet yhc
- echo CHtml::cdata(${0:text});
-
-#Yii CHtml::link
-snippet yhlink
- echo CHtml::link('${1:text}',array(${2}),array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::errorSummary
-snippet yherrs
- echo CHtml::errorSummary(${1:model},'${2:headerHtml}','${0:footerHtml}');
-
-#Yii CHtml::tag
-snippet yht
- echo CHtml::tag('${1:tag}',array('${2:optionName}'=>${3:optionValue}),${4:false},${0:true});
-
-#Yii CHtml::ajaxLink
-snippet yhajl
- echo CHtml::ajaxLink('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::label
-snippet yhlabel
- echo CHtml::label('${1:label}', '${2:for}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::activeName
-snippet yhan
- echo CHtml::activeName(${1:model}, '${0:attribute}');
-
-#Yii CHtml::statefulForm
-snippet yhsform
- echo CHtml::statefulForm(array('${1}'), '${2:post}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::fileField
-snippet yhff
- echo CHtml::fileField('${1:name}', '${2:value}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::activeTextField
-snippet yhatf
- echo CHtml::activeTextField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::css
-snippet yhcss
- echo CHtml::css('${1:test}','${0:media}');
-
-#Yii CHtml::imageButton
-snippet yhimgb
- echo CHtml::imageButton('${1:src}',array('${2:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::ajaxSubmitButton
-snippet yhajsb
- echo CHtml::ajaxSubmitButton('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::button
-snippet yhb
- echo CHtml::button('${1:label}',array('${2:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::listOptions
-snippet yhlo
- echo CHtml::listOptions('${1:selection}', array(${2}), array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::activeCheckBoxList
-snippet yhacbl
- echo CHtml::activeCheckBoxList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::openTag
-snippet yhot
- echo CHtml::openTag('${1:tag}', array('${2:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::checkBox
-snippet yhcb
- echo CHtml::checkBox('${1:name}', ${2:false}, array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::textArea
-snippet yhta
- echo CHtml::textArea('${1:name}', '${2:value}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::linkTag
-snippet yhlinkt
- echo CHtml::linkTag('${1:relation}', '${2:type}', '${3:href}', '${4:media}',array('${5:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::resetButton
-snippet yhrsb
- echo CHtml::resetButton('${1:label}',array('${2:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::activeRadioButtonList
-snippet yharbl
- echo CHtml::activeRadioButtonList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::checkBoxList
-snippet yhcbl
- echo CHtml::checkBoxList('${1:name}', ${2:select}, array(${3}),array('${4:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::form
-snippet yhform
- echo CHtml::form(array('${1}'), '${2:post}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::beginForm
-snippet yhbeform
- echo CHtml::beginForm(array('${1}'), '${2:post}',array('${3:optionName}'=>${4:optionValue}));
- ${0}
- echo CHtml::endForm();
-
-#Yii CHtml::activeDropDownList
-snippet yhaddl
- echo CHtml::activeDropDownList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::activeRadioButton
-snippet yharb
- echo CHtml::activeRadioButton(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
-
-#Yii CHtml::activeLabel
-snippet yhal
- echo CHtml::activeLabel(${1:model}, '${2:attribute}',array('${3:optionName}'=>${0:optionValue}));
-
-
diff --git a/vim/snippets/vim-snippets/snippets/yii.snippets b/vim/snippets/vim-snippets/snippets/yii.snippets
deleted file mode 100644
index 1f9fc6f..0000000
--- a/vim/snippets/vim-snippets/snippets/yii.snippets
+++ /dev/null
@@ -1,300 +0,0 @@
-#Yii session offset
-snippet yse
- Yii::app()->session['${0}'];
-
-#Yii renderDynamic
-snippet yrd
- $this->renderDynamic('${0:callback}');
-
-#Yii set cache
-snippet ycas
- Yii::app()->cache->set('${1:key}', ${2:value}, ${3:expire}, new C${4:}CacheDependency(${0}));
-
-#Yii Add cache
-snippet ycad
- Yii::app()->cache->add('${1:key}', ${2:value}, ${3:expire}, new C${4}CacheDependency(${0}));
-
-#Yii register CSS file
-snippet yregcf
- Yii::app()->clientScript->registerCssFile('${0:file}');
-
-#Yii requestType
-snippet yreqtype
- Yii::app()->request->requestType
-
-#Yii isAjaxRequest
-snippet yisajax
- Yii::app()->request->isAjaxRequest
-
-#Yii translate
-snippet yt
- Yii::t('${1:category}', '${2:message}',array(${0}));
-
-#Yii register CSS
-snippet yregc
- Yii::app()->clientScript->registerCss('${1:id}', '${0}');
-
-#Yii log
-snippet ylog
- Yii::log('${1:msg}', '${0:info}');
-
-#Yii userHostAddress
-snippet yuserip
- YYii::app()->request->userHostAddress
-
-#Yii register script file
-snippet yregsf
- Yii::app()->clientScript->registerScriptFile('${1:scriptUrl}', CClientScript::POS_${0:END});
-
-#Yii CLinkPager
-snippet ylinkpager
- $this->widget('CLinkPager', array('pages'=>$pages,'header'=>'${0}'}))
-
-#Yii CJSON::encode
-snippet yjec
- CJSON::encode(${0:text});
-
-#CActiveDataProvider
-snippet yadp
- $dataProvider = new CActiveDataProvider('${1}', array(
- 'criteria' => array(
- 'condition' => '${2}',
- 'order' => '${3}',
- 'with' => array('${4}')
- ),
- //'pagination' => false,
- 'pagination' => array(
- 'pageSize'=>${5},
- ),
- ));
- ${0}
- // $dataProvider->getData() will return a list of Post objects
-
-#Yii renderDynamic internal
-snippet yrdi
- $this->renderDynamic('${1:callback}', array('${2:key}'=>${0:value}));
-
-#Yii register script
-snippet yregs
- Yii::app()->clientScript->registerScript('${1:id}', '${2}', CClientScript::POS_${0:READY});
-
-#Yii Flush cache
-snippet ycaf
- Yii::app()->cache->flush();
-
-#Yii Yii::app()->request->cookies
-snippet yco
- Yii::app()->request->cookies['${0}']
-
-#Yii user->
-snippet yuser
- Yii::app()->user->
-
-#Yii refresh
-snippet yrf
- $this->refresh();
-
-#Yii import
-snippet yimp
- Yii::import('${0}');
-
-#Yii trace
-snippet ytrace
- Yii::trace('${0:msg}');
-
-#Yii params
-snippet ypar
- Yii::app()->params['${0}']
-
-#Yii isPostRequest
-snippet yispost
- Yii::app()->request->isPostRequest
-
-#Yii IF isAjaxRequest
-snippet yifisajax
- if(Yii::app()->request->isAjaxRequest == TRUE)
- {
- ${0}
- }
-
-#Yii Yii::app()->cache->delete
-snippet ydelcache
- Yii::app()->cache->delete('${0:key}');
-
-#Yii render view
-snippet yr
- $this->render('${1:view}',array('${2:key}'=>${0:value}));
-
-#Yii redirect
-snippet yre
- $this->redirect(array('${1:controller}/${0:action}'));
-
-#Yii Get cache
-snippet ycag
- Yii::app()->cache->get('${0:key}');
-
-#Yii render text
-snippet yrt
- $this->renderText('${0}');
-
-#Yii render partial
-snippet yrp
- $this->renderPartial('${1:view}',array('${2:key}'=>${0:value}));
-
-#----------------Yii Model-----------------------------
-#Yii Model count
-snippet ycountm
- ${1:ModelName}::model()->count(${2:condition}, array('${3:key}'=>${0:value}));
-
-#Yii Model countBySql
-snippet ycountbs
- ${1:ModelName}::model()->countBySql(${2:sql},array('${3:key}'=>${0:value}));
-
-#Yii Model updateAll
-snippet yupdatea
- ${1:ModelName}::model()->updateAll(${2:array('attributes')}, ${3:condition},array('${4:key}'=>${0:value}));
-
-#Yii Model updateByPk
-snippet yupdatebp
- ${1:ModelName}::model()->updateByPk(${2:pk}, ${3:array('attributes')}, ${4:condition},array('${5:key}'=>${0:value}));
-
-#Yii Model deleteAll
-snippet ydela
- ${1:ModelName}::model()->deleteAll(${2:condition},array('${3:key}'=>${0:value}));
-
-#Yii Model deleteByPk
-snippet ydelbp
- ${1:ModelName}::model()->deleteByPk(${2:pk}, ${3:condition}, array('${4:key}'=>${0:value}));
-
-#Yii Model find
-snippet yfind
- ${1:ModelName}::model()->find(${2:condition},array('${3:key}'=>${0:value}));
-
-#Yii Model findAll
-snippet yfinda
- ${1:ModelName}::model()->findAll(${2:condition},array('${3:key}'=>${0:value}));
-
-#Yii Model findByPk
-snippet yfindbp
- ${1:ModelName}::model()->findByPk(${2:pk}, ${3:condition}, array('${4:key}'=>${0:value}));
-
-#Yii Model findAllByPk
-snippet yfindabp
- ${1:ModelName}::model()->findAllByPk(${2:pk}, ${3:condition},array('${4:key}'=>${0:value}));
-
-#Yii Model findBySql
-snippet yfindbs
- ${1:ModelName}::model()->findBySql(${2:sql}, array('${3:key}'=>${0:value}));
-
-#Yii Model findAllByAttributes
-snippet yfindaba
- ${1:ModelName}::model()->findAllByAttributes(array('${2:attributeName}'=>${3:attributeValue}), ${4:condition}, array('${5:key}'=>${0:value}));
-
-#Yii Model exists
-snippet yexists
- ${1:ModelName}::model()->exists(${2:condition}, array('${3:key}'=>${0:value}));
-
-#Yii Create model class
-snippet ymodel
- 'path.to.FilterClass',
- 'propertyName'=>'propertyValue',
- ),
- );
- }
-
- public function actions()
- {
- // return external action classes, e.g.:
- return array(
- 'action1'=>'path.to.ActionClass',
- 'action2'=>array(
- 'class'=>'path.to.AnotherActionClass',
- 'propertyName'=>'propertyValue',
- ),
- );
- }
- */
- }
-
-#Yii Create controller action method
-snippet yact
- public function action${1:Index}(${2:params})
- {
- ${0}
- }
-
-
diff --git a/vim/snippets/vim-snippets/snippets/zsh.snippets b/vim/snippets/vim-snippets/snippets/zsh.snippets
deleted file mode 100644
index a8173c2..0000000
--- a/vim/snippets/vim-snippets/snippets/zsh.snippets
+++ /dev/null
@@ -1,66 +0,0 @@
-# #!/bin/zsh
-snippet #!
- #!/bin/zsh
-
-snippet if
- if ${1:condition}; then
- ${0:${VISUAL}}
- fi
-snippet ife
- if ${1:condition}; then
- ${2:${VISUAL}}
- else
- ${0:# statements}
- fi
-snippet eif
- elif ${1:condition}; then
- ${0:${VISUAL}}
-snippet for
- for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do
- ${0:${VISUAL}}
- done
-snippet fori
- for ${1:needle} in ${2:haystack}; do
- ${0:${VISUAL}}
- done
-snippet fore
- for ${1:item} in ${2:list}; do
- ${0:${VISUAL}}
- done
-snippet wh
- while ${1:condition}; do
- ${0:${VISUAL}}
- done
-snippet until
- until ${1:condition}; do
- ${0:${VISUAL}}
- done
-snippet repeat
- repeat ${1:integer}; do
- ${0:${VISUAL}}
- done
-snippet case
- case ${1:word} in
- ${2:pattern})
- ${0};;
- esac
-snippet select
- select ${1:answer} in ${2:choices}; do
- ${0:${VISUAL}}
- done
-snippet (
- ( ${0:#statements} )
-snippet {
- { ${0:#statements} }
-snippet [
- [[ ${0:test} ]]
-snippet always
- { ${1:try} } always { ${0:always} }
-snippet fun
- ${1:function_name}() {
- ${0:# function_body}
- }
-snippet ffun
- function ${1:function_name}() {
- ${0:# function_body}
- }
diff --git a/vim/snippets/vim-snippets/tests.sh b/vim/snippets/vim-snippets/tests.sh
deleted file mode 100755
index 07f0ff3..0000000
--- a/vim/snippets/vim-snippets/tests.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/env bash
-
-SPACED=$(grep -REn '^ .+' --include '*.snippets' snippets)
-
-if [[ $? -ne 1 ]]; then
- echo These snippet lines are indented with spaces:
- echo
- echo "$SPACED"
- echo
- echo Tests failed!
- exit 1
-fi
-
-echo Tests passed!
-exit 0