diff --git a/snippets/_.snippets b/snippets/_.snippets index 6204aee..6a3d8b2 100644 --- a/snippets/_.snippets +++ b/snippets/_.snippets @@ -2,7 +2,7 @@ # (c) holds no legal value ;) snippet c) - Copyright `&enc[:2] == "utf" ? "©" : "(c)"` `strftime("%Y")` ${1:`g:snips_author`}. All Rights Reserved.${2} + Copyright `&enc[:2] == "utf" ? "©" : "(c)"` `strftime("%Y")` ${1:`g:snips_author`}. All Rights Reserved. snippet date `strftime("%Y-%m-%d")` snippet ddate @@ -30,7 +30,7 @@ snippet GPL2 You should have received a copy of the GNU General Public License along with this program; if not, see . - ${3} + ${0} snippet LGPL2 ${1:One line to give the program's name and a brief description.} Copyright (C) `strftime("%Y")` ${2:copyright holder} @@ -48,7 +48,7 @@ snippet LGPL2 You should have received a copy of the GNU Lesser General Public License along with this library; if not, see . - ${3} + ${0} snippet GPL3 ${1:one line to give the program's name and a brief description.} Copyright (C) `strftime("%Y")` ${2:copyright holder} @@ -66,7 +66,7 @@ snippet GPL3 You should have received a copy of the GNU General Public License along with this program. If not, see . - ${3} + ${0} snippet LGPL3 ${1:One line to give the program's name and a brief description.} Copyright (C) `strftime("%Y")` ${2:copyright holder} @@ -84,7 +84,7 @@ snippet LGPL3 You should have received a copy of the GNU Lesser General Public License along with this library; if not, see . - ${3} + ${0} snippet BSD2 ${1:one line to give the program's name and a brief description} Copyright (C) `strftime("%Y")` ${2:copyright holder} @@ -114,7 +114,7 @@ snippet BSD2 are those of the authors and should not be interpreted as representing official policies, either expressedor implied, of $2. - ${4} + ${0} snippet BSD3 ${1:one line to give the program's name and a brief description} Copyright (C) `strftime("%Y")` ${2:copyright holder} @@ -142,7 +142,7 @@ snippet BSD3 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ${4} + ${0} snippet BSD4 ${1:one line to give the program's name and a brief description} Copyright (C) `strftime("%Y")` ${2:copyright holder} @@ -173,7 +173,7 @@ snippet BSD4 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ${4} + ${0} snippet MIT ${1:one line to give the program's name and a brief description} Copyright (C) `strftime("%Y")` ${2:copyright holder} @@ -196,7 +196,7 @@ snippet MIT TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ${3} + ${0} snippet APACHE ${1:one line to give the program's name and a brief description} Copyright `strftime("%Y")` ${2:copyright holder} @@ -213,7 +213,7 @@ snippet APACHE See the License for the specific language governing permissions and limitations under the License. - ${3} + ${0} snippet BEERWARE ${2:one line to give the program's name and a brief description} Copyright `strftime("%Y")` ${3:copyright holder} @@ -223,13 +223,13 @@ snippet BEERWARE can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer or coffee in return - ${4} + ${0} snippet WTFPL DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 - Copyright `strftime("%Y")` ${1:copyright holder} + Copyright `strftime("%Y")` ${0:copyright holder} Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long diff --git a/snippets/actionscript.snippets b/snippets/actionscript.snippets index 1aeca1c..6b1d8eb 100644 --- a/snippets/actionscript.snippets +++ b/snippets/actionscript.snippets @@ -20,7 +20,7 @@ snippet main } snippet class - ${1:public|internal} class ${2:name} ${3:extends } { + ${1:public|internal} class ${2:name} ${0:extends } { public function $2 ( ) { ("start"); } @@ -28,7 +28,7 @@ snippet class snippet all package name { - ${1:public|internal|final} class ${2:name} ${3:extends } { + ${1:public|internal|final} class ${2:name} ${0:extends } { private|public| static const FOO = "abc"; private|public| static var BAR = "abc"; @@ -55,48 +55,48 @@ snippet all snippet switch switch(${1}){ case ${2}: - ${3} + ${0} break; default: } snippet case case ${1}: - ${2} + ${0} break; snippet package package ${1:package}{ - ${2} + ${0} } snippet wh while ${1:cond}{ - ${2} + ${0} } snippet do do { - ${2} + ${0} } while (${1:cond}) snippet wh while ${1:cond}{ - ${2} + ${0} } snippet for enumerate names for (${1:var} in ${2:object}){ - ${3} + ${0} } snippet for enumerate values for each (${1:var} in ${2:object}){ - ${3} + ${0} } snippet get_set function get ${1:name} { return ${2} } function set $1 (newValue) { - ${3} + ${0} } snippet interface interface name { - function method(${1}):${2:returntype}; + function method(${1}):${0:returntype}; } snippet try try { @@ -104,34 +104,34 @@ snippet try } catch (error:ErrorType) { ${2} } finally { - ${3} + ${0} } # For Loop (same as c.snippet) snippet for for (..) {..} for (${2:i} = 0; $2 < ${1:count}; $2${3:++}) { - ${4} + ${0} } # Custom For Loop snippet forr for (${1:i} = ${2:0}; ${3:$1 < 10}; $1${4:++}) { - ${5} + ${0} } # If Condition snippet if if (${1:/* condition */}) { - ${2} + ${0} } snippet el else { - ${1} + ${0} } # Ternary conditional snippet t - ${1:/* condition */} ? ${2:a} : ${3:b} + ${1:/* condition */} ? ${2:a} : ${0:b} snippet fun function ${1:function_name}(${2})${3} { - ${4} + ${0} } # FlxSprite (usefull when using the flixel library) snippet FlxSprite @@ -150,7 +150,7 @@ snippet FlxSprite override public function update():void { super.update(); - ${5} + ${0} } } } diff --git a/snippets/apache.snippets b/snippets/apache.snippets index 6f0c887..db3256e 100644 --- a/snippets/apache.snippets +++ b/snippets/apache.snippets @@ -2,34 +2,34 @@ # snippet dir - DirectoryIndex ${2:index.html} + DirectoryIndex ${0:index.html} Order Deny,Allow Deny from All # snippet filesmatch - ${2} + ${0} # snippet ifmodule - ${2} + ${0} # snippet limitexcept - ${2} + ${0} # snippet proxy - ${2} + ${0} # snippet virtualhost ServerAdmin ${3:webmaster@example.com} DocumentRoot ${4:/www/example.com} - ServerName ${5:www.example.com} + ServerName ${0:www.example.com} diff --git a/snippets/autoit.snippets b/snippets/autoit.snippets index b214fd2..f973fbc 100644 --- a/snippets/autoit.snippets +++ b/snippets/autoit.snippets @@ -1,19 +1,19 @@ snippet if If ${1:condition} Then - ${2:; True code} + ${0:; True code} EndIf snippet el Else - ${1} + ${0} snippet eif ElseIf ${1:condition} Then - ${2:; True code} + ${0:; True code} # If/Else block snippet ife If ${1:condition} Then ${2:; True code} Else - ${3:; Else code} + ${0:; Else code} EndIf # If/ElseIf/Else block - because there is eif this is not really neccessary snippet ifelif @@ -22,45 +22,45 @@ snippet ifelif ElseIf ${3:condition 2} Then ${4:; True code} Else - ${5:; Else code} + ${0:; Else code} EndIf # Switch block snippet switch Switch (${1:condition}) - Case {$2:case1}: - {$3:; Case 1 code} + Case ${2:case1}: + ${3:; Case 1 code} Case Else: - {$4:; Else code} + ${0:; Else code} EndSwitch # Select block snippet select Select (${1:condition}) - Case {$2:case1}: - {$3:; Case 1 code} + Case ${2:case1}: + ${3:; Case 1 code} Case Else: - {$4:; Else code} + ${0:; Else code} EndSelect # While loop snippet wh While (${1:condition}) - ${2:; code...} + ${0:; code...} WEnd # For loop snippet for For ${1:n} = ${3:1} to ${2:count} - ${4:; code...} + ${0:; code...} Next # New Function snippet func Func ${1:fname}(${2:`indent('.') ? 'self' : ''`}): - ${4:Return} + ${0:Return} EndFunc # Message box snippet msg - MsgBox(${3:MsgType}, ${1:"Title"}, ${2:"Message Text"}) + MsgBox(${0:MsgType}, ${1:"Title"}, ${2:"Message Text"}) # Debug Message snippet debug - MsgBox(0, "Debug", ${1:"Debug Message"}) + MsgBox(0, "Debug", ${0:"Debug Message"}) # Show Variable Debug Message snippet showvar - MsgBox(0, "${1:VarName}", $1) + MsgBox(0, "${0:VarName}", $1) diff --git a/snippets/c.snippets b/snippets/c.snippets index 7578024..96e19a0 100644 --- a/snippets/c.snippets +++ b/snippets/c.snippets @@ -3,29 +3,29 @@ snippet main int main(int argc, const char *argv[]) { - ${1} + ${0} return 0; } # main(void) snippet mainn int main(void) { - ${1} + ${0} return 0; } ## ## Preprocessor # #include <...> snippet inc - #include <${1:stdio}.h>${2} + #include <${1:stdio}.h> # #include "..." snippet Inc - #include "${1:`vim_snippets#Filename("$1.h")`}"${2} + #include "${1:`vim_snippets#Filename("$1.h")`}" # ifndef...define...endif snippet ndef #ifndef $1 #define ${1:SYMBOL} ${2:value} - #endif${3} + #endif # define snippet def #define @@ -33,11 +33,11 @@ snippet def snippet ifdef #ifdef ${1:FOO} ${2:#define } - #endif${3} + #endif # if snippet #if #if ${1:FOO} - ${2} + ${0} #endif # header include guard snippet once @@ -45,7 +45,7 @@ snippet once #define $1 - ${2} + ${0} #endif /* end of include guard: $1 */ ## @@ -54,20 +54,20 @@ snippet once snippet if if (${1:/* condition */}) { ${2} - }${3} + } # else snippet el else { ${1} - }${2} + } # else if snippet elif else if (${1:/* condition */}) { ${2} - }${3} + } # ifi snippet ifi - if (${1:/* condition */}) ${2};${3} + if (${1:/* condition */}) ${2}; # ternary snippet t ${1:/* condition */} ? ${2:a} : ${3:b} @@ -79,41 +79,41 @@ snippet switch ${4:break;}${5} default: ${6} - }${7} + } # switch without default snippet switchndef switch (${1:/* variable */}) { case ${2:/* variable case */}: ${3} ${4:break;}${5} - }${6} + } # case snippet case case ${1:/* variable case */}: ${2} - ${3:break;}${4} + ${3:break;} ## ## Loops # for snippet for for (${2:i} = 0; $2 < ${1:count}; $2${3:++}) { ${4} - }${5} + } # for (custom) snippet forr for (${1:i} = ${2:0}; ${3:$1 < 10}; $1${4:++}) { ${5} - }${6} + } # while snippet wh while (${1:/* condition */}) { ${2} - }${3} + } # do... while snippet do do { ${2} - } while (${1:/* condition */});${3} + } while (${1:/* condition */}); ## ## Functions # function definition @@ -121,38 +121,38 @@ snippet fun ${1:void} ${2:function_name}(${3}) { ${4} - }${5} + } # function declaration snippet fund - ${1:void} ${2:function_name}(${3});${4} + ${1:void} ${2:function_name}(${3}); ## ## Types # typedef snippet td - typedef ${1:int} ${2:MyCustomType};${3} + typedef ${1:int} ${2:MyCustomType}; # struct snippet st struct ${1:`vim_snippets#Filename('$1_t', 'name')`} { ${2:/* data */} - }${3: /* optional variable list */};${4} + }${3: /* optional variable list */}; # typedef struct snippet tds typedef struct ${2:_$1 }{ ${3:/* data */} - } ${1:`vim_snippets#Filename('$1_t', 'name')`};${4} + } ${1:`vim_snippets#Filename('$1_t', 'name')`}; # typedef enum snippet tde typedef enum { ${1:/* data */} - } ${2:foo};${3} + } ${2:foo}; ## ## Input/Output # printf snippet pr - printf("${1:%s}\n"${2});${3} + printf("${1:%s}\n"${2}); # fprintf (again, this isn't as nice as TextMate's version, but it works) snippet fpr - fprintf(${1:stderr}, "${2:%s}\n"${3});${4} + fprintf(${1:stderr}, "${2:%s}\n"${3}); # getopt snippet getopt int choice; @@ -207,14 +207,14 @@ snippet getopt { while ( optind < argc ) { - ${4} + ${0} } } ## ## Miscellaneous # This is kind of convenient snippet . - [${1}]${2} + [${1}] # GPL snippet gpl /* @@ -234,4 +234,4 @@ snippet gpl * Copyright (C) ${1:Author}, `strftime("%Y")` */ - ${2} + ${0} diff --git a/snippets/chef.snippets b/snippets/chef.snippets index d44f535..429146a 100644 --- a/snippets/chef.snippets +++ b/snippets/chef.snippets @@ -17,7 +17,7 @@ snippet cookbook_file ${14:#}${15: action :create} # Create this file (Default) ${16:#}${17: action :create_if_missing} # Create only if it doesn't exist yet - ${18:#}${19: action :delete} # Delete this file + ${18:#}${0: action :delete} # Delete this file end snippet execute @@ -34,7 +34,7 @@ snippet execute ${18:#}umask ${19:nil} # Umask for files created by the command ${20:#}${21:action :run} # Run this command (Default) - ${22:#}${23:action :nothing} # Do not run this command + ${22:#}${0:action :nothing} # Do not run this command end snippet link @@ -46,7 +46,7 @@ snippet link ${8:#}group ${9} # The group of the symlink ${10:#}${11:action :create} # Create a link (Default) - ${12:#}${13:action :delete} # Delete a link + ${12:#}${0:action :delete} # Delete a link end snippet package @@ -61,7 +61,7 @@ snippet package ${12:#}${13:action :install} # Install a package - if version is provided, install that specific version (Default) ${14:#}${15:action :upgrade} # Upgrade a package - if version is provided, upgrade to that specific version ${16:#}${17:action :remove} # Remove a package - ${18:#}${19:action :purge} # Purge a package (this usually entails removing configuration files as well as the package itself) + ${18:#}${0:action :purge} # Purge a package (this usually entails removing configuration files as well as the package itself) end snippet service @@ -83,7 +83,7 @@ snippet service ${26:#}${27:action :start} # Start this service ${28:#}${29:action :stop} # Stop this service ${30:#}${31:action :restart} # Restart this service - ${32:#}${33:action :reload} # Reload the configuration for this service + ${32:#}${0:action :reload} # Reload the configuration for this service end snippet file @@ -97,7 +97,7 @@ snippet file ${12:#}${13:action :create} # Create this file (Default) ${14:#}${15:action :delete} # Delete this file - ${16:#}${17:action :touch} # Touch this file (update the mtime/atime) + ${16:#}${0:action :touch} # Touch this file (update the mtime/atime) end snippet directory @@ -109,7 +109,7 @@ snippet directory ${10:#}recursive ${11:false} # When deleting the directory, delete it recursively. When creating the directory, create recursively (ie, mkdir -p) ${12:#}${13:action :create} # Create this directory (Default) - ${14:#}${15:action :delete} # Delete this directory + ${14:#}${0:action :delete} # Delete this directory end snippet template @@ -127,7 +127,7 @@ snippet template ${20:#}${21:action :create} # Create the file (Default) ${22:#}${23:action :delete} # Delete this file - ${24:#}${25:action :touch} # Touch this file (update the mtime/atime) + ${24:#}${0:action :touch} # Touch this file (update the mtime/atime) end snippet svn @@ -144,7 +144,7 @@ snippet svn ${18:#}${19:action :sync} # Update the source to the specified revision, or get a new checkout (Default) ${20:#}${21:action :checkout} # Checkout the source. Does nothing if a checkout is available - ${22:#}${23:action :export} # Export the source, excluding or removing any version control artifacts + ${22:#}${0:action :export} # Export the source, excluding or removing any version control artifacts end snippet git @@ -162,7 +162,7 @@ snippet git ${20:#}${21:action :sync} # Update the source to the specified revision, or get a new clone (Default) ${22:#}${23:action :checkout} # Clone the source. Does nothing if a checkout is available - ${24:#}${25:action :export} # Export the source, excluding or removing any version control artifacts + ${24:#}${0:action :export} # Export the source, excluding or removing any version control artifacts end snippet deploy @@ -200,5 +200,5 @@ snippet deploy ${60:#}${61::deploy} # Deploy the application (Default) ${62:#}${63::force_deploy} # For the revision deploy strategy, this removes any existing release of the same code version and re-deploys in its place - ${64:#}${65::rollback} # Rollback the application to the previous release + ${64:#}${0::rollback} # Rollback the application to the previous release end diff --git a/snippets/clojure.snippets b/snippets/clojure.snippets index 59867b7..6fd653f 100644 --- a/snippets/clojure.snippets +++ b/snippets/clojure.snippets @@ -1,90 +1,90 @@ snippet comm (comment - ${1} + ${0} ) snippet condp (condp ${1:pred} ${2:expr} - ${3}) + ${0}) snippet def - (def ${1}) + (def ${0}) snippet defm (defmethod ${1:multifn} "${2:doc-string}" ${3:dispatch-val} [${4:args}] - ${5}) + ${0}) snippet defmm - (defmulti ${1:name} "${2:doc-string}" ${3:dispatch-fn}) + (defmulti ${1:name} "${2:doc-string}" ${0:dispatch-fn}) snippet defma - (defmacro ${1:name} "${2:doc-string}" ${3:dispatch-fn}) + (defmacro ${1:name} "${2:doc-string}" ${0:dispatch-fn}) snippet defn (defn ${1:name} "${2:doc-string}" [${3:arg-list}] - ${4}) + ${0}) snippet defp (defprotocol ${1:name} - ${2}) + ${0}) snippet defr (defrecord ${1:name} [${2:fields}] ${3:protocol} - ${4}) + ${0}) snippet deft (deftest ${1:name} (is (= ${2:assertion}))) - ${3}) + ${0}) snippet is - (is (= ${1} ${2})) + (is (= ${1} ${0})) snippet defty (deftype ${1:Name} [${2:fields}] ${3:Protocol} - ${4}) + ${0}) snippet doseq (doseq [${1:elem} ${2:coll}] - ${3}) + ${0}) snippet fn - (fn [${1:arg-list}] ${2}) + (fn [${1:arg-list}] ${0}) snippet if (if ${1:test-expr} ${2:then-expr} - ${3:else-expr}) + ${0:else-expr}) snippet if-let (if-let [${1:result} ${2:test-expr}] (${3:then-expr} $1) - (${4:else-expr})) + (${0:else-expr})) snippet imp (:import [${1:package}]) - & {:keys [${1:keys}] :or {${2:defaults}}} + & {:keys [${1:keys}] :or {${0:defaults}}} snippet let (let [${1:name} ${2:expr}] - ${3}) + ${0}) snippet letfn (letfn [(${1:name) [${2:args}] - ${3})]) + ${0})]) snippet map - (map ${1:func} ${2:coll}) + (map ${1:func} ${0:coll}) snippet mapl - (map #(${1:lambda}) ${2:coll}) + (map #(${1:lambda}) ${0:coll}) snippet met (${1:name} [${2:this} ${3:args}] - ${4}) + ${0}) snippet ns (ns ${1:name} - ${2}) + ${0}) snippet dotimes (dotimes [_ 10] (time (dotimes [_ ${1:times}] - ${2}))) + ${0}))) snippet pmethod - (${1:name} [${2:this} ${3:args}]) + (${1:name} [${2:this} ${0:args}]) snippet refer - (:refer-clojure :exclude [${1}]) + (:refer-clojure :exclude [${0}]) snippet require - (:require [${1:namespace} :as [${2}]]) + (:require [${1:namespace} :as [${0}]]) snippet use - (:use [${1:namespace} :only [${2}]]) + (:use [${1:namespace} :only [${0}]]) snippet print - (println ${1}) + (println ${0}) snippet reduce (reduce ${1:(fn [p n] ${3})} ${2}) snippet when - (when ${1:test} ${2:body}) + (when ${1:test} ${0:body}) snippet when-let (when-let [${1:result} ${2:test}] - ${3:body}) + ${0:body}) diff --git a/snippets/cmake.snippets b/snippets/cmake.snippets index 0c3a215..ef2256a 100644 --- a/snippets/cmake.snippets +++ b/snippets/cmake.snippets @@ -8,7 +8,7 @@ snippet cmake ${$2_INCLUDE_DIR} ) - ADD_SUBDIRECTORY(${3:src}) + ADD_SUBDIRECTORY(${0:src}) ADD_EXECUTABLE($1) @@ -18,41 +18,41 @@ snippet cmake snippet include INCLUDE_DIRECTORIES( - ${${1:INCLUDE_DIR}} + ${${0:INCLUDE_DIR}} ) snippet find - FIND_PACKAGE(${1:LIBRARY}) + FIND_PACKAGE(${0:LIBRARY}) snippet glob - FILE(GLOB ${1:SRCS} *.${2:cpp}) + FILE(GLOB ${1:SRCS} *.${0:cpp}) snippet subdir - ADD_SUBDIRECTORY(${1:src}) + ADD_SUBDIRECTORY(${0:src}) snippet lib ADD_LIBRARY(${1:lib} ${2:STATIC} - ${${3:SRCS}} + ${${0:SRCS}} ) snippet link TARGET_LINK_LIBRARIES(${1:bin} - ${2:somelib} + ${0:somelib} ) snippet bin ADD_EXECUTABLE(${1:bin}) snippet set - SET(${1:var} ${2:val}) + SET(${1:var} ${0:val}) snippet dep ADD_DEPENDENCIES(${1:target} - ${2:dep} + ${0:dep} ) snippet props SET_TARGET_PROPERTIES(${1:target} ${2:PROPERTIES} ${3:COMPILE_FLAGS} - ${4:"-O3 -Wall -pedantic"} + ${0:"-O3 -Wall -pedantic"} ) diff --git a/snippets/coffee.snippets b/snippets/coffee.snippets index 8e2f20e..aca6e81 100644 --- a/snippets/coffee.snippets +++ b/snippets/coffee.snippets @@ -2,94 +2,94 @@ snippet forindo for ${1:name} in ${2:array} do ($1) -> - ${3:// body} + ${0:// body} # Array comprehension snippet fora for ${1:name} in ${2:array} - ${3:# body...} + ${0:# body...} # Object comprehension snippet foro for ${1:key}, ${2:value} of ${3:object} - ${4:# body...} + ${0:# body...} # Range comprehension (inclusive) snippet forr for ${1:name} in [${2:start}..${3:finish}] - ${4:# body...} + ${0:# body...} snippet forrb for ${1:name} in [${2:start}..${3:finish}] by ${4:step} - ${5:# body...} + ${0:# body...} # Range comprehension (exclusive) snippet forrex for ${1:name} in [${2:start}...${3:finish}] - ${4:# body...} + ${0:# body...} snippet forrexb for ${1:name} in [${2:start}...${3:finish}] by ${4:step} - ${5:# body...} + ${0:# body...} # Function snippet fun (${1:args}) -> - ${2:# body...} + ${0:# body...} # Function (bound) snippet bfun (${1:args}) => - ${2:# body...} + ${0:# body...} # Class snippet cla class .. class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} - ${2} + ${0} snippet cla class .. constructor: .. class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} constructor: (${2:args}) -> ${3} - ${4} + ${0} snippet cla class .. extends .. class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} extends ${2:ParentClass} - ${3} + ${0} snippet cla class .. extends .. constructor: .. class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} extends ${2:ParentClass} constructor: (${3:args}) -> ${4} - ${5} + ${0} # If snippet if if ${1:condition} - ${2:# body...} + ${0:# body...} # If __ Else snippet ife if ${1:condition} ${2:# body...} else - ${3:# body...} + ${0:# body...} # Else if snippet eif else if ${1:condition} - ${2:# body...} + ${0:# body...} # Ternary If snippet ifte - if ${1:condition} then ${2:value} else ${3:other} + if ${1:condition} then ${2:value} else ${0:other} # Unless snippet unl - ${1:action} unless ${2:condition} + ${1:action} unless ${0:condition} # Switch snippet swi switch ${1:object} when ${2:value} - ${3:# body...} + ${0:# body...} # Log snippet log - console.log ${1} + console.log ${0} # Try __ Catch snippet try try ${1} catch ${2:error} - ${3} + ${0} # Require snippet req - ${2:$1} = require '${1:sys}'${3} + ${2:$1} = require '${1:sys}' # Export snippet exp - ${1:root} = exports ? this + ${0:root} = exports ? this diff --git a/snippets/cpp.snippets b/snippets/cpp.snippets index 1fa9ec8..cdccf1e 100644 --- a/snippets/cpp.snippets +++ b/snippets/cpp.snippets @@ -1,52 +1,52 @@ ## STL Collections # std::array snippet array - std::array<${1:T}, ${2:N}> ${3};${4} + std::array<${1:T}, ${2:N}> ${3}; # std::vector snippet vector - std::vector<${1:T}> ${2};${3} + std::vector<${1:T}> ${2}; # std::deque snippet deque - std::deque<${1:T}> ${2};${3} + std::deque<${1:T}> ${2}; # std::forward_list snippet flist - std::forward_list<${1:T}> ${2};${3} + std::forward_list<${1:T}> ${2}; # std::list snippet list - std::list<${1:T}> ${2};${3} + std::list<${1:T}> ${2}; # std::set snippet set - std::set<${1:T}> ${2};${3} + std::set<${1:T}> ${2}; # std::map snippet map - std::map<${1:Key}, ${2:T}> ${3};${4} + std::map<${1:Key}, ${2:T}> ${3}; # std::multiset snippet mset - std::multiset<${1:T}> ${2};${3} + std::multiset<${1:T}> ${2}; # std::multimap snippet mmap - std::multimap<${1:Key}, ${2:T}> ${3};${4} + std::multimap<${1:Key}, ${2:T}> ${3}; # std::unordered_set snippet uset - std::unordered_set<${1:T}> ${2};${3} + std::unordered_set<${1:T}> ${2}; # std::unordered_map snippet umap - std::unordered_map<${1:Key}, ${2:T}> ${3};${4} + std::unordered_map<${1:Key}, ${2:T}> ${3}; # std::unordered_multiset snippet umset - std::unordered_multiset<${1:T}> ${2};${3} + std::unordered_multiset<${1:T}> ${2}; # std::unordered_multimap snippet ummap - std::unordered_multimap<${1:Key}, ${2:T}> ${3};${4} + std::unordered_multimap<${1:Key}, ${2:T}> ${3}; # std::stack snippet stack - std::stack<${1:T}> ${2};${3} + std::stack<${1:T}> ${2}; # std::queue snippet queue - std::queue<${1:T}> ${2};${3} + std::queue<${1:T}> ${2}; # std::priority_queue snippet pqueue - std::priority_queue<${1:T}> ${2};${3} + std::priority_queue<${1:T}> ${2}; ## ## Access Modifiers # private @@ -75,57 +75,57 @@ snippet cl ~$1(); private: - ${3:/* data */} + ${0:/* data */} }; # member function implementation snippet mfun ${4:void} ${1:`vim_snippets#Filename('$1', 'ClassName')`}::${2:memberFunction}(${3}) { - ${5} + ${0} } # namespace snippet ns namespace ${1:`vim_snippets#Filename('', 'my')`} { - ${2} + ${0} } /* namespace $1 */ ## ## Input/Output # std::cout snippet cout - std::cout << ${1} << std::endl;${2} + std::cout << ${1} << std::endl; # std::cin snippet cin - std::cin >> ${1};${2} + std::cin >> ${1}; ## ## Iteration # for i snippet fori for (int ${2:i} = 0; $2 < ${1:count}; $2${3:++}) { ${4} - }${5} + } # foreach snippet fore for (${1:auto} ${2:i} : ${3:container}) { ${4} - }${5} + } # iterator snippet iter for (${1:std::vector}<${2:type}>::${3:const_iterator} ${4:i} = ${5:container}.begin(); $4 != $5.end(); ++$4) { ${6} - }${7} + } # auto iterator snippet itera for (auto ${1:i} = ${2:container}.begin(); $1 != $2.end(); ++$1) { ${3:std::cout << *$1 << std::endl;} - }${4} + } ## ## Lambdas # lamda (one line) snippet ld - [${1}](${2}){${3}}${4} + [${1}](${2}){${3}} # lambda (multi-line) snippet lld [${1}](${2}){ ${3} - }${4} + } diff --git a/snippets/cs.snippets b/snippets/cs.snippets index 9a915f0..e537bce 100644 --- a/snippets/cs.snippets +++ b/snippets/cs.snippets @@ -59,203 +59,203 @@ # entry point snippet sim public static int Main(string[] args) { - ${1} + ${0} return 0; } snippet simc public class Application { public static int Main(string[] args) { - ${1} + ${0} return 0; } } # if condition snippet if if (${1}) { - ${2} + ${0} } snippet el else { - ${1} + ${0} } snippet ifs if (${1}) - ${2} + ${0} # ternary conditional snippet t - ${1} ? ${2} : ${3} + ${1} ? ${2} : ${0} snippet ? - ${1} ? ${2} : ${3} + ${1} ? ${2} : ${0} # do while loop snippet do do { - ${2} + ${0} } while (${1}); # while loop snippet wh while (${1}) { - ${2} + ${0} } # for loop snippet for for (int ${1:i} = 0; $1 < ${2:count}; $1${3:++}) { - ${4} + ${0} } # foreach snippet fore foreach (var ${1:entry} in ${2}) { - ${3} + ${0} } snippet foreach foreach (var ${1:entry} in ${2}) { - ${3} + ${0} } snippet each foreach (var ${1:entry} in ${2}) { - ${3} + ${0} } # interfaces snippet interface public interface ${1:`vim_snippets#Filename()`} { - ${2} + ${0} } snippet if+ public interface ${1:`vim_snippets#Filename()`} { - ${2} + ${0} } # class bodies snippet class public class ${1:`vim_snippets#Filename()`} { - ${2} + ${0} } snippet cls ${2:public} class ${1:`vim_snippets#Filename()`} { - ${3} + ${0} } snippet cls+ public class ${1:`vim_snippets#Filename()`} { - ${2} + ${0} } snippet cls+^ public static class ${1:`vim_snippets#Filename()`} { - ${2} + ${0} } snippet cls& internal class ${1:`vim_snippets#Filename()`} { - ${2} + ${0} } snippet cls&^ internal static class ${1:`vim_snippets#Filename()`} { - ${2} + ${0} } snippet cls| protected class ${1:`vim_snippets#Filename()`} { - ${2} + ${0} } snippet cls|% protected abstract class ${1:`vim_snippets#Filename()`} { - ${2} + ${0} } # constructor snippet ctor public ${1:`vim_snippets#Filename()`}() { - ${2} + ${0} } # properties - auto properties by default. # default type is int with layout get / set. snippet prop - ${1:public} ${2:int} ${3:} { get; set; }${4} + ${1:public} ${2:int} ${3:} { get; set; } snippet p - ${1:public} ${2:int} ${3:} { get; set; }${4} + ${1:public} ${2:int} ${3:} { get; set; } snippet p+ - public ${1:int} ${2:} { get; set; }${3} + public ${1:int} ${2:} { get; set; } snippet p+& - public ${1:int} ${2:} { get; internal set; }${3} + public ${1:int} ${2:} { get; internal set; } snippet p+| - public ${1:int} ${2:} { get; protected set; }${3} + public ${1:int} ${2:} { get; protected set; } snippet p+- - public ${1:int} ${2:} { get; private set; }${3} + public ${1:int} ${2:} { get; private set; } snippet p& - internal ${1:int} ${2:} { get; set; }${3} + internal ${1:int} ${2:} { get; set; } snippet p&| - internal ${1:int} ${2:} { get; protected set; }${3} + internal ${1:int} ${2:} { get; protected set; } snippet p&- - internal ${1:int} ${2:} { get; private set; }${3} + internal ${1:int} ${2:} { get; private set; } snippet p| - protected ${1:int} ${2:} { get; set; }${3} + protected ${1:int} ${2:} { get; set; } snippet p|- - protected ${1:int} ${2:} { get; private set; }${3} + protected ${1:int} ${2:} { get; private set; } snippet p- - private ${1:int} ${2:} { get; set; }${3} + private ${1:int} ${2:} { get; set; } # property - bool snippet pi - ${1:public} int ${2:} { get; set; }${3} + ${1:public} int ${2:} { get; set; } snippet pi+ - public int ${1} { get; set; }${2} + public int ${1} { get; set; } snippet pi+& - public int ${1} { get; internal set; }${2} + public int ${1} { get; internal set; } snippet pi+| - public int ${1} { get; protected set; }${2} + public int ${1} { get; protected set; } snippet pi+- - public int ${1} { get; private set; }${2} + public int ${1} { get; private set; } snippet pi& - internal int ${1} { get; set; }${2} + internal int ${1} { get; set; } snippet pi&| - internal int ${1} { get; protected set; }${2} + internal int ${1} { get; protected set; } snippet pi&- - internal int ${1} { get; private set; }${2} + internal int ${1} { get; private set; } snippet pi| - protected int ${1} { get; set; }${2} + protected int ${1} { get; set; } snippet pi|- - protected int ${1} { get; private set; }${2} + protected int ${1} { get; private set; } snippet pi- - private int ${1} { get; set; }${2} + private int ${1} { get; set; } # property - bool snippet pb - ${1:public} bool ${2:} { get; set; }${3} + ${1:public} bool ${2:} { get; set; } snippet pb+ - public bool ${1} { get; set; }${2} + public bool ${1} { get; set; } snippet pb+& - public bool ${1} { get; internal set; }${2} + public bool ${1} { get; internal set; } snippet pb+| - public bool ${1} { get; protected set; }${2} + public bool ${1} { get; protected set; } snippet pb+- - public bool ${1} { get; private set; }${2} + public bool ${1} { get; private set; } snippet pb& - internal bool ${1} { get; set; }${2} + internal bool ${1} { get; set; } snippet pb&| - internal bool ${1} { get; protected set; }${2} + internal bool ${1} { get; protected set; } snippet pb&- - internal bool ${1} { get; private set; }${2} + internal bool ${1} { get; private set; } snippet pb| - protected bool ${1} { get; set; }${2} + protected bool ${1} { get; set; } snippet pb|- - protected bool ${1} { get; private set; }${2} + protected bool ${1} { get; private set; } snippet pb- - private bool ${1} { get; set; }${2} + private bool ${1} { get; set; } # property - string snippet ps - ${1:public} string ${2:} { get; set; }${3} + ${1:public} string ${2:} { get; set; } snippet ps+ - public string ${1} { get; set; }${2} + public string ${1} { get; set; } snippet ps+& - public string ${1} { get; internal set; }${2} + public string ${1} { get; internal set; } snippet ps+| - public string ${1} { get; protected set; }${2} + public string ${1} { get; protected set; } snippet ps+- - public string ${1} { get; private set; }${2} + public string ${1} { get; private set; } snippet ps& - internal string ${1} { get; set; }${2} + internal string ${1} { get; set; } snippet ps&| - internal string ${1} { get; protected set; }${2} + internal string ${1} { get; protected set; } snippet ps&- - internal string ${1} { get; private set; }${2} + internal string ${1} { get; private set; } snippet ps| - protected string ${1} { get; set; }${2} + protected string ${1} { get; set; } snippet ps|- - protected string ${1} { get; private set; }${2} + protected string ${1} { get; private set; } snippet ps- - private string ${1} { get; set; }${2} + private string ${1} { get; set; } # members - void snippet m ${1:public} ${2:void} ${3:}(${4:}) { @@ -343,32 +343,32 @@ snippet ms- # structure snippet struct public struct ${1:`vim_snippets#Filename()`} { - ${2} + ${0} } # enumeration snippet enum public enum ${1} { - ${2} + ${0} } # preprocessor directives snippet #if #if - ${1} + ${0} #endif # inline xml documentation snippet /// /// - /// ${1} + /// ${0} /// snippet

${2:$1}${3} + ${2:$1} snippet ${2}${3} + ${2} snippet ${1}{${2} + ${1}{ snippet ${2} + snippet ${1}${2} + ${1} snippet ${1}${2} + ${1} diff --git a/snippets/css.snippets b/snippets/css.snippets index 72212d2..8886643 100644 --- a/snippets/css.snippets +++ b/snippets/css.snippets @@ -1,50 +1,50 @@ snippet . ${1} { - ${2} + ${0} } snippet ! !important snippet bdi:m+ - -moz-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch}; + -moz-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch}; snippet bdi:m - -moz-border-image: ${1}; + -moz-border-image: ${0}; snippet bdrz:m - -moz-border-radius: ${1}; + -moz-border-radius: ${0}; snippet bxsh:m+ - -moz-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000}; + -moz-box-shadow: ${1:0} ${2:0} ${3:0} #${0:000}; snippet bxsh:m - -moz-box-shadow: ${1}; + -moz-box-shadow: ${0}; snippet bdi:w+ - -webkit-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch}; + -webkit-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch}; snippet bdi:w - -webkit-border-image: ${1}; + -webkit-border-image: ${0}; snippet bdrz:w - -webkit-border-radius: ${1}; + -webkit-border-radius: ${0}; snippet bxsh:w+ - -webkit-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000}; + -webkit-box-shadow: ${1:0} ${2:0} ${3:0} #${0:000}; snippet bxsh:w - -webkit-box-shadow: ${1}; + -webkit-box-shadow: ${0}; snippet @f @font-face { font-family: ${1}; - src: url(${2}); + src: url(${0}); } snippet @i - @import url(${1}); + @import url(${0}); snippet @m @media ${1:print} { - ${2} + ${0} } snippet bg+ - background: #${1:FFF} url(${2}) ${3:0} ${4:0} ${5:no-repeat}; + background: #${1:FFF} url(${2}) ${3:0} ${4:0} ${0:no-repeat}; snippet bga - background-attachment: ${1}; + background-attachment: ${0}; snippet bga:f background-attachment: fixed; snippet bga:s background-attachment: scroll; snippet bgbk - background-break: ${1}; + background-break: ${0}; snippet bgbk:bb background-break: bounding-box; snippet bgbk:c @@ -52,7 +52,7 @@ snippet bgbk:c snippet bgbk:eb background-break: each-box; snippet bgcp - background-clip: ${1}; + background-clip: ${0}; snippet bgcp:bb background-clip: border-box; snippet bgcp:cb @@ -62,15 +62,15 @@ snippet bgcp:nc snippet bgcp:pb background-clip: padding-box; snippet bgc - background-color: #${1:FFF}; + background-color: #${0:FFF}; snippet bgc:t background-color: transparent; snippet bgi - background-image: url(${1}); + background-image: url(${0}); snippet bgi:n background-image: none; snippet bgo - background-origin: ${1}; + background-origin: ${0}; snippet bgo:bb background-origin: border-box; snippet bgo:cb @@ -78,13 +78,13 @@ snippet bgo:cb snippet bgo:pb background-origin: padding-box; snippet bgpx - background-position-x: ${1}; + background-position-x: ${0}; snippet bgpy - background-position-y: ${1}; + background-position-y: ${0}; snippet bgp - background-position: ${1:0} ${2:0}; + background-position: ${1:0} ${0:0}; snippet bgr - background-repeat: ${1}; + background-repeat: ${0}; snippet bgr:n background-repeat: no-repeat; snippet bgr:x @@ -94,7 +94,7 @@ snippet bgr:y snippet bgr:r background-repeat: repeat; snippet bgz - background-size: ${1}; + background-size: ${0}; snippet bgz:a background-size: auto; snippet bgz:ct @@ -102,67 +102,67 @@ snippet bgz:ct snippet bgz:cv background-size: cover; snippet bg - background: ${1}; + background: ${0}; snippet bg:ie - filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1}',sizingMethod='${2:crop}'); + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1}',sizingMethod='${0:crop}'); snippet bg:n background: none; snippet bd+ - border: ${1:1px} ${2:solid} #${3:000}; + border: ${1:1px} ${2:solid} #${0:000}; snippet bdb+ - border-bottom: ${1:1px} ${2:solid} #${3:000}; + border-bottom: ${1:1px} ${2:solid} #${0:000}; snippet bdbc - border-bottom-color: #${1:000}; + border-bottom-color: #${0:000}; snippet bdbi - border-bottom-image: url(${1}); + border-bottom-image: url(${0}); snippet bdbi:n border-bottom-image: none; snippet bdbli - border-bottom-left-image: url(${1}); + 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: ${1}; + border-bottom-left-radius: ${0}; snippet bdbri - border-bottom-right-image: url(${1}); + 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: ${1}; + border-bottom-right-radius: ${0}; snippet bdbs - border-bottom-style: ${1}; + border-bottom-style: ${0}; snippet bdbs:n border-bottom-style: none; snippet bdbw - border-bottom-width: ${1}; + border-bottom-width: ${0}; snippet bdb - border-bottom: ${1}; + border-bottom: ${0}; snippet bdb:n border-bottom: none; snippet bdbk - border-break: ${1}; + border-break: ${0}; snippet bdbk:c border-break: close; snippet bdcl - border-collapse: ${1}; + border-collapse: ${0}; snippet bdcl:c border-collapse: collapse; snippet bdcl:s border-collapse: separate; snippet bdc - border-color: #${1:000}; + border-color: #${0:000}; snippet bdci - border-corner-image: url(${1}); + border-corner-image: url(${0}); snippet bdci:c border-corner-image: continue; snippet bdci:n border-corner-image: none; snippet bdf - border-fit: ${1}; + border-fit: ${0}; snippet bdf:c border-fit: clip; snippet bdf:of @@ -178,55 +178,55 @@ snippet bdf:sp snippet bdf:st border-fit: stretch; snippet bdi - border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch}; + 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} #${3:000}; + border-left: ${1:1px} ${2:solid} #${0:000}; snippet bdlc - border-left-color: #${1:000}; + border-left-color: #${0:000}; snippet bdli - border-left-image: url(${1}); + border-left-image: url(${0}); snippet bdli:n border-left-image: none; snippet bdls - border-left-style: ${1}; + border-left-style: ${0}; snippet bdls:n border-left-style: none; snippet bdlw - border-left-width: ${1}; + border-left-width: ${0}; snippet bdl - border-left: ${1}; + border-left: ${0}; snippet bdl:n border-left: none; snippet bdlt - border-length: ${1}; + border-length: ${0}; snippet bdlt:a border-length: auto; snippet bdrz - border-radius: ${1}; + border-radius: ${0}; snippet bdr+ - border-right: ${1:1px} ${2:solid} #${3:000}; + border-right: ${1:1px} ${2:solid} #${0:000}; snippet bdrc - border-right-color: #${1:000}; + border-right-color: #${0:000}; snippet bdri - border-right-image: url(${1}); + border-right-image: url(${0}); snippet bdri:n border-right-image: none; snippet bdrs - border-right-style: ${1}; + border-right-style: ${0}; snippet bdrs:n border-right-style: none; snippet bdrw - border-right-width: ${1}; + border-right-width: ${0}; snippet bdr - border-right: ${1}; + border-right: ${0}; snippet bdr:n border-right: none; snippet bdsp - border-spacing: ${1}; + border-spacing: ${0}; snippet bds - border-style: ${1}; + border-style: ${0}; snippet bds:ds border-style: dashed; snippet bds:dtds @@ -254,69 +254,69 @@ snippet bds:s snippet bds:w border-style: wave; snippet bdt+ - border-top: ${1:1px} ${2:solid} #${3:000}; + border-top: ${1:1px} ${2:solid} #${0:000}; snippet bdtc - border-top-color: #${1:000}; + border-top-color: #${0:000}; snippet bdti - border-top-image: url(${1}); + border-top-image: url(${0}); snippet bdti:n border-top-image: none; snippet bdtli - border-top-left-image: url(${1}); + 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: ${1}; + border-top-left-radius: ${0}; snippet bdtri - border-top-right-image: url(${1}); + 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: ${1}; + border-top-right-radius: ${0}; snippet bdts - border-top-style: ${1}; + border-top-style: ${0}; snippet bdts:n border-top-style: none; snippet bdtw - border-top-width: ${1}; + border-top-width: ${0}; snippet bdt - border-top: ${1}; + border-top: ${0}; snippet bdt:n border-top: none; snippet bdw - border-width: ${1}; + border-width: ${0}; snippet bd - border: ${1}; + border: ${0}; snippet bd:n border: none; snippet b - bottom: ${1}; + bottom: ${0}; snippet b:a bottom: auto; snippet bxsh+ - box-shadow: ${1:0} ${2:0} ${3:0} #${4:000}; + box-shadow: ${1:0} ${2:0} ${3:0} #${0:000}; snippet bxsh - box-shadow: ${1}; + box-shadow: ${0}; snippet bxsh:n box-shadow: none; snippet bxz - box-sizing: ${1}; + box-sizing: ${0}; snippet bxz:bb box-sizing: border-box; snippet bxz:cb box-sizing: content-box; snippet cps - caption-side: ${1}; + caption-side: ${0}; snippet cps:b caption-side: bottom; snippet cps:t caption-side: top; snippet cl - clear: ${1}; + clear: ${0}; snippet cl:b clear: both; snippet cl:l @@ -326,23 +326,23 @@ snippet cl:n snippet cl:r clear: right; snippet cp - clip: ${1}; + clip: ${0}; snippet cp:a clip: auto; snippet cp:r - clip: rect(${1:0} ${2:0} ${3:0} ${4:0}); + clip: rect(${1:0} ${2:0} ${3:0} ${0:0}); snippet c - color: #${1:000}; + color: #${0:000}; snippet ct - content: ${1}; + content: ${0}; snippet ct:a - content: attr(${1}); + content: attr(${0}); snippet ct:cq content: close-quote; snippet ct:c - content: counter(${1}); + content: counter(${0}); snippet ct:cs - content: counters(${1}); + content: counters(${0}); snippet ct:ncq content: no-close-quote; snippet ct:noq @@ -352,11 +352,11 @@ snippet ct:n snippet ct:oq content: open-quote; snippet coi - counter-increment: ${1}; + counter-increment: ${0}; snippet cor - counter-reset: ${1}; + counter-reset: ${0}; snippet cur - cursor: ${1}; + cursor: ${0}; snippet cur:a cursor: auto; snippet cur:c @@ -374,7 +374,7 @@ snippet cur:p snippet cur:t cursor: text; snippet d - display: ${1}; + display: ${0}; snippet d:mib display: -moz-inline-box; snippet d:mis @@ -414,7 +414,7 @@ snippet d:tbr snippet d:tb display: table; snippet ec - empty-cells: ${1}; + empty-cells: ${0}; snippet ec:h empty-cells: hide; snippet ec:s @@ -422,7 +422,7 @@ snippet ec:s snippet exp expression() snippet fl - float: ${1}; + float: ${0}; snippet fl:l float: left; snippet fl:n @@ -430,9 +430,9 @@ snippet fl:n snippet fl:r float: right; snippet f+ - font: ${1:1em} ${2:Arial},${3:sans-serif}; + font: ${1:1em} ${2:Arial},${0:sans-serif}; snippet fef - font-effect: ${1}; + font-effect: ${0}; snippet fef:eb font-effect: emboss; snippet fef:eg @@ -442,13 +442,13 @@ snippet fef:n snippet fef:o font-effect: outline; snippet femp - font-emphasize-position: ${1}; + font-emphasize-position: ${0}; snippet femp:a font-emphasize-position: after; snippet femp:b font-emphasize-position: before; snippet fems - font-emphasize-style: ${1}; + font-emphasize-style: ${0}; snippet fems:ac font-emphasize-style: accent; snippet fems:c @@ -460,27 +460,27 @@ snippet fems:dt snippet fems:n font-emphasize-style: none; snippet fem - font-emphasize: ${1}; + font-emphasize: ${0}; snippet ff - font-family: ${1}; + font-family: ${0}; snippet ff:c - font-family: ${1:'Monotype Corsiva','Comic Sans MS'},cursive; + font-family: ${0:'Monotype Corsiva','Comic Sans MS'},cursive; snippet ff:f - font-family: ${1:Capitals,Impact},fantasy; + font-family: ${0:Capitals,Impact},fantasy; snippet ff:m - font-family: ${1:Monaco,'Courier New'},monospace; + font-family: ${0:Monaco,'Courier New'},monospace; snippet ff:ss - font-family: ${1:Helvetica,Arial},sans-serif; + font-family: ${0:Helvetica,Arial},sans-serif; snippet ff:s - font-family: ${1:Georgia,'Times New Roman'},serif; + font-family: ${0:Georgia,'Times New Roman'},serif; snippet fza - font-size-adjust: ${1}; + font-size-adjust: ${0}; snippet fza:n font-size-adjust: none; snippet fz - font-size: ${1}; + font-size: ${0}; snippet fsm - font-smooth: ${1}; + font-smooth: ${0}; snippet fsm:aw font-smooth: always; snippet fsm:a @@ -488,7 +488,7 @@ snippet fsm:a snippet fsm:n font-smooth: never; snippet fst - font-stretch: ${1}; + font-stretch: ${0}; snippet fst:c font-stretch: condensed; snippet fst:e @@ -508,7 +508,7 @@ snippet fst:uc snippet fst:ue font-stretch: ultra-expanded; snippet fs - font-style: ${1}; + font-style: ${0}; snippet fs:i font-style: italic; snippet fs:n @@ -516,13 +516,13 @@ snippet fs:n snippet fs:o font-style: oblique; snippet fv - font-variant: ${1}; + font-variant: ${0}; snippet fv:n font-variant: normal; snippet fv:sc font-variant: small-caps; snippet fw - font-weight: ${1}; + font-weight: ${0}; snippet fw:b font-weight: bold; snippet fw:br @@ -532,31 +532,31 @@ snippet fw:lr snippet fw:n font-weight: normal; snippet f - font: ${1}; + font: ${0}; snippet h - height: ${1}; + height: ${0}; snippet h:a height: auto; snippet l - left: ${1}; + left: ${0}; snippet l:a left: auto; snippet lts - letter-spacing: ${1}; + letter-spacing: ${0}; snippet lh - line-height: ${1}; + line-height: ${0}; snippet lisi - list-style-image: url(${1}); + list-style-image: url(${0}); snippet lisi:n list-style-image: none; snippet lisp - list-style-position: ${1}; + list-style-position: ${0}; snippet lisp:i list-style-position: inside; snippet lisp:o list-style-position: outside; snippet list - list-style-type: ${1}; + list-style-type: ${0}; snippet list:c list-style-type: circle; snippet list:dclz @@ -574,75 +574,75 @@ snippet list:s snippet list:ur list-style-type: upper-roman; snippet lis - list-style: ${1}; + list-style: ${0}; snippet lis:n list-style: none; snippet mb - margin-bottom: ${1}; + margin-bottom: ${0}; snippet mb:a margin-bottom: auto; snippet ml - margin-left: ${1}; + margin-left: ${0}; snippet ml:a margin-left: auto; snippet mr - margin-right: ${1}; + margin-right: ${0}; snippet mr:a margin-right: auto; snippet mt - margin-top: ${1}; + margin-top: ${0}; snippet mt:a margin-top: auto; snippet m - margin: ${1}; + margin: ${0}; snippet m:4 - margin: ${1:0} ${2:0} ${3:0} ${4:0}; + margin: ${1:0} ${2:0} ${3:0} ${0:0}; snippet m:3 - margin: ${1:0} ${2:0} ${3:0}; + margin: ${1:0} ${2:0} ${0:0}; snippet m:2 - margin: ${1:0} ${2:0}; + margin: ${1:0} ${0:0}; snippet m:0 margin: 0; snippet m:a margin: auto; snippet mah - max-height: ${1}; + max-height: ${0}; snippet mah:n max-height: none; snippet maw - max-width: ${1}; + max-width: ${0}; snippet maw:n max-width: none; snippet mih - min-height: ${1}; + min-height: ${0}; snippet miw - min-width: ${1}; + min-width: ${0}; snippet op - opacity: ${1}; + opacity: ${0}; snippet op:ie - filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100}); + filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=${0:100}); snippet op:ms - -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100})'; + -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=${0:100})'; snippet orp - orphans: ${1}; + orphans: ${0}; snippet o+ - outline: ${1:1px} ${2:solid} #${3:000}; + outline: ${1:1px} ${2:solid} #${0:000}; snippet oc - outline-color: ${1:#000}; + outline-color: ${0:#000}; snippet oc:i outline-color: invert; snippet oo - outline-offset: ${1}; + outline-offset: ${0}; snippet os - outline-style: ${1}; + outline-style: ${0}; snippet ow - outline-width: ${1}; + outline-width: ${0}; snippet o - outline: ${1}; + outline: ${0}; snippet o:n outline: none; snippet ovs - overflow-style: ${1}; + overflow-style: ${0}; snippet ovs:a overflow-style: auto; snippet ovs:mq @@ -654,7 +654,7 @@ snippet ovs:p snippet ovs:s overflow-style: scrollbar; snippet ovx - overflow-x: ${1}; + overflow-x: ${0}; snippet ovx:a overflow-x: auto; snippet ovx:h @@ -664,7 +664,7 @@ snippet ovx:s snippet ovx:v overflow-x: visible; snippet ovy - overflow-y: ${1}; + overflow-y: ${0}; snippet ovy:a overflow-y: auto; snippet ovy:h @@ -674,7 +674,7 @@ snippet ovy:s snippet ovy:v overflow-y: visible; snippet ov - overflow: ${1}; + overflow: ${0}; snippet ov:a overflow: auto; snippet ov:h @@ -684,25 +684,25 @@ snippet ov:s snippet ov:v overflow: visible; snippet pb - padding-bottom: ${1}; + padding-bottom: ${0}; snippet pl - padding-left: ${1}; + padding-left: ${0}; snippet pr - padding-right: ${1}; + padding-right: ${0}; snippet pt - padding-top: ${1}; + padding-top: ${0}; snippet p - padding: ${1}; + padding: ${0}; snippet p:4 - padding: ${1:0} ${2:0} ${3:0} ${4:0}; + padding: ${1:0} ${2:0} ${3:0} ${0:0}; snippet p:3 - padding: ${1:0} ${2:0} ${3:0}; + padding: ${1:0} ${2:0} ${0:0}; snippet p:2 - padding: ${1:0} ${2:0}; + padding: ${1:0} ${0:0}; snippet p:0 padding: 0; snippet pgba - page-break-after: ${1}; + page-break-after: ${0}; snippet pgba:aw page-break-after: always; snippet pgba:a @@ -712,7 +712,7 @@ snippet pgba:l snippet pgba:r page-break-after: right; snippet pgbb - page-break-before: ${1}; + page-break-before: ${0}; snippet pgbb:aw page-break-before: always; snippet pgbb:a @@ -722,13 +722,13 @@ snippet pgbb:l snippet pgbb:r page-break-before: right; snippet pgbi - page-break-inside: ${1}; + page-break-inside: ${0}; snippet pgbi:a page-break-inside: auto; snippet pgbi:av page-break-inside: avoid; snippet pos - position: ${1}; + position: ${0}; snippet pos:a position: absolute; snippet pos:f @@ -738,7 +738,7 @@ snippet pos:r snippet pos:s position: static; snippet q - quotes: ${1}; + quotes: ${0}; snippet q:en quotes: '\201C' '\201D' '\2018' '\2019'; snippet q:n @@ -746,7 +746,7 @@ snippet q:n snippet q:ru quotes: '\00AB' '\00BB' '\201E' '\201C'; snippet rz - resize: ${1}; + resize: ${0}; snippet rz:b resize: both; snippet rz:h @@ -756,17 +756,17 @@ snippet rz:n snippet rz:v resize: vertical; snippet r - right: ${1}; + right: ${0}; snippet r:a right: auto; snippet tbl - table-layout: ${1}; + table-layout: ${0}; snippet tbl:a table-layout: auto; snippet tbl:f table-layout: fixed; snippet tal - text-align-last: ${1}; + text-align-last: ${0}; snippet tal:a text-align-last: auto; snippet tal:c @@ -776,7 +776,7 @@ snippet tal:l snippet tal:r text-align-last: right; snippet ta - text-align: ${1}; + text-align: ${0}; snippet ta:c text-align: center; snippet ta:l @@ -784,7 +784,7 @@ snippet ta:l snippet ta:r text-align: right; snippet td - text-decoration: ${1}; + text-decoration: ${0}; snippet td:l text-decoration: line-through; snippet td:n @@ -794,7 +794,7 @@ snippet td:o snippet td:u text-decoration: underline; snippet te - text-emphasis: ${1}; + text-emphasis: ${0}; snippet te:ac text-emphasis: accent; snippet te:a @@ -810,7 +810,7 @@ snippet te:dt snippet te:n text-emphasis: none; snippet th - text-height: ${1}; + text-height: ${0}; snippet th:a text-height: auto; snippet th:f @@ -820,11 +820,11 @@ snippet th:m snippet th:t text-height: text-size; snippet ti - text-indent: ${1}; + text-indent: ${0}; snippet ti:- text-indent: -9999px; snippet tj - text-justify: ${1}; + text-justify: ${0}; snippet tj:a text-justify: auto; snippet tj:d @@ -840,23 +840,23 @@ snippet tj:k snippet tj:t text-justify: tibetan; snippet to+ - text-outline: ${1:0} ${2:0} #${3:000}; + text-outline: ${1:0} ${2:0} #${0:000}; snippet to - text-outline: ${1}; + text-outline: ${0}; snippet to:n text-outline: none; snippet tr - text-replace: ${1}; + text-replace: ${0}; snippet tr:n text-replace: none; snippet tsh+ - text-shadow: ${1:0} ${2:0} ${3:0} #${4:000}; + text-shadow: ${1:0} ${2:0} ${3:0} #${0:000}; snippet tsh - text-shadow: ${1}; + text-shadow: ${0}; snippet tsh:n text-shadow: none; snippet tt - text-transform: ${1}; + text-transform: ${0}; snippet tt:c text-transform: capitalize; snippet tt:l @@ -866,7 +866,7 @@ snippet tt:n snippet tt:u text-transform: uppercase; snippet tw - text-wrap: ${1}; + text-wrap: ${0}; snippet tw:no text-wrap: none; snippet tw:n @@ -876,11 +876,11 @@ snippet tw:s snippet tw:u text-wrap: unrestricted; snippet t - top: ${1}; + top: ${0}; snippet t:a top: auto; snippet va - vertical-align: ${1}; + vertical-align: ${0}; snippet va:bl vertical-align: baseline; snippet va:b @@ -898,7 +898,7 @@ snippet va:tt snippet va:t vertical-align: top; snippet v - visibility: ${1}; + visibility: ${0}; snippet v:c visibility: collapse; snippet v:h @@ -906,7 +906,7 @@ snippet v:h snippet v:v visibility: visible; snippet whsc - white-space-collapse: ${1}; + white-space-collapse: ${0}; snippet whsc:ba white-space-collapse: break-all; snippet whsc:bs @@ -918,7 +918,7 @@ snippet whsc:l snippet whsc:n white-space-collapse: normal; snippet whs - white-space: ${1}; + white-space: ${0}; snippet whs:n white-space: normal; snippet whs:nw @@ -930,13 +930,13 @@ snippet whs:pw snippet whs:p white-space: pre; snippet wid - widows: ${1}; + widows: ${0}; snippet w - width: ${1}; + width: ${0}; snippet w:a width: auto; snippet wob - word-break: ${1}; + word-break: ${0}; snippet wob:ba word-break: break-all; snippet wob:bs @@ -948,9 +948,9 @@ snippet wob:l snippet wob:n word-break: normal; snippet wos - word-spacing: ${1}; + word-spacing: ${0}; snippet wow - word-wrap: ${1}; + word-wrap: ${0}; snippet wow:no word-wrap: none; snippet wow:n @@ -960,7 +960,7 @@ snippet wow:s snippet wow:u word-wrap: unrestricted; snippet z - z-index: ${1}; + z-index: ${0}; snippet z:a z-index: auto; snippet zoo diff --git a/snippets/dart.snippets b/snippets/dart.snippets index a745200..0093f2b 100644 --- a/snippets/dart.snippets +++ b/snippets/dart.snippets @@ -1,82 +1,82 @@ snippet lib #library('${1}'); - ${2} + ${0} snippet im #import('${1}'); - ${2} + ${0} snippet so #source('${1}'); - ${2} + ${0} snippet main static void main() { - ${1} + ${0} } snippet st - static ${1} + static ${0} snippet fi - final ${1} + final ${0} snippet re - return ${1} + return ${0} snippet br break; snippet th - throw ${1} + throw ${0} snippet cl - class ${1:`vim_snippets#Filename("", "untitled")`} ${2} + class ${1:`vim_snippets#Filename("", "untitled")`} ${0} snippet in - interface ${1:`vim_snippets#Filename("", "untitled")`} ${2} + interface ${1:`vim_snippets#Filename("", "untitled")`} ${0} snippet imp - implements ${1} + implements ${0} snippet ext - extends ${1} + extends ${0} snippet if if (${1:true}) { - ${2} + ${0} } snippet ife if (${1:true}) { ${2} } else { - ${3} + ${0} } snippet el else snippet sw switch (${1}) { - ${2} + ${0} } snippet cs case ${1}: - ${2} + ${0} snippet de default: - ${1} + ${0} snippet for for (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) { - ${4:$1[$2]} + ${0:$1[$2]} } snippet fore for (final ${2:item} in ${1:itemList}) { - ${3} + ${0} } snippet wh while (${1:/* condition */}) { - ${2} + ${0} } snippet dowh do { - ${2} - } while (${1:/* condition */}); + ${0} + } while (${0:/* condition */}); snippet as - assert(${1:/* condition */}); + assert(${0:/* condition */}); snippet try try { - ${2} + ${0} } catch (${1:Exception e}) { } snippet tryf try { - ${2} + ${0} } catch (${1:Exception e}) { } finally { } diff --git a/snippets/diff.snippets b/snippets/diff.snippets index 7ba288d..89bc31d 100644 --- a/snippets/diff.snippets +++ b/snippets/diff.snippets @@ -7,5 +7,5 @@ snippet header DEP-3 style header Author: ${6:`g:snips_author`} Reviewed-by: ${7:name and email} Last-Update: ${8:`strftime("%Y-%m-%d")`} - Applied-Upstream: ${9:upstream version|url|commit} + Applied-Upstream: ${0:upstream version|url|commit} diff --git a/snippets/django.snippets b/snippets/django.snippets index 5c72b2b..cad80eb 100644 --- a/snippets/django.snippets +++ b/snippets/django.snippets @@ -9,65 +9,65 @@ # can either not specify them, or override them, e.g. auto_now_add=False. snippet auto - ${1:FIELDNAME} = models.AutoField(${2}) + ${1:FIELDNAME} = models.AutoField(${0}) snippet bool - ${1:FIELDNAME} = models.BooleanField(${2:default=True}) + ${1:FIELDNAME} = models.BooleanField(${0:default=True}) snippet char - ${1:FIELDNAME} = models.CharField(max_length=${2}${3:, blank=True}) + ${1:FIELDNAME} = models.CharField(max_length=${2}${0:, blank=True}) snippet comma - ${1:FIELDNAME} = models.CommaSeparatedIntegerField(max_length=${2}${3:, blank=True}) + ${1:FIELDNAME} = models.CommaSeparatedIntegerField(max_length=${2}${0:, blank=True}) snippet date - ${1:FIELDNAME} = models.DateField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True}) + ${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}${3:, blank=True, null=True}) + ${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=${3}) + ${1:FIELDNAME} = models.DecimalField(max_digits=${2}, decimal_places=${0}) snippet email - ${1:FIELDNAME} = models.EmailField(max_length=${2:75}${3:, blank=True}) + ${1:FIELDNAME} = models.EmailField(max_length=${2:75}${0:, blank=True}) snippet file - ${1:FIELDNAME} = models.FileField(upload_to=${2:path/for/upload}${3:, max_length=100}) + ${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}${6:, blank=True, }) + ${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(${2}) + ${1:FIELDNAME} = models.FloatField(${0}) snippet image - ${1:FIELDNAME} = models.ImageField(upload_to=${2:path/for/upload}${3:, height_field=height, width_field=width}${4:, max_length=100}) + ${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(${2}) + ${1:FIELDNAME} = models.IntegerField(${0}) snippet ip - ${1:FIELDNAME} = models.IPAddressField(${2}) + ${1:FIELDNAME} = models.IPAddressField(${0}) snippet nullbool - ${1:FIELDNAME} = models.NullBooleanField(${2}) + ${1:FIELDNAME} = models.NullBooleanField(${0}) snippet posint - ${1:FIELDNAME} = models.PositiveIntegerField(${2}) + ${1:FIELDNAME} = models.PositiveIntegerField(${0}) snippet possmallint - ${1:FIELDNAME} = models.PositiveSmallIntegerField(${2}) + ${1:FIELDNAME} = models.PositiveSmallIntegerField(${0}) snippet slug - ${1:FIELDNAME} = models.SlugField(max_length=${2:50}${3:, blank=True}) + ${1:FIELDNAME} = models.SlugField(max_length=${2:50}${0:, blank=True}) snippet smallint - ${1:FIELDNAME} = models.SmallIntegerField(${2}) + ${1:FIELDNAME} = models.SmallIntegerField(${0}) snippet text - ${1:FIELDNAME} = models.TextField(${2:blank=True}) + ${1:FIELDNAME} = models.TextField(${0:blank=True}) snippet time - ${1:FIELDNAME} = models.TimeField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True}) + ${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}${4:, blank=True}) + ${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}${3:, blank=True}) + ${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=}${5:, to_field=''}) + ${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=''}${7:, db_table=''}) + ${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=}${6:, to_field=''}) + ${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}""" - ${3} + ${0} snippet model class ${1:ModelName}(models.Model): @@ -85,24 +85,24 @@ snippet model @models.permalink def get_absolute_url(self): - return ('${7:view_or_url_name}' ${8}) + return ('${7:view_or_url_name}' ${0}) snippet modeladmin class ${1:ModelName}Admin(admin.ModelAdmin): - ${2} + ${0} admin.site.register($1, $1Admin) snippet tabularinline - class ${1:ModelName}Inline(admin.TabularInline): + class ${0:ModelName}Inline(admin.TabularInline): model = $1 snippet stackedinline - class ${1:ModelName}Inline(admin.StackedInline): + class ${0:ModelName}Inline(admin.StackedInline): model = $1 snippet r2r return render_to_response('${1:template.html}', { ${2} - }${3:, context_instance=RequestContext(request)} + }${0:, context_instance=RequestContext(request)} ) diff --git a/snippets/elixir.snippets b/snippets/elixir.snippets index eb3319e..54aa180 100644 --- a/snippets/elixir.snippets +++ b/snippets/elixir.snippets @@ -1,127 +1,127 @@ snippet do do - ${1} + ${0} end snippet if if .. do .. end if ${1} do - ${2} + ${0} end snippet if if .. do: .. - if ${1:condition}, do: ${2} + if ${1:condition}, do: ${0} snippet ife if .. do .. else .. end if ${1:condition} do ${2} else - ${3} + ${0} end snippet ife if .. do: .. else: - if ${1:condition}, do: ${2}, else: ${3} + if ${1:condition}, do: ${2}, else: ${0} snippet unless unless .. do .. end unless ${1} do - ${2} + ${0} end snippet unless unless .. do: .. - unless ${1:condition}, do: ${2} + unless ${1:condition}, do: ${0} snippet unlesse unless .. do .. else .. end unless ${1:condition} do ${2} else - ${3} + ${0} end snippet unlesse unless .. do: .. else: - unless ${1:condition}, do: ${2}, else: ${3} + unless ${1:condition}, do: ${2}, else: ${0} snippet cond cond do ${1} -> - ${2} + ${0} end snippet case case ${1} do ${2} -> - ${3} + ${0} end snippet def def ${1:name} do - ${2} + ${0} end snippet defim defimpl ${1:protocol_name}, for: ${2:data_type} do - ${3} + ${0} end snippet defma defmacro ${1:name} do - ${2} + ${0} end snippet defmo defmodule ${1:module_name} do - ${2} + ${0} end snippet defp defp ${1:name} do - ${2} + ${0} end snippet defpr - defprotocol ${1:name}, [${2:function}] + defprotocol ${1:name}, [${0:function}] snippet defr - defrecord ${1:record_name}, ${2:fields} + defrecord ${1:record_name}, ${0:fields} snippet doc @doc """ - ${1} + ${0} """ snippet fn - fn(${1:args}) -> ${2} end + fn(${1:args}) -> ${0} end snippet fun function do - ${1} + ${0} end snippet mdoc @moduledoc """ - ${1} + ${0} """ snippet rec receive do ${1} -> - ${2} + ${0} end snippet req - require ${1:module_name} + require ${0:module_name} snippet imp - import ${1:module_name} + import ${0:module_name} snippet ali - alias ${1:module_name} + alias ${0:module_name} snippet test test "${1:test_name}" do - ${2} + ${0} end snippet try try .. rescue .. end try do ${1} rescue - ${2} -> ${3} + ${2} -> ${0} end diff --git a/snippets/erlang.snippets b/snippets/erlang.snippets index cfad09a..799d7f5 100644 --- a/snippets/erlang.snippets +++ b/snippets/erlang.snippets @@ -5,62 +5,62 @@ snippet mod -compile([export_all]). start() -> - ${2} + ${0} stop() -> ok. # define directive snippet def - -define(${1:macro}, ${2:body}).${3} + -define(${1:macro}, ${2:body}). # export directive snippet exp - -export([${1:function}/${2:arity}]). + -export([${1:function}/${0:arity}]). # include directive snippet inc - -include("${1:file}").${2} + -include("${1:file}"). # behavior directive snippet beh - -behaviour(${1:behaviour}).${2} + -behaviour(${1:behaviour}). # if expression snippet if if ${1:guard} -> - ${2:body} + ${0:body} end # case expression snippet case case ${1:expression} of ${2:pattern} -> - ${3:body}; + ${0:body}; end # anonymous function snippet fun - fun (${1:Parameters}) -> ${2:body} end${3} + fun (${1:Parameters}) -> ${2:body} end # try...catch snippet try try ${1} catch - ${2:_:_} -> ${3:got_some_exception} + ${2:_:_} -> ${0:got_some_exception} end # record directive snippet rec -record(${1:record}, { - ${2:field}=${3:value}}).${4} + ${2:field}=${3:value}}). # todo comment snippet todo - %% TODO: ${1} + %% 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 ${1} + %% @doc ${0} # end of doc comment snippet %e %% @end # specification comment snippet %s - %% @spec ${1} + %% @spec ${0} # private function marker snippet %p %% @private @@ -73,7 +73,7 @@ snippet application -export([start/2, stop/1]). start(_Type, _StartArgs) -> - case ${2:root_supervisor}:start_link() of + case ${0:root_supervisor}:start_link() of {ok, Pid} -> {ok, Pid}; Other -> @@ -100,14 +100,14 @@ snippet supervisor supervisor:start_link({local, ?SERVER}, ?MODULE, []). init([]) -> - Server = {${2:my_server}, {$2, start_link, []}, + 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(${1:`vim_snippets#Filename('', 'my')`}). + -module(${0:`vim_snippets#Filename('', 'my')`}). -behaviour(gen_server). @@ -159,7 +159,7 @@ snippet gen_server %%%=================================================================== # common_test test_SUITE snippet testsuite - -module(${1:`vim_snippets#Filename('', 'my')`}). + -module(${0:`vim_snippets#Filename('', 'my')`}). -include_lib("common_test/include/ct.hrl"). diff --git a/snippets/eruby.snippets b/snippets/eruby.snippets index e3f4213..9541835 100644 --- a/snippets/eruby.snippets +++ b/snippets/eruby.snippets @@ -4,124 +4,124 @@ # Rails ***************************** snippet rc - <% ${1} %> + <% ${0} %> snippet rce - <%= ${1} %>${2} + <%= ${1} %> snippet % - <% ${1} %> + <% ${0} %> snippet = - <%= ${1} %>${2} + <%= ${1} %> snippet end - <% end %>${1} + <% end %> snippet ead <% ${1}.each do |${2}| %> - ${3} + ${0} <% end %> snippet for <% for ${2:item} in ${1} %> - ${3} + ${0} <% end %> snippet rp - <%= render :partial => '${1:item}' %> + <%= render :partial => '${0:item}' %> snippet rpl - <%= render :partial => '${1:item}', :locals => { :${2:name} => '${3:value}'$4 } %> + <%= render :partial => '${1:item}', :locals => { :${2:name} => '${3:value}'${0} } %> snippet rps - <%= render :partial => '${1:item}', :status => ${2:500} %> + <%= render :partial => '${1:item}', :status => ${0:500} %> snippet rpc - <%= render :partial => '${1:item}', :collection => ${2:items} %> + <%= render :partial => '${1:item}', :collection => ${0:items} %> snippet lia - <%= link_to '${1:link text...}', :action => '${2:index}' %> + <%= link_to '${1:link text...}', :action => '${0:index}' %> snippet liai - <%= link_to '${1:link text...}', :action => '${2:edit}', :id => ${3:@item} %> + <%= link_to '${1:link text...}', :action => '${2:edit}', :id => ${0:@item} %> snippet lic - <%= link_to '${1:link text...}', :controller => '${2:items}' %> + <%= link_to '${1:link text...}', :controller => '${0:items}' %> snippet lica - <%= link_to '${1:link text...}', :controller => '${2:items}', :action => '${3:index}' %> + <%= 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 => ${4:@item} %> + <%= link_to '${1:link text...}', :controller => '${2:items}', :action => '${3:edit}', :id => ${0:@item} %> snippet yield - <%= yield ${1::content_symbol} %>${2} + <%= yield ${1::content_symbol} %> snippet conf <% content_for :${1:head} do %> - ${2} + ${0} <% end %> snippet cs <%= collection_select <+object+>, <+method+>, <+collection+>, <+value_method+>, <+text_method+><+, <+[options]+>, <+[html_options]+>+> %> snippet ct - <%= content_tag '${1:DIV}', ${2:content}${3:,options} %> + <%= content_tag '${1:DIV}', ${2:content}${0:,options} %> snippet ff <%= form_for @${1:model} do |f| %> - ${2} + ${0} <% end %> snippet ffi - <%= ${1:f}.input :${2:attribute} %> + <%= ${1:f}.input :${0:attribute} %> snippet ffcb - <%= ${1:f}.check_box :${2:attribute} %> + <%= ${1:f}.check_box :${0:attribute} %> snippet ffe <% error_messages_for :${1:model} %> <%= form_for @${2:model} do |f| %> - ${3} + ${0} <% end %> snippet ffff - <%= ${1:f}.file_field :${2:attribute} %> + <%= ${1:f}.file_field :${0:attribute} %> snippet ffhf - <%= ${1:f}.hidden_field :${2:attribute} %> + <%= ${1:f}.hidden_field :${0:attribute} %> snippet ffl - <%= ${1:f}.label :${2:attribute}, '${3:$2}' %> + <%= ${1:f}.label :${2:attribute}, '${0:$2}' %> snippet ffpf - <%= ${1:f}.password_field :${2:attribute} %> + <%= ${1:f}.password_field :${0:attribute} %> snippet ffrb - <%= ${1:f}.radio_button :${2:attribute}, :${3:tag_value} %> + <%= ${1:f}.radio_button :${2:attribute}, :${0:tag_value} %> snippet ffs - <%= ${1:f}.submit "${2:submit}" %> + <%= ${1:f}.submit "${0:submit}" %> snippet ffta - <%= ${1:f}.text_area :${2:attribute} %> + <%= ${1:f}.text_area :${0:attribute} %> snippet fftf - <%= ${1:f}.text_field :${2:attribute} %> + <%= ${1:f}.text_field :${0:attribute} %> snippet fields <%= fields_for :${1:model}, @$1 do |${2:f}| %> - ${3} + ${0} <% end %> snippet i18 - I18n.t('${1:type.key}')${2} + I18n.t('${1:type.key}') snippet it - <%= image_tag "${1}"${2} %> + <%= image_tag "${1}"${0} %> snippet jit - <%= javascript_include_tag ${1::all} %> + <%= javascript_include_tag ${0::all} %> snippet jsit - <%= javascript_include_tag "${1}" %> + <%= javascript_include_tag "${0}" %> snippet lim - <%= link_to ${1:model}.${2:name}, ${3:$1}_path(${4:$1}) %> + <%= 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}, ${5:@$3}) %> + <%= 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(${4:@$2}) %> + <%= link_to "${1:Link text...}", ${2:parent}_${3:child}_path(${0:@$2}) %> snippet lip - <%= link_to "${1:Link text...}", ${2:model}_path(${3:@$2}) %> + <%= link_to "${1:Link text...}", ${2:model}_path(${0:@$2}) %> snippet lipp - <%= link_to "${1:Link text...}", ${2:model}s_path %> + <%= link_to "${1:Link text...}", ${0:model}s_path %> snippet lt - <%= link_to "${1:name}", ${2:dest} %> + <%= 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}, ${4:selected_value} %> + <%= options_from_collection_for_select ${1:collection}, ${2:value_method}, ${3:text_method}, ${0:selected_value} %> snippet rf - <%= render :file => "${1:file}"${2} %> + <%= render :file => "${1:file}"${0} %> snippet rt - <%= render :template => "${1:file}"${2} %> + <%= render :template => "${1:file}"${0} %> snippet slt - <%= stylesheet_link_tag ${1::all}, :cache => ${2:true} %> + <%= stylesheet_link_tag ${1::all}, :cache => ${0:true} %> snippet sslt - <%= stylesheet_link_tag "${1}" %> + <%= stylesheet_link_tag "${0}" %> snippet if <% if ${1} %> - ${2} + ${0} <% end %> snippet ife <% if ${1} %> ${2} <% else %> - ${3} + ${0} <% end %> diff --git a/snippets/falcon.snippets b/snippets/falcon.snippets index 50c3694..c523980 100644 --- a/snippets/falcon.snippets +++ b/snippets/falcon.snippets @@ -3,30 +3,30 @@ snippet #! # Import snippet imp - import ${1:module} + import ${0:module} # Function snippet fun function ${2:function_name}(${3}) - ${4} + ${0} end # Class snippet class class ${1:class_name}(${2:class_params}) - ${3:/* members/methods */} + ${0:/* members/methods */} end # If snippet if if ${1:condition} - ${2} + ${0} end # If else snippet ife if ${1:condition} - ${2} + ${0} else ${1} end @@ -34,13 +34,13 @@ snippet ife # If else if snippet eif elif ${1:condition} - ${2} + ${0} # Switch case snippet switch switch ${1:expression} case ${2:item} - case ${3:item} + case ${0:item} default end @@ -48,24 +48,24 @@ snippet switch snippet select select ${1:variable} case ${2:TypeSpec} - case ${3:TypeSpec} + case ${0:TypeSpec} default end # For/in Loop snippet forin for ${1:element} in ${2:container} - ${3} + ${0} end # For/to Loop snippet forto for ${1:lowerbound} to ${2:upperbound} - ${3} + ${0} end # While Loop snippet wh while ${1:conidition} - ${2} + ${0} end diff --git a/snippets/go.snippets b/snippets/go.snippets index 7e2ad4c..03f7649 100644 --- a/snippets/go.snippets +++ b/snippets/go.snippets @@ -5,7 +5,7 @@ snippet vr var ${1} ${2} = ${3} # append snippet ap - append(${1:slice}, ${2:value}) + append(${1:slice}, ${0:value}) # bool snippet bl bool @@ -17,31 +17,31 @@ snippet br break # channel snippet ch - chan ${1:int} + chan ${0:int} # case snippet cs case ${1:value}: - ${2} + ${0} # const snippet c - const ${1:NAME} = ${2:0} + const ${1:NAME} = ${0:0} # constants with iota snippet co const ( ${1:NAME1} = iota - ${2:NAME2} + ${0:NAME2} ) # continue snippet cn continue # defer snippet df - defer ${1:func}() + defer ${0:func}() # defer recover snippet dfr defer func() { if err := recover(); err != nil { - ${1} + ${0} } }() # gpl @@ -63,7 +63,7 @@ snippet gpl * Copyright (C) ${1:Author}, `strftime("%Y")` */ - ${2} + ${0} # int snippet i int @@ -71,7 +71,7 @@ snippet i snippet im import ( "${1:package}" - )${2} + ) # interface snippet in interface{} @@ -79,23 +79,23 @@ snippet in snippet inf interface ${1:name} { ${2:/* methods */} - }${3} + } # if condition snippet if if ${1:/* condition */} { ${2} - }${3} + } # else snippet snippet el else { ${1} - }${2} + } # error snippet snippet ir if err != nil { return err } - ${1} + ${0} # false snippet f false @@ -118,64 +118,64 @@ snippet ie } else { ${3} } - ${4} + ${0} # for loop snippet fo for ${2:i} := 0; $2 < ${1:count}; $2${3:++} { ${4} } - ${5} + ${0} # for range loop snippet fr for ${1:k}, ${2:v} := range ${3} { ${4} } - ${5} + ${0} # function simple snippet fun func ${1:funcName}(${2}) ${3:error} { ${4} } - ${5} + ${0} # function on receiver snippet fum func (self ${1:type}) ${2:funcName}(${3}) ${4:error} { ${5} } - ${6} + ${0} # log printf snippet lf - log.Printf("%${1:s}", ${2:var})${3} + log.Printf("%${1:s}", ${2:var}) # log printf snippet lp - log.Println("${1}")${2} + log.Println("${1}") # make snippet mk - make(${1:[]string}, ${2:0}) + make(${1:[]string}, ${0:0}) # map snippet mp - map[${1:string}]${2:int} + map[${1:string}]${0:int} # main() snippet main func main() { ${1} } - ${2} + ${0} # new snippet nw - new(${1:type}) + new(${0:type}) # panic snippet pn - panic("${1:msg}") + panic("${0:msg}") # print snippet pr - fmt.Printf("%${1:s}\n", ${2:var})${3} + fmt.Printf("%${1:s}\n", ${2:var}) # range snippet rn - range ${1} + range ${0} # return snippet rt - return ${1} + return ${0} # result snippet rs result @@ -187,7 +187,7 @@ snippet sl case ${4:v2} := <-${5:chan2} ${6} default: - ${7} + ${0} } # string snippet sr @@ -197,7 +197,7 @@ snippet st struct ${1:name} { ${2:/* data */} } - ${3} + ${0} # switch snippet sw switch ${1:var} { @@ -206,21 +206,21 @@ snippet sw case ${4:value2}: ${5} default: - ${6} + ${0} } snippet sp - fmt.Sprintf("%${1:s}", ${2:var})${3} + fmt.Sprintf("%${1:s}", ${2:var}) # true snippet t true # variable declaration snippet v - var ${1:t} ${2:string} + var ${1:t} ${0:string} # goroutine named function snippet g - go ${1:funcName}(${2}) + go ${1:funcName}(${0}) # goroutine anonymous function snippet ga go func(${1} ${2:type}) { ${3:/* code */} - }(${4}) + }(${0}) diff --git a/snippets/haml.snippets b/snippets/haml.snippets index 0466087..09217c6 100644 --- a/snippets/haml.snippets +++ b/snippets/haml.snippets @@ -5,20 +5,20 @@ snippet t ${1:headers} %tr %td - ${2:headers} + ${0:headers} snippet ul %ul %li - ${1:item} + ${0:item} %li snippet rp - = render :partial => "${1:item}" + = render :partial => "${0:item}" snippet rpc - = render :partial => "${1:item}", :collection => ${2:@$1s} + = render :partial => "${1:item}", :collection => ${0:@$1s} snippet rpl - = render :partial => "${1:item}", :locals => { :${2:$1} => ${3:@$1} + = render :partial => "${1:item}", :locals => { :${2:$1} => ${0:@$1} snippet rpo - = render :partial => "${1:item}", :object => ${2:@$1} + = render :partial => "${1:item}", :object => ${0:@$1} snippet lt = link_to ${1:name}, ${2:dest} snippet mt @@ -29,9 +29,9 @@ snippet ife - if ${1:condition} ${2} - else - ${3} + ${0} snippet ifp - if ${1:condition}.presence? - ${2} + ${0} snippet ntc = number_to_currency(${1}) diff --git a/snippets/haskell.snippets b/snippets/haskell.snippets index 3857d8b..f5f1598 100644 --- a/snippets/haskell.snippets +++ b/snippets/haskell.snippets @@ -1,5 +1,5 @@ snippet lang - {-# LANGUAGE ${1:OverloadedStrings} #-} + {-# LANGUAGE ${0:OverloadedStrings} #-} snippet info -- | -- Module : ${1:Module.Namespace} @@ -10,26 +10,26 @@ snippet info -- Stability : ${6:experimental} -- Portability : ${7:unknown} -- - -- ${8:Description} + -- ${0:Description} -- snippet import - import ${1:Data.Text} + import ${0:Data.Text} snippet import2 - import ${1:Data.Text} (${2:head}) + import ${1:Data.Text} (${0:head}) snippet importq - import qualified ${1:Data.Text} as ${2:T} + import qualified ${1:Data.Text} as ${0:T} snippet inst instance ${1:Monoid} ${2:Type} where - ${3} + ${0} snippet type - type ${1:Type} = ${2:Type} + type ${1:Type} = ${0:Type} snippet data - data ${1:Type} = ${2:$1} ${3:Int} + data ${1:Type} = ${2:$1} ${0:Int} snippet newtype - newtype ${1:Type} = ${2:$1} ${3:Int} + newtype ${1:Type} = ${2:$1} ${0:Int} snippet class class ${1:Class} a where - ${2} + ${0} snippet module module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')` ( ) where @@ -37,46 +37,46 @@ snippet module snippet const ${1:name} :: ${2:a} - $1 = ${3:undefined} + $1 = ${0:undefined} snippet fn ${1:fn} :: ${2:a} -> ${3:a} - $1 ${4} = ${5:undefined} + $1 ${4} = ${0:undefined} snippet fn2 ${1:fn} :: ${2:a} -> ${3:a} -> ${4:a} - $1 ${5} = ${6:undefined} + $1 ${5} = ${0:undefined} snippet ap - ${1:map} ${2:fn} ${3:list} + ${1:map} ${2:fn} ${0:list} snippet do do snippet λ - \${1:x} -> ${2} + \${1:x} -> ${0} snippet \ - \${1:x} -> ${2} + \${1:x} -> ${0} snippet <- - ${1:a} <- ${2:m a} + ${1:a} <- ${0:m a} snippet ← - ${1:a} <- ${2:m a} + ${1:a} <- ${0:m a} snippet -> - ${1:m a} -> ${2:a} + ${1:m a} -> ${0:a} snippet → - ${1:m a} -> ${2:a} + ${1:m a} -> ${0:a} snippet tup - (${1:a}, ${2:b}) + (${1:a}, ${0:b}) snippet tup2 - (${1:a}, ${2:b}, ${3:c}) + (${1:a}, ${2:b}, ${0:c}) snippet tup3 - (${1:a}, ${2:b}, ${3:c}, ${4:d}) + (${1:a}, ${2:b}, ${3:c}, ${0:d}) snippet rec ${1:Record} { ${2:recFieldA} = ${3:undefined} - , ${4:recFieldB} = ${5:undefined} + , ${4:recFieldB} = ${0:undefined} } snippet case case ${1:something} of - ${2} -> ${3} + ${2} -> ${0} snippet let let ${1} = ${2} in ${3} snippet where where - ${1:fn} = ${2:undefined} + ${1:fn} = ${0:undefined} diff --git a/snippets/html.snippets b/snippets/html.snippets index a83089c..f25e1bc 100644 --- a/snippets/html.snippets +++ b/snippets/html.snippets @@ -97,353 +97,353 @@ snippet docx "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> # Attributes snippet attr - ${1:attribute}="${2:property}" + ${1:attribute}="${0:property}" snippet attr+ - ${1:attribute}="${2:property}" attr+${3} + ${1:attribute}="${2:property}" attr+ snippet . - class="${1}"${2} + class="${1}" snippet # - id="${1}"${2} + id="${1}" snippet alt - alt="${1}"${2} + alt="${1}" snippet charset - charset="${1:utf-8}"${2} + charset="${1:utf-8}" snippet data - data-${1}="${2:$1}"${3} + data-${1}="${2:$1}" snippet for - for="${1}"${2} + for="${1}" snippet height - height="${1}"${2} + height="${1}" snippet href - href="${1:#}"${2} + href="${1:#}" snippet lang - lang="${1:en}"${2} + lang="${1:en}" snippet media - media="${1}"${2} + media="${1}" snippet name - name="${1}"${2} + name="${1}" snippet rel - rel="${1}"${2} + rel="${1}" snippet scope - scope="${1:row}"${2} + scope="${1:row}" snippet src - src="${1}"${2} + src="${1}" snippet title= - title="${1}"${2} + title="${1}" snippet type - type="${1}"${2} + type="${1}" snippet value - value="${1}"${2} + value="${1}" snippet width - width="${1}"${2} + width="${1}" # Elements snippet a - ${2:$1} + ${0:$1} snippet a. - ${3:$1} + ${0:$1} snippet a# - ${3:$1} + ${0:$1} snippet a:ext - ${2:$1} + ${0:$1} snippet a:mail - ${3:email me} + ${0:email me} snippet abbr - ${2} + ${0} snippet address

- ${1} + ${0}
snippet area - ${4} + ${0} snippet area+ ${4} - area+${5} + area+ snippet area:c - ${3} + ${0} snippet area:d - ${3} + ${0} snippet area:p - ${3} + ${0} snippet area:r - ${3} + ${0} snippet article
- ${1} + ${0}
snippet article.
- ${2} + ${0}
snippet article#
- ${2} + ${0}
snippet aside snippet aside. snippet aside# snippet audio - snippet b - ${1} + ${0} snippet base - + snippet bdi - ${1} + ${0} snippet bdo - ${2} + ${0} snippet bdo:l - ${1} + ${0} snippet bdo:r - ${1} + ${0} snippet blockquote
- ${1} + ${0}
snippet body - ${1} + ${0} snippet br -
${1} +
snippet button - + snippet button. - + snippet button# - + snippet button:s - + snippet button:r - + snippet canvas - ${1} + ${0} snippet caption - ${1} + ${0} snippet cite - ${1} + ${0} snippet code - ${1} + ${0} snippet col - ${1} + snippet col+ - col+${1} + col+ snippet colgroup - ${1} + ${0} snippet colgroup+ - col+${1} + col+${0} snippet command - + snippet command:c - + snippet command:r - + snippet datagrid - ${1} + ${0} snippet datalist - ${1} + ${0} snippet datatemplate - ${1} + ${0} snippet dd -
${1}
+
${0}
snippet dd. -
${2}
+
${0}
snippet dd# -
${2}
+
${0}
snippet del - ${1} + ${0} snippet details -
${1}
+
${0}
snippet dfn - ${1} + ${0} snippet dialog - ${1} + ${0} snippet div
- ${1} + ${0}
snippet div.
- ${2} + ${0}
snippet div#
- ${2} + ${0}
snippet dl
- ${1} + ${0}
snippet dl.
- ${2} + ${0}
snippet dl#
- ${2} + ${0}
snippet dl+
${1}
${2}
- dt+${3} + dt+${0}
snippet dt -
${1}
+
${0}
snippet dt. -
${2}
+
${0}
snippet dt# -
${2}
+
${0}
snippet dt+
${1}
${2}
- dt+${3} + dt+${0} snippet em - ${1} + ${0} snippet embed - snippet fieldset
- ${1} + ${0}
snippet fieldset.
- ${2} + ${0}
snippet fieldset#
- ${2} + ${0}
snippet fieldset+
${1} ${2}
- fieldset+${3} + fieldset+${0} snippet figcaption -
${1}
+
${0}
snippet figure -
${1}
+
${0}
snippet footer
- ${1} + ${0}
snippet footer.
- ${2} + ${0}
snippet footer#
- ${2} + ${0}
snippet form
- ${3} + ${0}
snippet form.
- ${4} + ${0}
snippet form#
- ${4} + ${0}
snippet h1 -

${1}

+

${0}

snippet h1. -

${2}

+

${0}

snippet h1# -

${2}

+

${0}

snippet h2 -

${1}

+

${0}

snippet h2. -

${2}

+

${0}

snippet h2# -

${2}

+

${0}

snippet h3 -

${1}

+

${0}

snippet h3. -

${2}

+

${0}

snippet h3# -

${2}

+

${0}

snippet h4 -

${1}

+

${0}

snippet h4. -

${2}

+

${0}

snippet h4# -

${2}

+

${0}

snippet h5 -
${1}
+
${0}
snippet h5. -
${2}
+
${0}
snippet h5# -
${2}
+
${0}
snippet h6 -
${1}
+
${0}
snippet h6. -
${2}
+
${0}
snippet h6# -
${2}
+
${0}
snippet head ${1:`substitute(vim_snippets#Filename('', 'Page Title'), '^.', '\u&', '')`} - ${2} + ${0} snippet header
- ${1} + ${0}
snippet header.
- ${2} + ${0}
snippet header#
- ${2} + ${0}
snippet hgroup
- ${1} + ${0}
snippet hgroup.
- ${1} + ${0} snippet html5 @@ -454,175 +454,175 @@ snippet html5 ${2:meta} - ${3:body} + ${0:body} snippet i - ${1} + ${0} snippet iframe - ${2} + snippet iframe. - ${3} + snippet iframe# - ${3} + snippet img - ${2}${3} + ${2} snippet img. - ${3}${4} + ${3} snippet img# - ${3}${4} + ${3} snippet input - ${5} + snippet input. - ${6} + snippet input:text - ${4} + snippet input:submit - ${4} + snippet input:hidden - ${4} + snippet input:button - ${4} + snippet input:image - ${5} + snippet input:checkbox - ${3} + snippet input:radio - ${3} + snippet input:color - ${4} + snippet input:date - ${4} + snippet input:datetime - ${4} + snippet input:datetime-local - ${4} + snippet input:email - ${4} + snippet input:file - ${4} + snippet input:month - ${4} + snippet input:number - ${4} + snippet input:password - ${4} + snippet input:range - ${4} + snippet input:reset - ${4} + snippet input:search - ${4} + snippet input:time - ${4} + snippet input:url - ${4} + snippet input:week - ${4} + snippet ins - ${1} + ${0} snippet kbd - ${1} + ${0} snippet keygen - ${1} + ${0} snippet label - + snippet label:i - ${7} + snippet label:s snippet legend - ${1} + ${0} snippet legend+ - ${1} + ${0} snippet li -
  • ${1}
  • +
  • ${0}
  • snippet li. -
  • ${2}
  • +
  • ${0}
  • snippet li+
  • ${1}
  • - li+${2} + li+ snippet lia -
  • ${1}
  • +
  • ${1}
  • snippet lia+
  • ${1}
  • - lia+${3} + lia+ snippet link - ${5} + snippet link:atom - ${2} + snippet link:css - ${3} + snippet link:favicon - ${2} + snippet link:rss - ${2} + snippet link:touch - ${2} + snippet map - ${2} + ${0} snippet map. - ${3} + ${0} snippet map# ${5}${6} - ${7} + snippet mark - ${1} + ${0} snippet menu - ${1} + ${0} snippet menu:c - ${1} + ${0} snippet menu:t - ${1} + ${0} snippet meta - ${3} + snippet meta:compat - ${3} + snippet meta:refresh - ${3} + snippet meta:utf - ${3} + snippet meter - ${1} + ${0} snippet nav snippet nav. snippet nav# snippet noscript snippet object ${3} - ${4} + # Embed QT Movie snippet movie - ${6} + snippet ol
      - ${1} + ${0}
    snippet ol.
      - ${2} + ${0}
    snippet ol+
    1. ${1}
    2. - li+${2} + li+${0}
    snippet opt - + snippet opt+ - opt+${3} + opt+${0} snippet optt - + snippet optgroup - opt+${3} + opt+${0} snippet output - ${1} + ${0} snippet p -

    ${1}

    +

    ${0}

    snippet param - ${3} + snippet pre
    -		${1}
    +		${0}
     	
    snippet progress - ${1} + ${0} snippet q - ${1} + ${0} snippet rp - ${1} + ${0} snippet rt - ${1} + ${0} snippet ruby - ${1} + ${0} snippet s - ${1} + ${0} snippet samp - ${1} + ${0} snippet script snippet scriptsrc - + snippet section
    - ${1} + ${0}
    snippet section.
    - ${2} + ${0}
    snippet section#
    - ${2} + ${0}
    snippet select snippet select. snippet small - ${1} + ${0} snippet source - + snippet span - ${1} + ${0} snippet span. - ${2} + ${0} snippet span# - ${2} + ${0} snippet strong - ${1} + ${0} snippet style snippet sub - ${1} + ${0} snippet summary - ${1} + ${0} snippet sup - ${1} + ${0} snippet table - ${2} + ${0}
    snippet table. - ${3} + ${0}
    snippet table# - ${3} + ${0}
    snippet tbody - ${1} + ${0} snippet td - ${1} + ${0} snippet td. - ${2} + ${0} snippet td# - ${2} + ${0} snippet td+ ${1} - td+${2} + td+${0} snippet textarea - ${6} + snippet tfoot - ${1} + ${0} snippet th - ${1} + ${0} snippet th. - ${2} + ${0} snippet th# - ${2} + ${0} snippet th+ ${1} - th+${2} + th+${0} snippet thead - ${1} + ${0} snippet time - + snippet title - ${1:`substitute(vim_snippets#Filename('', 'Page Title'), '^.', '\u&', '')`} + ${0:`substitute(vim_snippets#Filename('', 'Page Title'), '^.', '\u&', '')`} snippet tr - ${1} + ${0} snippet tr+ ${1} - td+${2} + td+${0} snippet track - - ${2} + ${0} snippet ul#
      - ${2} + ${0}
    snippet ul+
    • ${1}
    • - li+${2} + li+${0}
    snippet var - ${1} + ${0} snippet video -