-
-HiLink godocTitle Title
-
-delcommand HiLink
-
-let b:current_syntax = "godoc"
-
-" vim:ts=4 sts=2 sw=2:
diff --git a/sources_non_forked/vim-less/after/syntax/html.vim b/sources_non_forked/vim-less/after/syntax/html.vim
new file mode 100644
index 00000000..db6cdaa4
--- /dev/null
+++ b/sources_non_forked/vim-less/after/syntax/html.vim
@@ -0,0 +1,26 @@
+if !exists("g:less_html_style_tags")
+ let g:less_html_style_tags = 1
+endif
+
+if !g:less_html_style_tags
+ finish
+endif
+
+" Unset (but preserve) so that less will run.
+if exists("b:current_syntax")
+ let s:pre_less_cur_syn = b:current_syntax
+ unlet b:current_syntax
+endif
+
+" Inspired by code from github.com/kchmck/vim-coffee-script
+" and the html syntax file included with vim 7.4.
+
+syn include @htmlLess syntax/less.vim
+
+" We have to explicitly add to htmlHead (containedin) as that region specifies 'contains'.
+syn region lessStyle start=++ contains=@htmlLess,htmlTag,htmlEndTag,htmlCssStyleComment,@htmlPreproc containedin=htmlHead
+
+" Reset since 'less' isn't really the current_syntax.
+if exists("s:pre_less_cur_syn")
+ let b:current_syntax = s:pre_less_cur_syn
+endif
diff --git a/sources_non_forked/vim-snipmate/Contributors.md b/sources_non_forked/vim-snipmate/Contributors.md
index 4e139e1a..536fe8bf 100644
--- a/sources_non_forked/vim-snipmate/Contributors.md
+++ b/sources_non_forked/vim-snipmate/Contributors.md
@@ -26,6 +26,7 @@ additional contributions from:
* [jherdman](https://github.com/jherdman)
* [kozo2](https://github.com/kozo2)
* [lilydjwg](https://github.com/lilydjwg)
+* [lpil](https://github.com/lpil)
* [marutanm](https://github.com/marutanm)
* [MicahElliott](https://github.com/MicahElliott)
* [muffinresearch](https://github.com/muffinresearch)
diff --git a/sources_non_forked/vim-snipmate/plugin/snipMate.vim b/sources_non_forked/vim-snipmate/plugin/snipMate.vim
index 67a4d028..72f7ebc1 100644
--- a/sources_non_forked/vim-snipmate/plugin/snipMate.vim
+++ b/sources_non_forked/vim-snipmate/plugin/snipMate.vim
@@ -81,6 +81,10 @@ if (!exists('g:snipMate_no_default_aliases') || !g:snipMate_no_default_aliases)
\ get(g:snipMate.scope_aliases, 'mxml', 'actionscript')
let g:snipMate.scope_aliases.eruby =
\ get(g:snipMate.scope_aliases, 'eruby', 'eruby-rails,html')
+ let g:snipMate.scope_aliases.scss =
+ \ get(g:snipMate.scope_aliases, 'scss', 'css')
+ let g:snipMate.scope_aliases.less =
+ \ get(g:snipMate.scope_aliases, 'less', 'css')
endif
let g:snipMate['get_snippets'] = get(g:snipMate, 'get_snippets', funcref#Function("snipMate#GetSnippets"))
diff --git a/sources_non_forked/vim-snippets/README.md b/sources_non_forked/vim-snippets/README.md
index bf8b3346..bc9dd691 100644
--- a/sources_non_forked/vim-snippets/README.md
+++ b/sources_non_forked/vim-snippets/README.md
@@ -1,4 +1,4 @@
-Snipmate & UltiSnip Snippets
+snipMate & UltiSnip Snippets
============================
This repository contains snippets files for various programming languages.
@@ -9,7 +9,7 @@ other improvements already.
Contents
--------
-- `snippets/*`: snippets using snipmate format
+- `snippets/*`: snippets using snipMate format
- `UltiSnips/*`: snippets using UltiSnips format
Snippet engines supporting vim-snippets
@@ -28,8 +28,8 @@ snippets by typing the name of a snippet hitting the expansion mapping.
- [github.com/drmingdrmer/xptemplate](https://github.com/drmingdrmer/xptemplate):
Totally different syntax, does not read snippets contained in this file, but
it is also very powerful. It does not support vim-snippets (just listing it
- here for completness)
-
+ here for completeness)
+
There tries to be a more comprehensive list (which still is incomplete) here:
http://vim-wiki.mawercer.de/wiki/topic/text-snippets-skeletons-templates.html
@@ -45,16 +45,15 @@ If you have VimL only (vim without python support) your best option is using
[garbas/vim-snipmate](https://github.com/garbas/vim-snipmate) and cope with the
minor bugs found in the engine.
+Q: Should "snipMate be deprecated in favour of UltiSnips"?
-Q: Should "snipmate be deprecated in favour of UltiSnips"?
-
-A: No, because snimpate is VimL, and UltiSnips requires Python.
+A: No, because snipMate is VimL, and UltiSnips requires Python.
Some people want to use snippets without having to install Vim with Python
-support. Yes - this sucks.
+support. Yes - this sucks.
One solution would be: Use snippets if they are good enough, but allow overriding them
in UltiSnips. This would avoid most duplication while still serving most users.
-AFAIK there is a nested-placeholder branch for snipmate too. snipmate is still
+AFAIK there is a nested-placeholder branch for snipMate too. snipMate is still
improved by Adnan Zafar. So maybe time is not ready to make a final decision yet.
[github issue/discussion](https://github.com/honza/vim-snippets/issues/363)
@@ -68,11 +67,11 @@ which is why Marc Weber thinks that it doesn't make sense to repeat the same
repetitive information everywhere.
*Recommended way:*
-[vim-addon-manager](vim-addon-manager) (because Marc Weber wrote it for exactly
-this reason, it supports simple dependency management). Eg you're done by this
-line in your .vimrc:
+[vim-addon-manager](https://github.com/MarcWeber/vim-addon-manager) (because Marc Weber wrote it for exactly
+this reason, it supports simple dependency management). E.g. you're done by this
+line in your `.vimrc`:
-```
+```vim
" assuming you want to use snipmate snippet engine
ActivateAddons vim-snippets snipmate
```
@@ -80,16 +79,17 @@ ActivateAddons vim-snippets snipmate
[vim-pi](https://bitbucket.org/vimcommunity/vim-pi/issue/90/we-really-need-a-web-interface)
Is the place to discuss plugin managers and repository resources.
-About how to install snipate see [snipmate@garbas](https://github.com/garbas/vim-snipmate)
+About how to install snipMate see [snipmate@garbas](https://github.com/garbas/vim-snipmate)
(Bundle, Pathogen, git clone - keywords to make people find this link by ctrl-f search)
-I know that I should be reading the docs of the snippet engine, just let me copy paste into my .vimrc:
+I know that I should be reading the docs of the snippet engine, just let me copy paste into my `.vimrc`:
[See this pull request](https://github.com/honza/vim-snippets/pull/307/files).
TROUBLE
=======
-If you still have trouble getting this to work create a github ticket, ask on
-irc or the mailinglist.
+
+If you still have trouble getting this to work create a GitHub ticket, ask on
+IRC or the mailing list.
Policies / for contributors
---------------------------
@@ -105,7 +105,8 @@ el : else ..
wh : while (cond) ...
```
-Don't add useless placeholder default texts like
+Don't add useless placeholder default texts like:
+
```
if (${1:condition}){
${2:some code here}
@@ -119,7 +120,7 @@ if (${1}){
}
```
-Exception: Functions which are used less often, such as Vim's matchall(), matchstr()
+Exception: Functions which are used less often, such as Vim's `matchall()`, `matchstr()`
functions which case hints may be helpful to remember order. In the VimL case
get vim-dev plugin which has function completion
@@ -140,15 +141,16 @@ on merging should be done (dropping duplicates etc). Also see engines section ab
Related repositories
--------------------
+
We also encourage people to maintain sets of snippets for particular use cases
so that all users can benefit from them. People can list their snippet repositories here:
- * https://github.com/rbonvall/snipmate-snippets-bib (snippets for BibTeX files)
- * https://github.com/sudar/vim-arduino-snippets (snippets for Arduino files)
- * https://github.com/zedr/zope-snipmate-bundle.git (snippets for Python, TAL and ZCML)
- * https://github.com/bonsaiben/bootstrap-snippets (snippets for Twitter Bootstrap markup, in HTML and Haml)
+* https://github.com/rbonvall/snipmate-snippets-bib (snippets for BibTeX files)
+* https://github.com/sudar/vim-arduino-snippets (snippets for Arduino files)
+* https://github.com/zedr/zope-snipmate-bundle.git (snippets for Python, TAL and ZCML)
+* https://github.com/bonsaiben/bootstrap-snippets (snippets for Twitter Bootstrap markup, in HTML and Haml)
-Installation using VAM: "github:rbonvall/snipmate-snippets-bib"
+Installation using VAM: https://github.com/MarcWeber/vim-addon-manager
Future - ideas - examples
-------------------------
@@ -156,7 +158,6 @@ Future - ideas - examples
[overview snippet engines](http://vim-wiki.mawercer.de/wiki/topic/text-snippets-skeletons-templates.html)
If you have ideas you can add them to that list of "snippet engine features by example".
-
Historical notes
----------------
@@ -166,15 +167,15 @@ unfortunately abandoned the project. [Rok Garbas][3] is now maintaining a
Versions / dialects / ..
========================
+
There are some issues, such as newer language versions may require other
snippets than older. If this exists we currently recommend doing this:
-add snippets/ruby.snippets (common snippets)
-add snippets/ruby-1.8.snippets (1.8 only)
-add snippets/ruby-1.9.snippets (1.9 only)
-
-then configure github.com/garbas/vim-snipmate this way:
+* add snippets/ruby.snippets (common snippets)
+* add snippets/ruby-1.8.snippets (1.8 only)
+* add snippets/ruby-1.9.snippets (1.9 only)
+then configure https://github.com/garbas/vim-snipmate this way:
```vim
let g:snipMate = {}
@@ -183,17 +184,18 @@ let g:snipMate.scope_aliases['ruby'] = 'ruby,ruby-rails,ruby-1.9'
```
If it happens that you work on a project requiring ruby-1.8 snippets instead,
-consider using vim-addon-local-vimrc and override the filetypes.
+consider using `vim-addon-local-vimrc` and override the filetypes.
Well - of course it may not make sense to create a new file for each
ruby-library-version triplet. Sometimes postfixing a name such as
- migrate_lib_20_down
- migrate_lib_20_up
+```
+migrate_lib_20_down
+migrate_lib_20_up
+```
will do it then if syntax has changed.
-
Language maintainers
--------------------
@@ -219,7 +221,6 @@ License
Just as the original snipMate plugin, all the snippets are licensed under the
terms of the MIT license.
-
[1]: http://github.com/garbas/vim-snipmate
[2]: http://github.com/msanders
[3]: http://github.com/garbas
diff --git a/sources_non_forked/vim-snippets/UltiSnips/ada.snippets b/sources_non_forked/vim-snippets/UltiSnips/ada.snippets
new file mode 100644
index 00000000..d33c7778
--- /dev/null
+++ b/sources_non_forked/vim-snippets/UltiSnips/ada.snippets
@@ -0,0 +1,324 @@
+priority -50
+
+global !p
+
+def ada_case(word):
+ out = word[0].upper()
+ for i in range(1, len(word)):
+ if word[i - 1] == '_':
+ out = out + word[i].upper()
+ else:
+ out = out + word[i]
+ return out
+
+def get_year():
+ import time
+ return time.strftime("%Y")
+
+endglobal
+
+snippet wi "with"
+with $1;$0
+endsnippet
+
+snippet pac "package"
+package ${1:`!p snip.rv = ada_case(snip.basename)`} is
+ $0
+end $1;
+endsnippet
+
+snippet pacb "package body"
+package body ${1:`!p snip.rv = ada_case(snip.basename)`} is
+ $0
+end $1;
+endsnippet
+
+snippet ent "entry ... when"
+entry $1($2) when $3 is
+begin
+ $0
+end $1;
+endsnippet
+
+snippet task "task"
+task $1 is
+ entry $0
+end $1;
+endsnippet
+
+snippet taskb "task body"
+task body $1 is
+ $2
+begin
+ $0
+end $1;
+endsnippet
+
+snippet acc "accept"
+accept $1($2) do
+ $0
+end $1;
+endsnippet
+
+snippet prot "protected type"
+protected type $1($2) is
+ $0
+end $1;
+endsnippet
+
+snippet prob "protected body"
+protected body $1 is
+ $2
+begin
+ $0
+end $1;
+endsnippet
+
+snippet gen "generic type"
+generic
+ type $1 is $2;$0
+endsnippet
+
+snippet ty "type"
+type $1 is $2;$0
+endsnippet
+
+snippet tyd "type with default value"
+type $1 is $2
+ with Default_Value => $3;$0
+endsnippet
+
+snippet subty "subtype"
+subtype $1 is $2;$0
+endsnippet
+
+snippet dec "declare block"
+declare
+ $1
+begin
+ $0
+end;
+endsnippet
+
+snippet decn "declare named block"
+$1:
+declare
+ $2
+begin
+ $0
+end $1;
+endsnippet
+
+snippet ifex "if expression"
+if $1 then $2 else $0
+endsnippet
+
+snippet casex "case expression"
+case $1 is
+ when $2 => $3,$0
+endsnippet
+
+snippet fora "for all"
+for all $1 ${2:in} $3 => $0
+endsnippet
+
+snippet fors "for some"
+for some $1 ${2:in} $3 => $0
+endsnippet
+
+snippet if "if"
+if $1 then
+ $0
+end if;
+endsnippet
+
+snippet ife "if ... else"
+if $1 then
+ $2
+else
+ $0
+end if;
+endsnippet
+
+snippet el "else"
+else
+ $0
+endsnippet
+
+snippet eif "elsif"
+elsif $1 then
+ $0
+endsnippet
+
+snippet wh "while"
+while $1 loop
+ $0
+end loop;
+endsnippet
+
+snippet nwh "named while"
+$1:
+while $2 loop
+ $0
+end loop $1;
+endsnippet
+
+snippet for "for"
+for ${1:I} in $2 loop
+ $0
+end loop;
+endsnippet
+
+snippet fore "for each"
+for $1 of $2 loop
+ $0
+end loop;
+endsnippet
+
+snippet nfor "named for"
+$1:
+for ${2:I} in $3 loop
+ $0
+end loop $1;
+endsnippet
+
+snippet nfore "named for each"
+$1:
+for $2 of $3 loop
+ $0
+end loop $1;
+endsnippet
+
+snippet proc "procedure"
+procedure $1($2) is
+ $3
+begin
+ $0
+end $1;
+endsnippet
+
+snippet procd "procedure declaration"
+procedure $1;$0
+endsnippet
+
+snippet fun "function"
+function $1($2) return $3 is
+ $4
+begin
+ $0
+end $1;
+endsnippet
+
+snippet fune "expression function"
+function $1 return $2 is
+ ($3);$0
+endsnippet
+
+snippet fund "function declaration"
+function $1 return $2;$0
+endsnippet
+
+snippet ret "extended return"
+return $1 do
+ $0
+end return;
+endsnippet
+
+snippet rec "record"
+record
+ $0
+end record;
+endsnippet
+
+snippet case "case"
+case $1 is
+ when $2 => $3;$0
+end case;
+endsnippet
+
+snippet whe "when"
+when $1 => $2;$0
+endsnippet
+
+snippet wheo "when others"
+when others => $1;$0
+endsnippet
+
+snippet lo "loop"
+loop
+ $0
+end loop;
+endsnippet
+
+snippet nlo "named loop"
+$1:
+loop
+ $0
+end loop $1;
+endsnippet
+
+snippet ex "exit when"
+exit when $1;$0
+endsnippet
+
+snippet put "Ada.Text_IO.Put"
+Ada.Text_IO.Put($1);$0
+endsnippet
+
+snippet putl "Ada.Text_IO.Put_Line"
+Ada.Text_IO.Put_Line($1);$0
+endsnippet
+
+snippet get "Ada.Text_IO.Get"
+Ada.Text_IO.Get($1);$0
+endsnippet
+
+snippet getl "Ada.Text_IO.Get_Line"
+Ada.Text_IO.Get_Line($1);$0
+endsnippet
+
+snippet newline "Ada.Text_IO.New_Line"
+Ada.Text_IO.New_Line(${1:1});$0
+endsnippet
+
+snippet gpl "GPL license header"
+-- This program is free software; you can redistribute it and/or modify
+-- it under the terms of the GNU ${1}General Public License as published by
+-- the Free Software Foundation; either version ${2:3} of the License, or
+-- (at your option) any later version.
+--
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-- GNU $1General Public License for more details.
+--
+-- You should have received a copy of the GNU $1General Public License
+-- along with this program; if not, see .
+--
+-- Copyright (C) ${3:Author}, ${4:`!p snip.rv = get_year()`}
+
+$0
+endsnippet
+
+snippet gplf "GPL file license header"
+-- This file is part of ${1:Program-Name}.
+--
+-- $1 is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU ${2}General Public License as published by
+-- the Free Software Foundation, either version ${3:3} of the License, or
+-- (at your option) any later version.
+--
+-- $1 is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-- GNU $2General Public License for more details.
+--
+-- You should have received a copy of the GNU $2General Public License
+-- along with $1. If not, see .
+--
+-- Copyright (C) ${4:Author}, ${5:`!p snip.rv = get_year()`}
+
+$0
+endsnippet
+
+# vim:ft=snippets:
diff --git a/sources_non_forked/vim-snippets/UltiSnips/all.snippets b/sources_non_forked/vim-snippets/UltiSnips/all.snippets
index 532010e7..f816ba40 100644
--- a/sources_non_forked/vim-snippets/UltiSnips/all.snippets
+++ b/sources_non_forked/vim-snippets/UltiSnips/all.snippets
@@ -120,4 +120,14 @@ vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.
endsnippet
+##########################
+# VIM MODELINE GENERATOR #
+##########################
+# See advice on `:help 'tabstop'` for why these values are set. Uses second
+# modeline form ('set') to work in languages with comment terminators
+# (/* like C */).
+snippet modeline "Vim modeline"
+vim`!v ':set '. (&expandtab ? printf('et sw=%i ts=%i', &sw, &ts) : printf('noet sts=%i sw=%i ts=%i', &sts, &sw, &ts)) . (&tw ? ' tw='. &tw : '') . ':'`
+endsnippet
+
# vim:ft=snippets:
diff --git a/sources_non_forked/vim-snippets/UltiSnips/c.snippets b/sources_non_forked/vim-snippets/UltiSnips/c.snippets
index e6ea2f9d..618bfe3d 100644
--- a/sources_non_forked/vim-snippets/UltiSnips/c.snippets
+++ b/sources_non_forked/vim-snippets/UltiSnips/c.snippets
@@ -77,7 +77,6 @@ else:
${VISUAL}${0}
#endif /* end of include guard: $1 */
-
endsnippet
snippet td "Typedef"
diff --git a/sources_non_forked/vim-snippets/UltiSnips/help.snippets b/sources_non_forked/vim-snippets/UltiSnips/help.snippets
index 61327385..b07a7de0 100644
--- a/sources_non_forked/vim-snippets/UltiSnips/help.snippets
+++ b/sources_non_forked/vim-snippets/UltiSnips/help.snippets
@@ -29,4 +29,9 @@ ${1:SubSubsection}:`!p snip.rv = sec_title(snip, t)`
$0
endsnippet
+# For vim help, follow the same settings as the official docs.
+snippet modeline "Vim help modeline"
+ `!v 'vim'`:tw=78:ts=8:ft=help:norl:
+endsnippet
+
# vim:ft=snippets:
diff --git a/sources_non_forked/vim-snippets/UltiSnips/html.snippets b/sources_non_forked/vim-snippets/UltiSnips/html.snippets
index 5746feb6..fee451f9 100644
--- a/sources_non_forked/vim-snippets/UltiSnips/html.snippets
+++ b/sources_non_forked/vim-snippets/UltiSnips/html.snippets
@@ -253,6 +253,10 @@ snippet td "table cell" w
$0 |
endsnippet
+snippet th "table header" w
+$0 |
+endsnippet
+
snippet tr "table row" w
$0
endsnippet
diff --git a/sources_non_forked/vim-snippets/UltiSnips/java.snippets b/sources_non_forked/vim-snippets/UltiSnips/java.snippets
index 54ca6f35..e8eb77cc 100644
--- a/sources_non_forked/vim-snippets/UltiSnips/java.snippets
+++ b/sources_non_forked/vim-snippets/UltiSnips/java.snippets
@@ -180,13 +180,13 @@ endsnippet
snippet elif "else if"
else if ($1)`!p nl(snip)`{
- $0
+ $0${VISUAL}
}
endsnippet
snippet el "else" w
else`!p nl(snip)`{
- $0
+ $0${VISUAL}
}
endsnippet
@@ -214,7 +214,7 @@ endsnippet
snippet if "if" b
if ($1)`!p nl(snip)`{
- $0
+ $0${VISUAL}
}
endsnippet
@@ -303,7 +303,7 @@ endsnippet
snippet try "try/catch" b
try {
- $1
+ $1${VISUAL}
} catch(${2:Exception} ${3:e}){
${4:e.printStackTrace();}
}
diff --git a/sources_non_forked/vim-snippets/UltiSnips/javascript_angular.snippets b/sources_non_forked/vim-snippets/UltiSnips/javascript_angular.snippets
index 76e9ca1d..61b52293 100644
--- a/sources_non_forked/vim-snippets/UltiSnips/javascript_angular.snippets
+++ b/sources_non_forked/vim-snippets/UltiSnips/javascript_angular.snippets
@@ -19,7 +19,49 @@ config(function($1) {
endsnippet
snippet acont "angular controller" i
-controller('${1:name}', function($2) {
+controller('${1:name}', ['${2:param_annotation}', function(${3:param}) {
$0
-});
+}]);
+endsnippet
+
+snippet aconts "angular controller with scope" i
+controller('${1:name}', ['$scope', function($scope) {
+ $0
+}]);
+endsnippet
+
+snippet adir "angular directive" i
+directive('${1:name}', ['${2:param_annotation}', function(${3:param}) {
+ $0
+}]);
+endsnippet
+
+snippet adirs "angular directive with scope" i
+directive('${1:name}', ['$scope', function($scope) {
+ $0
+}]);
+endsnippet
+
+snippet afact "angular factory" i
+factory('${1:name}', ['${2:param_annotation}', function(${3:param}) {
+ $0
+}]);
+endsnippet
+
+snippet afacts "angular factory with scope" i
+factory('${1:name}', ['$scope', function($scope) {
+ $0
+}]);
+endsnippet
+
+snippet aserv "angular service" i
+service('${1:name}', ['${2:param_annotation}', function(${3:param}) {
+ $0
+}]);
+endsnippet
+
+snippet aservs "angular service" i
+service('${1:name}', ['$scope', function($scope) {
+ $0
+}]);
endsnippet
diff --git a/sources_non_forked/vim-snippets/UltiSnips/javascript_jasmine.snippets b/sources_non_forked/vim-snippets/UltiSnips/javascript_jasmine.snippets
index 3a872985..e392459f 100644
--- a/sources_non_forked/vim-snippets/UltiSnips/javascript_jasmine.snippets
+++ b/sources_non_forked/vim-snippets/UltiSnips/javascript_jasmine.snippets
@@ -50,6 +50,10 @@ snippet ee "expect to equal (js)" b
expect(${1:target}).toEqual(${2:value});
endsnippet
+snippet eb "expect to be (js)" b
+expect(${1:target}).toBe(${2:value});
+endsnippet
+
snippet em "expect to match (js)" b
expect(${1:target}).toMatch(${2:pattern});
endsnippet
diff --git a/sources_non_forked/vim-snippets/UltiSnips/javascript_jsdoc.snippets b/sources_non_forked/vim-snippets/UltiSnips/javascript_jsdoc.snippets
index ca943fc7..959f805d 100644
--- a/sources_non_forked/vim-snippets/UltiSnips/javascript_jsdoc.snippets
+++ b/sources_non_forked/vim-snippets/UltiSnips/javascript_jsdoc.snippets
@@ -9,7 +9,7 @@ snippet /* "A JSDoc comment" b
endsnippet
snippet @au "@author email (First Last)"
-@author ${1:`!v g:snips_author_email`} (${2:`!v g:snips_author`})
+@author ${1:`!v g:snips_author`} [${2:`!v g:snips_author_email`}]
endsnippet
snippet @li "@license Description"
diff --git a/sources_non_forked/vim-snippets/UltiSnips/pandoc.snippets b/sources_non_forked/vim-snippets/UltiSnips/pandoc.snippets
index 157c9ef0..ad165c56 100644
--- a/sources_non_forked/vim-snippets/UltiSnips/pandoc.snippets
+++ b/sources_non_forked/vim-snippets/UltiSnips/pandoc.snippets
@@ -1,3 +1,12 @@
+extends markdown
+
+# overwrite if necessary
priority -49
-extends markdown
+snippet title "Title Header" b
+% ${1:`!v Filename('', 'title')`}
+% ${2:`!v g:snips_author`}
+% ${3:`!v strftime("%d %B %Y")`}
+
+$0
+endsnippet
diff --git a/sources_non_forked/vim-snippets/UltiSnips/perl.snippets b/sources_non_forked/vim-snippets/UltiSnips/perl.snippets
index abaae3f5..67c7f278 100644
--- a/sources_non_forked/vim-snippets/UltiSnips/perl.snippets
+++ b/sources_non_forked/vim-snippets/UltiSnips/perl.snippets
@@ -129,4 +129,11 @@ while ($1) {
endsnippet
+snippet until "until"
+until ($1) {
+ ${2:# body...}
+}
+
+endsnippet
+
# vim:ft=snippets:
diff --git a/sources_non_forked/vim-snippets/UltiSnips/php.snippets b/sources_non_forked/vim-snippets/UltiSnips/php.snippets
index b7109120..def2116b 100644
--- a/sources_non_forked/vim-snippets/UltiSnips/php.snippets
+++ b/sources_non_forked/vim-snippets/UltiSnips/php.snippets
@@ -14,7 +14,7 @@ endsnippet
snippet do "do"
do {
${2:// code... }
-} while (${1:/* condition */});"
+} while (${1:/* condition */});
endsnippet
snippet doc_f "doc_f"
@@ -67,6 +67,12 @@ if (${1:/* condition */}) {
}
endsnippet
+snippet elif "elseif"
+elseif (${1:/* condition */}) {
+ ${2:// code...}
+}
+endsnippet
+
snippet inc "inc"
include '${1:file}';${2}
endsnippet
@@ -139,49 +145,79 @@ $0
endsnippet
snippet pub "Public function" b
+/**
+ * ${3:undocumented function}
+ *
+ * @return ${4:void}
+ */
public function ${1:name}(${2:$param})
{
- ${VISUAL}${3:return null;}
+ ${VISUAL}${5:return null;}
}
$0
endsnippet
snippet pro "Protected function" b
+/**
+ * ${3:undocumented function}
+ *
+ * @return ${4:void}
+ */
protected function ${1:name}(${2:$param})
{
- ${VISUAL}${3:return null;}
+ ${VISUAL}${5:return null;}
}
$0
endsnippet
snippet pri "Private function" b
+/**
+ * ${3:undocumented function}
+ *
+ * @return ${4:void}
+ */
private function ${1:name}(${2:$param})
{
- ${VISUAL}${3:return null;}
+ ${VISUAL}${5:return null;}
}
$0
endsnippet
snippet pubs "Public static function" b
+/**
+ * ${3:undocumented function}
+ *
+ * @return ${4:void}
+ */
public static function ${1:name}(${2:$param})
{
- ${VISUAL}${3:return null;}
+ ${VISUAL}${5:return null;}
}
$0
endsnippet
snippet pros "Protected static function" b
+/**
+ * ${3:undocumented function}
+ *
+ * @return ${4:void}
+ */
protected static function ${1:name}(${2:$param})
{
- ${VISUAL}${3:return null;}
+ ${VISUAL}${5:return null;}
}
$0
endsnippet
snippet pris "Private static function" b
+/**
+ * ${3:undocumented function}
+ *
+ * @return ${4:void}
+ */
private static function ${1:name}(${2:$param})
{
- ${VISUAL}${3:return null;}
+ ${VISUAL}${5:return null;}
}
$0
endsnippet
@@ -217,10 +253,25 @@ endsnippet
snippet class "Class declaration template" b
/**
- * Class ${1:`!p snip.rv=snip.fn.split('.')[0]`}
+ * Class ${2:`!p snip.rv=snip.fn.split('.')[0]`}
+ * @author ${3:`!v g:snips_author`}
+ */
+$1class $2
+{
+ public function ${4:__construct}(${5:$options})
+ {
+ ${6:// code}
+ }
+}
+$0
+endsnippet
+
+snippet interface "interface declaration template" b
+/**
+ * Interface ${1:`!p snip.rv=snip.fn.split('.')[0]`}
* @author ${2:`!v g:snips_author`}
*/
-class $1
+interface $1
{
public function ${3:__construct}(${4:$options})
{
@@ -240,8 +291,8 @@ public function __construct(${1:$dependencies})
$0
endsnippet
-snippet pr "Dumb debug helper in HTML"
-echo '' . var_export($1, 1) . '
';$0
+snippet ve "Dumb debug helper in HTML"
+ echo '' . var_export($1, 1) . '
';$0
endsnippet
snippet pc "Dumb debug helper in cli"
@@ -261,4 +312,10 @@ public function $1Action($2)
}
endsnippet
+snippet inheritdoc "@inheritdoc docblock"
+/**
+ * {@inheritdoc}
+ */
+endsnippet
+
# :vim:ft=snippets:
diff --git a/sources_non_forked/vim-snippets/UltiSnips/python.snippets b/sources_non_forked/vim-snippets/UltiSnips/python.snippets
index 233ad332..41a3645f 100644
--- a/sources_non_forked/vim-snippets/UltiSnips/python.snippets
+++ b/sources_non_forked/vim-snippets/UltiSnips/python.snippets
@@ -84,22 +84,22 @@ def get_style(snip):
def format_arg(arg, style):
if style == DOXYGEN:
- return "@param %s @todo" % arg
+ return "@param %s TODO" % arg
elif style == SPHINX:
- return ":param %s: @todo" % arg
+ return ":param %s: TODO" % arg
elif style == NORMAL:
- return ":%s: @todo" % arg
+ return ":%s: TODO" % arg
elif style == GOOGLE:
- return "%s (@todo): @todo" % arg
+ return "%s (TODO): TODO" % arg
def format_return(style):
if style == DOXYGEN:
- return "@return: @todo"
+ return "@return: TODO"
elif style in (NORMAL, SPHINX):
- return ":returns: @todo"
+ return ":returns: TODO"
elif style == GOOGLE:
- return "Returns: @todo"
+ return "Returns: TODO"
def write_docstring_args(args, snip):
@@ -157,6 +157,26 @@ def write_slots_args(args, snip):
args = ['"_%s"' % arg for arg in args]
snip += '__slots__ = (%s,)' % ', '.join(args)
+
+def write_function_docstring(t, snip):
+ """
+ Writes a function docstring with the current style.
+
+ :param t: The values of the placeholders
+ :param snip: UltiSnips.TextObjects.SnippetUtil object instance
+ """
+ snip.rv = ""
+ snip >> 1
+
+ args = get_args(t[2])
+ if args:
+ write_docstring_args(args, snip)
+
+ style = get_style(snip)
+ snip += format_return(style)
+ snip.rv += '\n' + snip.mkline('', indent='')
+ snip += triple_quotes(snip)
+
endglobal
########################################
@@ -169,7 +189,7 @@ class ${1:MyClass}(${2:object}):
`!p snip.rv = triple_quotes(snip)`${3:Docstring for $1. }`!p snip.rv = triple_quotes(snip)`
def __init__(self$4):
- `!p snip.rv = triple_quotes(snip)`${5:@todo: to be defined1.}`!p
+ `!p snip.rv = triple_quotes(snip)`${5:TODO: to be defined1.}`!p
snip.rv = ""
snip >> 2
@@ -197,7 +217,7 @@ write_slots_args(args, snip)
`
def __init__(self$4):
- `!p snip.rv = triple_quotes(snip)`${5:@todo: to be defined.}`!p
+ `!p snip.rv = triple_quotes(snip)`${5:TODO: to be defined.}`!p
snip.rv = ""
snip >> 2
@@ -399,18 +419,28 @@ snippet def "function with docstrings" b
def ${1:function}(`!p
if snip.indent:
snip.rv = 'self' + (", " if len(t[2]) else "")`${2:arg1}):
- `!p snip.rv = triple_quotes(snip)`${4:@todo: Docstring for $1.}`!p
-snip.rv = ""
-snip >> 1
+ `!p snip.rv = triple_quotes(snip)`${4:TODO: Docstring for $1.}`!p
+write_function_docstring(t, snip) `
+ ${0:pass}
+endsnippet
-args = get_args(t[2])
-if args:
- write_docstring_args(args, snip)
-style = get_style(snip)
-snip += format_return(style)
-snip.rv += '\n' + snip.mkline('', indent='')
-snip += triple_quotes(snip) `
+snippet defc "class method with docstrings" b
+@classmethod
+def ${1:function}(`!p
+if snip.indent:
+ snip.rv = 'cls' + (", " if len(t[2]) else "")`${2:arg1}):
+ `!p snip.rv = triple_quotes(snip)`${4:TODO: Docstring for $1.}`!p
+write_function_docstring(t, snip) `
+ ${0:pass}
+endsnippet
+
+
+snippet defs "static method with docstrings" b
+@staticmethod
+def ${1:function}(${2:arg1}):
+ `!p snip.rv = triple_quotes(snip)`${4:TODO: Docstring for $1.}`!p
+write_function_docstring(t, snip) `
${0:pass}
endsnippet
@@ -437,7 +467,7 @@ endsnippet
snippet rwprop "Read write property" b
def ${1:name}():
`!p snip.rv = triple_quotes(snip) if t[2] else ''
-`${2:@todo: Docstring for $1.}`!p
+`${2:TODO: Docstring for $1.}`!p
if t[2]:
snip >> 1
diff --git a/sources_non_forked/vim-snippets/UltiSnips/rust.snippets b/sources_non_forked/vim-snippets/UltiSnips/rust.snippets
index d7f0047c..82a1abb8 100644
--- a/sources_non_forked/vim-snippets/UltiSnips/rust.snippets
+++ b/sources_non_forked/vim-snippets/UltiSnips/rust.snippets
@@ -73,7 +73,7 @@ endsnippet
snippet ecl "...extern crate log;" b
#![feature(phase)]
-#[phase(syntax, link)] extern crate log;
+#[phase(plugin, link)] extern crate log;
endsnippet
snippet mod "A module" b
@@ -83,16 +83,16 @@ mod ${1:`!p snip.rv = snip.basename.lower() or "name"`} {
endsnippet
snippet crate "Create header information" b
-// Crate ID
-#![crate_id = "${1:crate_name}#${2:0.0.1}"]
+// Crate name
+#![crate_name = "${1:crate_name}"]
// Additional metadata attributes
-#![desc = "${3:Descrption.}"]
-#![license = "${4:BSD}"]
-#![comment = "${5:Comment.}"]
+#![desc = "${2:Descrption.}"]
+#![license = "${3:BSD}"]
+#![comment = "${4:Comment.}"]
// Specify the output type
-#![crate_type = "${6:lib}"]
+#![crate_type = "${5:lib}"]
endsnippet
snippet allow "#[allow(..)]" b
diff --git a/sources_non_forked/vim-snippets/UltiSnips/scss.snippets b/sources_non_forked/vim-snippets/UltiSnips/scss.snippets
index 70a44a07..cab17c14 100644
--- a/sources_non_forked/vim-snippets/UltiSnips/scss.snippets
+++ b/sources_non_forked/vim-snippets/UltiSnips/scss.snippets
@@ -1,54 +1,56 @@
+extends css
+
priority -50
-snippet /@?imp/ "@import '...';" br
+snippet imp "@import '...';" b
@import '${1:file}';
endsnippet
-snippet /@?inc/ "@include mixin(...);" br
-@include ${1:mixin}(${2:arguments});
+snippet inc "@include mixin(...);" b
+@include ${1:mixin}(${2});
endsnippet
-snippet /@?ext?/ "@extend %placeholder;" br
-@extend %${1:placeholder};
+snippet ext "@extend %placeholder;" b
+@extend %${1:%placeholder};
endsnippet
-snippet /@?mixin/ "@mixin (...) { ... }" br
-@mixin ${1:name}(${2:arguments}) {
+snippet mixin "@mixin (...) { ... }" b
+@mixin ${1:name}(${2}) {
${VISUAL}$0
}
endsnippet
-snippet /@?fun/ "@function (...) { ... }" br
-@function ${1:name}(${2:arguments}) {
+snippet fun "@function (...) { ... }" b
+@function ${1:name}(${2}) {
${VISUAL}$0
}
endsnippet
-snippet /@?if/ "@if (...) { ... }" br
+snippet if "@if (...) { ... }" b
@if ${1:condition} {
${VISUAL}$0
}
endsnippet
-snippet /(} )?@?else/ "@else { ... }" br
+snippet else "@else { ... }" b
@else ${1:condition} {
${VISUAL}$0
}
endsnippet
-snippet /@?for/ "@for loop" br
+snippet for "@for loop" b
@for ${1:$i} from ${2:1} through ${3:3} {
${VISUAL}$0
}
endsnippet
-snippet /@?each/ "@each loop" br
+snippet each "@each loop" b
@each ${1:$item} in ${2:item, item, item} {
${VISUAL}$0
}
endsnippet
-snippet /@?while/ "@while loop" br
+snippet while "@while loop" b
@while ${1:$i} ${2:>} ${3:0} {
${VISUAL}$0
}
diff --git a/sources_non_forked/vim-snippets/UltiSnips/tex.snippets b/sources_non_forked/vim-snippets/UltiSnips/tex.snippets
index ede9090d..406948c4 100644
--- a/sources_non_forked/vim-snippets/UltiSnips/tex.snippets
+++ b/sources_non_forked/vim-snippets/UltiSnips/tex.snippets
@@ -15,7 +15,7 @@ $0${2/((?<=.)c|l|r)|./(?1: & )/g}
endsnippet
snippet fig "Figure environment" b
-\begin{figure}${2:[htpb]}
+\begin{figure}[${2:htpb}]
\centering
\includegraphics[width=${3:0.8}\linewidth]{${4:name.ext}}
\caption{${4/(\w+)\.\w+/\u$1/}$0}
diff --git a/sources_non_forked/vim-snippets/snippets/ada.snippets b/sources_non_forked/vim-snippets/snippets/ada.snippets
new file mode 100644
index 00000000..ce377b99
--- /dev/null
+++ b/sources_non_forked/vim-snippets/snippets/ada.snippets
@@ -0,0 +1,255 @@
+snippet wi with
+ with ${1};${0}
+
+snippet pac package
+ package ${1} is
+ ${0}
+ end $1;
+
+snippet pacb package body
+ package body ${1} is
+ ${0}
+ end $1;
+
+snippet ent entry ... when
+ entry ${1}(${2}) when ${3} is
+ begin
+ ${0}
+ end $1;
+
+snippet task task
+ task ${1} is
+ entry ${0}
+ end $1;
+
+snippet taskb task body
+ task body ${1} is
+ ${2}
+ begin
+ ${0}
+ end $1;
+
+snippet acc accept
+ accept ${1}(${2}) do
+ ${0}
+ end $1;
+
+snippet prot protected type
+ protected type ${1}(${2}) is
+ ${0}
+ end $1;
+
+snippet prob protected body
+ protected body ${1} is
+ ${2}
+ begin
+ ${0}
+ end $1;
+
+snippet gen generic type
+ generic
+ type ${1} is ${2};${0}
+
+snippet ty type
+ type ${1} is ${2};${0}
+
+snippet tyd type with default value
+ type ${1} is ${2}
+ with Default_Value => ${3};${0}
+
+snippet subty subtype
+ subtype ${1} is ${2};${0}
+
+snippet dec declare block
+ declare
+ ${1}
+ begin
+ ${0}
+ end;
+
+snippet decn declare named block
+ ${1}:
+ declare
+ ${2}
+ begin
+ ${0}
+ end $1;
+
+snippet ifex if expression
+ if ${1} then ${2} else ${0}
+
+snippet casex case expression
+ case ${1} is
+ when ${2} => ${3},${0}
+
+snippet fora for all
+ for all ${1} ${2:in} ${3} => ${0}
+
+snippet fors for some
+ for some ${1} ${2:in} ${3} => ${0}
+
+snippet if if
+ if ${1} then
+ ${0}
+ end if;
+
+snippet ife if ... else
+ if ${1} then
+ ${2}
+ else
+ ${0}
+ end if;
+
+snippet el else
+ else
+ ${0}
+
+snippet eif elsif
+ elsif ${1} then
+ ${0}
+
+snippet wh while
+ while ${1} loop
+ ${0}
+ end loop;
+
+snippet nwh named while
+ ${1}:
+ while ${2} loop
+ ${0}
+ end loop $1;
+
+snippet for for
+ for ${1:I} in ${2} loop
+ ${0}
+ end loop;
+
+snippet fore for each
+ for ${1} of ${2} loop
+ ${0}
+ end loop;
+
+snippet nfor named for
+ ${1}:
+ for ${2:I} in ${3} loop
+ ${0}
+ end loop $1;
+
+snippet nfore named for each
+ ${1}:
+ for ${2} of ${3} loop
+ ${0}
+ end loop $1;
+
+snippet proc procedure
+ procedure ${1}(${2}) is
+ ${3}
+ begin
+ ${0}
+ end $1;
+
+snippet procd procedure declaration
+ procedure ${1};${0}
+
+snippet fun function
+ function ${1}(${2}) return ${3} is
+ ${4}
+ begin
+ ${0}
+ end $1;
+
+snippet fune expression function
+ function ${1} return ${2} is
+ (${3});${0}
+
+snippet fund function declaration
+ function ${1} return ${2};${0}
+
+snippet ret extended return
+ return ${1} do
+ ${0}
+ end return;
+
+snippet rec record
+ record
+ ${0}
+ end record;
+
+snippet case case
+ case ${1} is
+ when ${2} => ${3};${0}
+ end case;
+
+snippet whe when
+ when ${1} => ${2};${0}
+
+snippet wheo when others
+ when others => ${1};${0}
+
+snippet lo loop
+ loop
+ ${0}
+ end loop;
+
+snippet nlo named loop
+ ${1}:
+ loop
+ ${0}
+ end loop $1;
+
+snippet ex exit when
+ exit when ${1};${0}
+
+snippet put Ada.Text_IO.Put
+ Ada.Text_IO.Put(${1});${0}
+
+snippet putl Ada.Text_IO.Put_Line
+ Ada.Text_IO.Put_Line(${1});${0}
+
+snippet get Ada.Text_IO.Get
+ Ada.Text_IO.Get(${1});${0}
+
+snippet getl Ada.Text_IO.Get_Line
+ Ada.Text_IO.Get_Line(${1});${0}
+
+snippet newline Ada.Text_IO.New_Line
+ Ada.Text_IO.New_Line(${1:1});${0}
+
+snippet gpl GPL license header
+ -- This program is free software; you can redistribute it and/or modify
+ -- it under the terms of the GNU ${1}General Public License as published by
+ -- the Free Software Foundation; either version ${2:3} of the License, or
+ -- (at your option) any later version.
+ --
+ -- This program is distributed in the hope that it will be useful,
+ -- but WITHOUT ANY WARRANTY; without even the implied warranty of
+ -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ -- GNU $1General Public License for more details.
+ --
+ -- You should have received a copy of the GNU $1General Public License
+ -- along with this program; if not, see .
+ --
+ -- Copyright (C) ${3:Author}, ${4:`strftime("%Y")`}
+
+ ${0}
+
+snippet gplf GPL file license header
+ -- This file is part of ${1:Program-Name}.
+ --
+ -- $1 is free software: you can redistribute it and/or modify
+ -- it under the terms of the GNU ${2}General Public License as published by
+ -- the Free Software Foundation, either version ${3:3} of the License, or
+ -- (at your option) any later version.
+ --
+ -- $1 is distributed in the hope that it will be useful,
+ -- but WITHOUT ANY WARRANTY; without even the implied warranty of
+ -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ -- GNU $2General Public License for more details.
+ --
+ -- You should have received a copy of the GNU $2General Public License
+ -- along with $1. If not, see .
+ --
+ -- Copyright (C) ${4:Author}, ${5:`strftime("%Y")`}
+
+ ${0}
+
diff --git a/sources_non_forked/vim-snippets/snippets/coffee/requirejs_coffee.snippets b/sources_non_forked/vim-snippets/snippets/coffee/requirejs_coffee.snippets
new file mode 100644
index 00000000..6dfe1796
--- /dev/null
+++ b/sources_non_forked/vim-snippets/snippets/coffee/requirejs_coffee.snippets
@@ -0,0 +1,11 @@
+snippet def
+ define ["${1:#dependencies1}"], (${2:#dependencies2}) ->
+ ${0:TARGET}
+
+snippet defn
+ define "${1:#name}", ["${2:#dependencies1}"], (${3:#dependencies2}) ->
+ ${0:TARGET}
+
+snippet reqjs
+ require ["${1:#dependencies1}"], (${2:#dependencies2}) ->
+ ${0:TARGET}
diff --git a/sources_non_forked/vim-snippets/snippets/d.snippets b/sources_non_forked/vim-snippets/snippets/d.snippets
new file mode 100644
index 00000000..216a4d89
--- /dev/null
+++ b/sources_non_forked/vim-snippets/snippets/d.snippets
@@ -0,0 +1,338 @@
+### 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}
+ } catch(${2:Exception} ${3:e}) {
+ ${4}
+ }
+snippet tcf
+ try {
+ ${0}
+ } catch(${1:Exception} ${2:e}) {
+ ${3}
+ } finally {
+ ${4}
+ }
+snippet wh
+ while(${1:cond}) {
+ ${0}
+ }
+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/sources_non_forked/vim-snippets/snippets/eruby.snippets b/sources_non_forked/vim-snippets/snippets/eruby.snippets
index bc13fcbb..1b206e3d 100644
--- a/sources_non_forked/vim-snippets/snippets/eruby.snippets
+++ b/sources_non_forked/vim-snippets/snippets/eruby.snippets
@@ -127,3 +127,5 @@ snippet ife
<% else %>
${0}
<% end %>
+snippet pry
+ <% require 'pry'; binding.pry %>
diff --git a/sources_non_forked/vim-snippets/snippets/html.snippets b/sources_non_forked/vim-snippets/snippets/html.snippets
index 3642bbca..5fb4aa92 100644
--- a/sources_non_forked/vim-snippets/snippets/html.snippets
+++ b/sources_non_forked/vim-snippets/snippets/html.snippets
@@ -330,7 +330,7 @@ snippet dt+
snippet em
${0}
snippet embed
-
snippet fieldset