1
0
mirror of https://github.com/amix/vimrc synced 2025-06-16 01:25:00 +08:00

Updated plugins

This commit is contained in:
amix
2014-09-27 16:32:18 +01:00
parent 2a9908e4f0
commit 89c36a0d2c
97 changed files with 3635 additions and 1655 deletions

View File

@ -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

View File

@ -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 <http://www.gnu.org/licenses/>.
--
-- 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 <http://www.gnu.org/licenses/>.
--
-- Copyright (C) ${4:Author}, ${5:`!p snip.rv = get_year()`}
$0
endsnippet
# vim:ft=snippets:

View File

@ -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:

View File

@ -77,7 +77,6 @@ else:
${VISUAL}${0}
#endif /* end of include guard: $1 */
endsnippet
snippet td "Typedef"

View File

@ -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:

View File

@ -253,6 +253,10 @@ snippet td "table cell" w
<td>$0</td>
endsnippet
snippet th "table header" w
<th>$0</th>
endsnippet
snippet tr "table row" w
<tr>$0</tr>
endsnippet

View File

@ -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();}
}

View File

@ -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

View File

@ -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

View File

@ -129,4 +129,11 @@ while ($1) {
endsnippet
snippet until "until"
until ($1) {
${2:# body...}
}
endsnippet
# vim:ft=snippets:

View File

@ -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
@ -240,8 +246,8 @@ public function __construct(${1:$dependencies})
$0
endsnippet
snippet pr "Dumb debug helper in HTML"
echo '<pre>' . var_export($1, 1) . '</pre>';$0
snippet ve "Dumb debug helper in HTML"
echo '<pre>' . var_export($1, 1) . '</pre>';$0
endsnippet
snippet pc "Dumb debug helper in cli"

View File

@ -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):
@ -169,7 +169,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 +197,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,7 +399,7 @@ 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
`!p snip.rv = triple_quotes(snip)`${4:TODO: Docstring for $1.}`!p
snip.rv = ""
snip >> 1
@ -437,7 +437,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

View File

@ -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

View File

@ -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
snippet inc "@include mixin(...);" b
@include ${1:mixin}(${2:arguments});
endsnippet
snippet /@?ext?/ "@extend %placeholder;" br
snippet ext "@extend %placeholder;" b
@extend %${1:placeholder};
endsnippet
snippet /@?mixin/ "@mixin (...) { ... }" br
snippet mixin "@mixin (...) { ... }" b
@mixin ${1:name}(${2:arguments}) {
${VISUAL}$0
}
endsnippet
snippet /@?fun/ "@function (...) { ... }" br
snippet fun "@function (...) { ... }" b
@function ${1:name}(${2:arguments}) {
${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
}

View File

@ -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 <http://www.gnu.org/licenses/>.
--
-- 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 <http://www.gnu.org/licenses/>.
--
-- Copyright (C) ${4:Author}, ${5:`strftime("%Y")`}
${0}

View File

@ -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}

View File

@ -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.

View File

@ -330,7 +330,7 @@ snippet dt+
snippet em
<em>${0}</em>
snippet embed
<embed src=${1} type="${0} />
<embed src="${1}" type="${0}" />
snippet fieldset
<fieldset>
${0}
@ -353,6 +353,14 @@ snippet figcaption
<figcaption>${0}</figcaption>
snippet figure
<figure>${0}</figure>
snippet figure#
<figure id="${1}">
${0}
</figure>
snippet figure.
<figure class="${1}">
${0}
</figure>
snippet footer
<footer>
${0}
@ -454,10 +462,23 @@ snippet html5
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>${1:`substitute(vim_snippets#Filename('', 'Page Title'), '^.', '\u&', '')`}</title>
${2:meta}
${2:link}
</head>
<body>
${0:body}
</body>
</html>
snippet html5l
<!DOCTYPE html>
<html lang="${1:es}">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>${2:`substitute(vim_snippets#Filename('', 'Page Title'), '^.', '\u&', '')`}</title>
${3:link}
</head>
<body>
${0:body}
@ -561,6 +582,8 @@ snippet link
<link rel="${1}" href="${2}" title="${3}" type="${4}" />
snippet link:atom
<link rel="alternate" href="${1:atom.xml}" title="Atom" type="application/atom+xml" />
snippet link:s
<link rel="stylesheet" href="${1:style.css}" />
snippet link:css
<link rel="stylesheet" href="${1:style.css}" type="text/css" media="${2:all}" />
snippet link:favicon
@ -601,6 +624,10 @@ snippet menu:t
</menu>
snippet meta
<meta http-equiv="${1}" content="${2}" />
snippet meta:s
<meta ${0} />
snippet meta:d
<meta name="description" content="${0}" />
snippet meta:compat
<meta http-equiv="X-UA-Compatible" content="IE=${1:7,8,edge}" />
snippet meta:refresh
@ -632,7 +659,7 @@ snippet object
# Embed QT Movie
snippet movie
<object width="$2" height="$3" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab">
codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="$1" />
<param name="controller" value="$4" />
<param name="autoplay" value="$5" />
@ -703,6 +730,12 @@ snippet script
<script type="text/javascript" charset="utf-8">
${0}
</script>
snippet scripts
<script src="${0}.js"></script>
snippet scriptt
<script type="${1}" id="${2}">
${0}
</script>
snippet scriptsrc
<script src="${0}.js" type="text/javascript" charset="utf-8"></script>
snippet section
@ -780,7 +813,7 @@ snippet td+
<td>${1}</td>
td+${0}
snippet textarea
<textarea name="${1}" id=${2:$1} rows="${3:8}" cols="${4:40}">${5}</textarea>
<textarea name="${1}" id="${2:$1}" rows="${3:8}" cols="${4:40}">${5}</textarea>
snippet tfoot
<tfoot>
${0}

View File

@ -40,6 +40,8 @@ snippet j.u
## Class
snippet cl
class ${1:`vim_snippets#Filename("$1", "untitled")`} ${0}
snippet pcl
public class ${1:`vim_snippets#Filename("$1", "untitled")`} ${0}
snippet in
interface ${1:`vim_snippets#Filename("$1", "untitled")`} ${2:extends Parent}
snippet tc

View File

@ -0,0 +1,14 @@
snippet def
define(["${1:#dependencies1}"], function (${2:#dependencies2}) {
return ${0:TARGET};
});
snippet defn
define("${1:#name}", ["${2:#dependencies1}"], function (${3:#dependencies2}) {
return ${0:TARGET};
});
snippet reqjs
require(["${1:#dependencies1}"], function (${2:#dependencies2}) {
return ${0:TARGET};
});

View File

@ -0,0 +1,50 @@
# module exports
snippet ex
module.exports = ${1};
# require
snippet re
var ${1} = require("${2:module_name}");
# EventEmitter
snippet on
on('${1:event_name}', function(${2:stream}) {
${3}
});
snippet emit
emit('${1:event_name}', ${2:args});
snippet once
once('${1:event_name}', function(${2:stream}) {
${3}
});
# http. User js function snippet as handler
snippet http
http.createServer(${1:handler}).listen(${2:port_number});
# net
snippet net
net.createServer(function(${1:socket}){
${1}.on('data', function('data'){
${2}
]});
${1}.on('end', function(){
${3}
});
}).listen(${4:8124});
# Stream snippets
snippet pipe
pipe(${1:stream})${2}
# Express snippets
snippet eget
${1:app}.get('${2:route}', ${3:handler});
snippet epost
${1:app}.post('${2:route}', ${3:handler});
snippet eput
${1:app}.put('${2:route}', ${3:handler});
snippet edel
${1:app}.delete('${2:route}', ${3:handler});
# process snippets
snippet stdin
process.stdin
snippet stdout
process.stdout
snippet stderr
process.stderr

View File

@ -1,22 +1,26 @@
# Prototype
# prototype
snippet proto
${1:class_name}.prototype.${2:method_name} =
function(${3:first_argument}) {
${0:// body...}
${1:class_name}.prototype.${2:method_name} = function(${3}) {
${0}
};
# Function
snippet fun
function ${1:function_name}(${2:argument}) {
${0:// body...}
function ${1:function_name}(${2}) {
${0}
}
# Anonymous Function
snippet f
function (${1}) {
function(${1}) {
${0}
}
# Function assigned to variable
snippet vf
var ${1:function_name} = function $1(${2}) {
${0}
};
# Immediate function
snippet (f
(function (${1}) {
(function(${1}) {
${0}
}(${2}));
# if

View File

@ -349,3 +349,11 @@ snippet debug_trace
require Carp; Carp::confess
};
snippet dump
use Data::Dump qw(dump);
warn dump ${1:variable}
snippet subtest
subtest '${1: test_name}' => sub {
${2}
};

View File

@ -347,6 +347,10 @@ snippet vd
var_dump(${0});
snippet vdd
var_dump(${1}); die(${0:});
snippet pr
print_r(${0});
snippet prs
print_r(${0}, 1);
snippet vdf
error_log(print_r($${1:foo}, true), 3, '${2:/tmp/debug.log}');
snippet http_redirect

View File

@ -109,6 +109,8 @@ snippet dele delegate .. to
delegate :${1:methods}, to: :${0:object}
snippet dele delegate .. to .. prefix .. allow_nil
delegate :${1:methods}, to: :${2:object}, prefix: :${3:prefix}, allow_nil: ${0:allow_nil}
snippet amc
alias_method_chain :${1:method_name}, :${0:feature}
snippet flash
flash[:${1:notice}] = '${0}'
snippet habtm

View File

@ -590,7 +590,11 @@ snippet begin
#debugging
snippet debug
require 'ruby-debug'; debugger; true;
require 'byebug'; byebug
snippet debug19
require 'debugger'; debugger
snippet debug18
require 'ruby-debug'; debugger
snippet pry
require 'pry'; binding.pry
snippet strf

View File

@ -34,20 +34,20 @@ snippet ec
extern crate ${1:sync};
snippet ecl
#![feature(phase)]
#[phase(syntax, link)] extern crate log;
#[phase(plugin, link)] extern crate log;
snippet mod
mod ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} {
${0}
} /* $1 */
snippet crate
// 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}"]
snippet allow
#[allow(${1:unused_variable})]
snippet feat

View File

@ -0,0 +1,993 @@
snippet !
!important
snippet bdi:m+
-moz-border-image url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch}
snippet bdi:m
-moz-border-image ${0}
snippet bdrz:m
-moz-border-radius ${0}
snippet bxsh:m+
-moz-box-shadow ${1:0} ${2:0} ${3:0} ${0}
snippet bxsh:m
-moz-box-shadow ${0}
snippet bdi:w+
-webkit-border-image url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch}
snippet bdi:w
-webkit-border-image ${0}
snippet bdrz:w
-webkit-border-radius ${0}
snippet bxsh:w+
-webkit-box-shadow ${1:0} ${2:0} ${3:0} ${0}
snippet bxsh:w
-webkit-box-shadow ${0}
snippet @f
@font-face ${0}
snippet @i
@import '${0}'
snippet @r
@require '${0}'
snippet @m
@media ${1:screen}
snippet @msmw
@media screen and (min-width: ${0}px)
snippet @ext
@extend .${1}
${0}
snippet bg+
background ${1} url(${2}) ${3:0} ${4:0} ${0:no-repeat}
snippet bga
background-attachment ${0}
snippet bga:f
background-attachment fixed
snippet bga:s
background-attachment scroll
snippet bgbk
background-break ${0}
snippet bgbk:bb
background-break bounding-box
snippet bgbk:c
background-break continuous
snippet bgbk:eb
background-break each-box
snippet bgcp
background-clip ${0}
snippet bgcp:bb
background-clip border-box
snippet bgcp:cb
background-clip content-box
snippet bgcp:nc
background-clip no-clip
snippet bgcp:pb
background-clip padding-box
snippet bgc
background-color ${0}
snippet bgc:t
background-color transparent
snippet bgi
background-image url(${0})
snippet bgi:n
background-image none
snippet bgo
background-origin ${0}
snippet bgo:bb
background-origin border-box
snippet bgo:cb
background-origin content-box
snippet bgo:pb
background-origin padding-box
snippet bgpx
background-position-x ${0}
snippet bgpy
background-position-y ${0}
snippet bgp
background-position ${1:0} ${0:0}
snippet bgr
background-repeat ${0}
snippet bgr:n
background-repeat no-repeat
snippet bgr:x
background-repeat repeat-x
snippet bgr:y
background-repeat repeat-y
snippet bgr:r
background-repeat repeat
snippet bgz
background-size ${0}
snippet bgz:a
background-size auto
snippet bgz:ct
background-size contain
snippet bgz:cv
background-size cover
snippet bg
background ${0}
snippet bg:ie
filter progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1}',sizingMethod='${0:crop}')
snippet bg:n
background none
snippet bd+
border ${1:1px} ${2:solid} ${0}
snippet bdb+
border-bottom ${1:1px} ${2:solid} ${0}
snippet bdbc
border-bottom-color ${0}
snippet bdbi
border-bottom-image url(${0})
snippet bdbi:n
border-bottom-image none
snippet bdbli
border-bottom-left-image url(${0})
snippet bdbli:c
border-bottom-left-image continue
snippet bdbli:n
border-bottom-left-image none
snippet bdblrz
border-bottom-left-radius ${0}
snippet bdbri
border-bottom-right-image url(${0})
snippet bdbri:c
border-bottom-right-image continue
snippet bdbri:n
border-bottom-right-image none
snippet bdbrrz
border-bottom-right-radius ${0}
snippet bdbs
border-bottom-style ${0}
snippet bdbs:n
border-bottom-style none
snippet bdbw
border-bottom-width ${0}
snippet bdb
border-bottom ${0}
snippet bdb:n
border-bottom none
snippet bdbk
border-break ${0}
snippet bdbk:c
border-break close
snippet bdcl
border-collapse ${0}
snippet bdcl:c
border-collapse collapse
snippet bdcl:s
border-collapse separate
snippet bdc
border-color ${0}
snippet bdci
border-corner-image url(${0})
snippet bdci:c
border-corner-image continue
snippet bdci:n
border-corner-image none
snippet bdf
border-fit ${0}
snippet bdf:c
border-fit clip
snippet bdf:of
border-fit overwrite
snippet bdf:ow
border-fit overwrite
snippet bdf:r
border-fit repeat
snippet bdf:sc
border-fit scale
snippet bdf:sp
border-fit space
snippet bdf:st
border-fit stretch
snippet bdi
border-image url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch}
snippet bdi:n
border-image none
snippet bdl+
border-left ${1:1px} ${2:solid} ${0}
snippet bdlc
border-left-color ${0}
snippet bdli
border-left-image url(${0})
snippet bdli:n
border-left-image none
snippet bdls
border-left-style ${0}
snippet bdls:n
border-left-style none
snippet bdlw
border-left-width ${0}
snippet bdl
border-left ${0}
snippet bdl:n
border-left none
snippet bdlt
border-length ${0}
snippet bdlt:a
border-length auto
snippet bdrz
border-radius ${0}
snippet bdr+
border-right ${1:1px} ${2:solid} ${0}
snippet bdrc
border-right-color ${0}
snippet bdri
border-right-image url(${0})
snippet bdri:n
border-right-image none
snippet bdrs
border-right-style ${0}
snippet bdrs:n
border-right-style none
snippet bdrw
border-right-width ${0}
snippet bdr
border-right ${0}
snippet bdr:n
border-right none
snippet bdsp
border-spacing ${0}
snippet bds
border-style ${0}
snippet bds:ds
border-style dashed
snippet bds:dtds
border-style dot-dash
snippet bds:dtdtds
border-style dot-dot-dash
snippet bds:dt
border-style dotted
snippet bds:db
border-style double
snippet bds:g
border-style groove
snippet bds:h
border-style hidden
snippet bds:i
border-style inset
snippet bds:n
border-style none
snippet bds:o
border-style outset
snippet bds:r
border-style ridge
snippet bds:s
border-style solid
snippet bds:w
border-style wave
snippet bdt+
border-top ${1:1px} ${2:solid} ${0}
snippet bdtc
border-top-color ${0}
snippet bdti
border-top-image url(${0})
snippet bdti:n
border-top-image none
snippet bdtli
border-top-left-image url(${0})
snippet bdtli:c
border-corner-image continue
snippet bdtli:n
border-corner-image none
snippet bdtlrz
border-top-left-radius ${0}
snippet bdtri
border-top-right-image url(${0})
snippet bdtri:c
border-top-right-image continue
snippet bdtri:n
border-top-right-image none
snippet bdtrrz
border-top-right-radius ${0}
snippet bdts
border-top-style ${0}
snippet bdts:n
border-top-style none
snippet bdtw
border-top-width ${0}
snippet bdt
border-top ${0}
snippet bdt:n
border-top none
snippet bdw
border-width ${0}
snippet bd
border ${0}
snippet bd:n
border none
snippet b
bottom ${0}
snippet b:a
bottom auto
snippet bxsh+
box-shadow ${1:0} ${2:0} ${3:0} ${0}
snippet bxsh
box-shadow ${0}
snippet bxsh:n
box-shadow none
snippet bxz
box-sizing ${0}
snippet bxz:bb
box-sizing border-box
snippet bxz:cb
box-sizing content-box
snippet cps
caption-side ${0}
snippet cps:b
caption-side bottom
snippet cps:t
caption-side top
snippet cl
clear ${0}
snippet cl:b
clear both
snippet cl:l
clear left
snippet cl:n
clear none
snippet cl:r
clear right
snippet cp
clip ${0}
snippet cp:a
clip auto
snippet cp:r
clip rect(${1:0} ${2:0} ${3:0} ${0:0})
snippet c
color ${0}
snippet ct
content ${0}
snippet ct:a
content attr(${0})
snippet ct:cq
content close-quote
snippet ct:c
content counter(${0})
snippet ct:cs
content counters(${0})
snippet ct:ncq
content no-close-quote
snippet ct:noq
content no-open-quote
snippet ct:n
content normal
snippet ct:oq
content open-quote
snippet coi
counter-increment ${0}
snippet cor
counter-reset ${0}
snippet cur
cursor ${0}
snippet cur:a
cursor auto
snippet cur:c
cursor crosshair
snippet cur:d
cursor default
snippet cur:ha
cursor hand
snippet cur:he
cursor help
snippet cur:m
cursor move
snippet cur:p
cursor pointer
snippet cur:t
cursor text
snippet d
display ${0}
snippet d:mib
display -moz-inline-box
snippet d:mis
display -moz-inline-stack
snippet d:b
display block
snippet d:cp
display compact
snippet d:ib
display inline-block
snippet d:itb
display inline-table
snippet d:i
display inline
snippet d:li
display list-item
snippet d:n
display none
snippet d:ri
display run-in
snippet d:tbcp
display table-caption
snippet d:tbc
display table-cell
snippet d:tbclg
display table-column-group
snippet d:tbcl
display table-column
snippet d:tbfg
display table-footer-group
snippet d:tbhg
display table-header-group
snippet d:tbrg
display table-row-group
snippet d:tbr
display table-row
snippet d:tb
display table
snippet ec
empty-cells ${0}
snippet ec:h
empty-cells hide
snippet ec:s
empty-cells show
snippet exp
expression()
snippet fl
float ${0}
snippet fl:l
float left
snippet fl:n
float none
snippet fl:r
float right
snippet f+
font ${1:1em} ${2:Arial},${0:sans-serif}
snippet fef
font-effect ${0}
snippet fef:eb
font-effect emboss
snippet fef:eg
font-effect engrave
snippet fef:n
font-effect none
snippet fef:o
font-effect outline
snippet femp
font-emphasize-position ${0}
snippet femp:a
font-emphasize-position after
snippet femp:b
font-emphasize-position before
snippet fems
font-emphasize-style ${0}
snippet fems:ac
font-emphasize-style accent
snippet fems:c
font-emphasize-style circle
snippet fems:ds
font-emphasize-style disc
snippet fems:dt
font-emphasize-style dot
snippet fems:n
font-emphasize-style none
snippet fem
font-emphasize ${0}
snippet ff
font-family ${0}
snippet ff:c
font-family ${0:'Monotype Corsiva','Comic Sans MS'},cursive
snippet ff:f
font-family ${0:Capitals,Impact},fantasy
snippet ff:m
font-family ${0:Monaco,'Courier New'},monospace
snippet ff:ss
font-family ${0:Helvetica,Arial},sans-serif
snippet ff:s
font-family ${0:Georgia,'Times New Roman'},serif
snippet fza
font-size-adjust ${0}
snippet fza:n
font-size-adjust none
snippet fz
font-size ${0}
snippet fsm
font-smooth ${0}
snippet fsm:aw
font-smooth always
snippet fsm:a
font-smooth auto
snippet fsm:n
font-smooth never
snippet fst
font-stretch ${0}
snippet fst:c
font-stretch condensed
snippet fst:e
font-stretch expanded
snippet fst:ec
font-stretch extra-condensed
snippet fst:ee
font-stretch extra-expanded
snippet fst:n
font-stretch normal
snippet fst:sc
font-stretch semi-condensed
snippet fst:se
font-stretch semi-expanded
snippet fst:uc
font-stretch ultra-condensed
snippet fst:ue
font-stretch ultra-expanded
snippet fs
font-style ${0}
snippet fs:i
font-style italic
snippet fs:n
font-style normal
snippet fs:o
font-style oblique
snippet fv
font-variant ${0}
snippet fv:n
font-variant normal
snippet fv:sc
font-variant small-caps
snippet fw
font-weight ${0}
snippet fw:b
font-weight bold
snippet fw:br
font-weight bolder
snippet fw:lr
font-weight lighter
snippet fw:n
font-weight normal
snippet f
font ${0}
snippet h
height ${0}
snippet h:a
height auto
snippet l
left ${0}
snippet l:a
left auto
snippet lts
letter-spacing ${0}
snippet lh
line-height ${0}
snippet lisi
list-style-image url(${0})
snippet lisi:n
list-style-image none
snippet lisp
list-style-position ${0}
snippet lisp:i
list-style-position inside
snippet lisp:o
list-style-position outside
snippet list
list-style-type ${0}
snippet list:c
list-style-type circle
snippet list:dclz
list-style-type decimal-leading-zero
snippet list:dc
list-style-type decimal
snippet list:d
list-style-type disc
snippet list:lr
list-style-type lower-roman
snippet list:n
list-style-type none
snippet list:s
list-style-type square
snippet list:ur
list-style-type upper-roman
snippet lis
list-style ${0}
snippet lis:n
list-style none
snippet mb
margin-bottom ${0}
snippet mb:a
margin-bottom auto
snippet ml
margin-left ${0}
snippet ml:a
margin-left auto
snippet mr
margin-right ${0}
snippet mr:a
margin-right auto
snippet mt
margin-top ${0}
snippet mt:a
margin-top auto
snippet m
margin ${0}
snippet m:4
margin ${1:0} ${2:0} ${3:0} ${0:0}
snippet m:3
margin ${1:0} ${2:0} ${0:0}
snippet m:2
margin ${1:0} ${0:0}
snippet m:0
margin 0
snippet m:a
margin auto
snippet mah
max-height ${0}
snippet mah:n
max-height none
snippet maw
max-width ${0}
snippet maw:n
max-width none
snippet mih
min-height ${0}
snippet miw
min-width ${0}
snippet op
opacity ${0}
snippet op:ie
filter progid:DXImageTransform.Microsoft.Alpha(Opacity=${0:100})
snippet op:ms
-ms-filter 'progid:DXImageTransform.Microsoft.Alpha(Opacity=${0:100})'
snippet orp
orphans ${0}
snippet o+
outline ${1:1px} ${2:solid} ${0}
snippet oc
outline-color ${0}
snippet oc:i
outline-color invert
snippet oo
outline-offset ${0}
snippet os
outline-style ${0}
snippet ow
outline-width ${0}
snippet o
outline ${0}
snippet o:n
outline none
snippet ovs
overflow-style ${0}
snippet ovs:a
overflow-style auto
snippet ovs:mq
overflow-style marquee
snippet ovs:mv
overflow-style move
snippet ovs:p
overflow-style panner
snippet ovs:s
overflow-style scrollbar
snippet ovx
overflow-x ${0}
snippet ovx:a
overflow-x auto
snippet ovx:h
overflow-x hidden
snippet ovx:s
overflow-x scroll
snippet ovx:v
overflow-x visible
snippet ovy
overflow-y ${0}
snippet ovy:a
overflow-y auto
snippet ovy:h
overflow-y hidden
snippet ovy:s
overflow-y scroll
snippet ovy:v
overflow-y visible
snippet ov
overflow ${0}
snippet ov:a
overflow auto
snippet ov:h
overflow hidden
snippet ov:s
overflow scroll
snippet ov:v
overflow visible
snippet pb
padding-bottom ${0}
snippet pl
padding-left ${0}
snippet pr
padding-right ${0}
snippet pt
padding-top ${0}
snippet p
padding ${0}
snippet p:4
padding ${1:0} ${2:0} ${3:0} ${0:0}
snippet p:3
padding ${1:0} ${2:0} ${0:0}
snippet p:2
padding ${1:0} ${0:0}
snippet p:0
padding 0
snippet pgba
page-break-after ${0}
snippet pgba:aw
page-break-after always
snippet pgba:a
page-break-after auto
snippet pgba:l
page-break-after left
snippet pgba:r
page-break-after right
snippet pgbb
page-break-before ${0}
snippet pgbb:aw
page-break-before always
snippet pgbb:a
page-break-before auto
snippet pgbb:l
page-break-before left
snippet pgbb:r
page-break-before right
snippet pgbi
page-break-inside ${0}
snippet pgbi:a
page-break-inside auto
snippet pgbi:av
page-break-inside avoid
snippet pos
position ${0}
snippet pos:a
position absolute
snippet pos:f
position fixed
snippet pos:r
position relative
snippet pos:s
position static
snippet q
quotes ${0}
snippet q:en
quotes '\201C' '\201D' '\2018' '\2019'
snippet q:n
quotes none
snippet q:ru
quotes '\00AB' '\00BB' '\201E' '\201C'
snippet rz
resize ${0}
snippet rz:b
resize both
snippet rz:h
resize horizontal
snippet rz:n
resize none
snippet rz:v
resize vertical
snippet r
right ${0}
snippet r:a
right auto
snippet tbl
table-layout ${0}
snippet tbl:a
table-layout auto
snippet tbl:f
table-layout fixed
snippet tal
text-align-last ${0}
snippet tal:a
text-align-last auto
snippet tal:c
text-align-last center
snippet tal:l
text-align-last left
snippet tal:r
text-align-last right
snippet ta
text-align ${0}
snippet ta:c
text-align center
snippet ta:l
text-align left
snippet ta:r
text-align right
snippet td
text-decoration ${0}
snippet td:l
text-decoration line-through
snippet td:n
text-decoration none
snippet td:o
text-decoration overline
snippet td:u
text-decoration underline
snippet te
text-emphasis ${0}
snippet te:ac
text-emphasis accent
snippet te:a
text-emphasis after
snippet te:b
text-emphasis before
snippet te:c
text-emphasis circle
snippet te:ds
text-emphasis disc
snippet te:dt
text-emphasis dot
snippet te:n
text-emphasis none
snippet th
text-height ${0}
snippet th:a
text-height auto
snippet th:f
text-height font-size
snippet th:m
text-height max-size
snippet th:t
text-height text-size
snippet ti
text-indent ${0}
snippet ti:-
text-indent -9999px
snippet tj
text-justify ${0}
snippet tj:a
text-justify auto
snippet tj:d
text-justify distribute
snippet tj:ic
text-justify inter-cluster
snippet tj:ii
text-justify inter-ideograph
snippet tj:iw
text-justify inter-word
snippet tj:k
text-justify kashida
snippet tj:t
text-justify tibetan
snippet to+
text-outline ${1:0} ${2:0} ${0}
snippet to
text-outline ${0}
snippet to:n
text-outline none
snippet tr
text-replace ${0}
snippet tr:n
text-replace none
snippet tsh+
text-shadow ${1:0} ${2:0} ${3:0} ${0}
snippet tsh
text-shadow ${0}
snippet tsh:n
text-shadow none
snippet tt
text-transform ${0}
snippet tt:c
text-transform capitalize
snippet tt:l
text-transform lowercase
snippet tt:n
text-transform none
snippet tt:u
text-transform uppercase
snippet tw
text-wrap ${0}
snippet tw:no
text-wrap none
snippet tw:n
text-wrap normal
snippet tw:s
text-wrap suppress
snippet tw:u
text-wrap unrestricted
snippet t
top ${0}
snippet t:a
top auto
snippet va
vertical-align ${0}
snippet va:bl
vertical-align baseline
snippet va:b
vertical-align bottom
snippet va:m
vertical-align middle
snippet va:sub
vertical-align sub
snippet va:sup
vertical-align super
snippet va:tb
vertical-align text-bottom
snippet va:tt
vertical-align text-top
snippet va:t
vertical-align top
snippet v
visibility ${0}
snippet v:c
visibility collapse
snippet v:h
visibility hidden
snippet v:v
visibility visible
snippet whsc
white-space-collapse ${0}
snippet whsc:ba
white-space-collapse break-all
snippet whsc:bs
white-space-collapse break-strict
snippet whsc:k
white-space-collapse keep-all
snippet whsc:l
white-space-collapse loose
snippet whsc:n
white-space-collapse normal
snippet whs
white-space ${0}
snippet whs:n
white-space normal
snippet whs:nw
white-space nowrap
snippet whs:pl
white-space pre-line
snippet whs:pw
white-space pre-wrap
snippet whs:p
white-space pre
snippet wid
widows ${0}
snippet w
width ${0}
snippet w:a
width auto
snippet wob
word-break ${0}
snippet wob:ba
word-break break-all
snippet wob:bs
word-break break-strict
snippet wob:k
word-break keep-all
snippet wob:l
word-break loose
snippet wob:n
word-break normal
snippet wos
word-spacing ${0}
snippet wow
word-wrap ${0}
snippet wow:no
word-wrap none
snippet wow:n
word-wrap normal
snippet wow:s
word-wrap suppress
snippet wow:u
word-wrap unrestricted
snippet z
z-index ${0}
snippet z:a
z-index auto
snippet zoo
zoom 1
snippet :h
:hover
snippet :fc
:first-child
snippet :lc
:last-child
snippet :nc
:nth-child(${0})
snippet :nlc
:nth-last-child(${0})
snippet :oc
:only-child
snippet :a
:after
snippet :b
:before
snippet ::a
::after
snippet ::b
::before
snippet if
if ${0}
snippet mix
${1}(${0})
snippet for
for ${1:i} in ${0}
snippet keyf
@keyframes ${0}

View File

@ -263,3 +263,20 @@ snippet col2 two-column environment
${0}
\end{column}
\end{columns}
# Code listings
snippet lst
\begin{listing}[language=${1:language}]
${0}
\end{listing}
snippet lsi
\lstinline|${1}| ${0}
# Hyperlinks
snippet url
\url{${1}} ${0}
snippet href
\href{${1}}{${2}} ${0}
# URL from Clipboard.
snippet urlc
\url{`@+`} ${0}
snippet hrefc
\href{`@+`}{${1}} ${0}

View File

@ -13,14 +13,14 @@ snippet ife
${0:# statements}
fi
snippet eif
elif ${1:condition} ; then
elif ${1:condition}; then
${0:# statements}
snippet for
for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do
${0:# statements}
done
snippet fori
for ${1:needle} in ${2:haystack} ; do
for ${1:needle} in ${2:haystack}; do
${0:#statements}
done
snippet fore
@ -57,6 +57,10 @@ snippet [
snippet always
{ ${1:try} } always { ${0:always} }
snippet fun
function ${1:name} (${2:args}) {
${0:# body}
${1:function_name}() {
${0:# function_body}
}
snippet ffun
function ${1:function_name}() {
${0:# function_body}
}