1
0
mirror of https://github.com/amix/vimrc synced 2025-07-04 06:44:59 +08:00

Merge branch 'pr/2'

This commit is contained in:
geezuslucifer@gmail.com
2020-03-20 10:10:45 -05:00
1315 changed files with 30338 additions and 18193 deletions

View File

@ -36,45 +36,71 @@ snippet @m "@media mediatype { }"
${2:${VISUAL}}
}${0}
snippet ac
align-content: ${0:stretch};
align-content: ${1:stretch};
snippet ac:s
align-content: start;
snippet ac:e
align-content: end;
snippet ac:c
align-content: center;
snippet ac:fe
align-content: flex-end;
snippet ac:fs
align-content: flex-start;
snippet ac:sa
align-content: space-around;
snippet ac:fe
align-content: flex-end;
snippet ac:sb
align-content: space-between;
snippet ac:s
snippet ac:sa
align-content: space-around;
snippet ac:se
align-content: space-evenly;
snippet ac:st
align-content: stretch;
snippet ac:b
align-content: baseline;
snippet ac:fb
align-content: first baseline;
snippet ac:lb
align-content: last baseline;
snippet ai
align-items: ${0:stretch};
snippet ai:b
align-items: baseline;
align-items: ${1:stretch};
snippet ai:s
align-items: start;
snippet ai:e
align-items: end;
snippet ai:c
align-items: center;
snippet ai:fe
align-items: flex-end;
snippet ai:fs
align-items: flex-start;
snippet ai:s
snippet ai:fe
align-items: flex-end;
snippet ai:st
align-items: stretch;
snippet ai:b
align-items: baseline;
snippet ai:fb
align-items: first baseline;
snippet ai:lb
align-items: last baseline;
snippet as
align-self: ${0};
snippet as:a
align-self: auto;
snippet as:b
align-self: baseline;
align-self: ${1:stretch};
snippet as:s
align-self: start;
snippet as:e
align-self: end;
snippet as:c
align-self: center;
snippet as:fe
align-self: flex-end;
snippet as:st
align-self: stretch;
snippet as:fs
align-self: flex-start;
snippet as:s
align-self: stretch;
snippet as:fe
align-self: flex-end;
snippet as:b
align-self: baseline;
snippet as:fb
align-self: first baseline;
snippet as:lb
align-self: last baseline;
snippet bg+
background: #${1:fff} url(${2}) ${3:0} ${4:0} ${5:no-repeat};${0}
snippet bga
@ -423,6 +449,8 @@ snippet d:b
display: block;
snippet d:cp
display: compact;
snippet d:g
display: grid;
snippet d:f
display: flex;
snippet d:ib
@ -605,24 +633,122 @@ snippet fw:n
font-weight: normal;
snippet f
font: ${1};${0}
snippet g
grid: ${1};
snippet gaf
grid-auto-flow: ${1:row};
snippet gaf+
grid-auto-flow: ${1:row} ${2:dense};
snippet gaf:r
grid-auto-flow: row;
snippet gaf:c
grid-auto-flow: column;
snippet gaf:d
grid-auto-flow: dense;
snippet gaf:rd
grid-auto-flow: row dense;
snippet gaf:cd
grid-auto-flow: column dense;
snippet gar
grid-auto-rows: ${1};
snippet gar:a
grid-auto-rows: auto
snippet gar:mac
grid-auto-rows: max-content;
snippet gar:mic
grid-auto-rows: min-content;
snippet gac
grid-auto-columns: ${1};
snippet gac:a
grid-auto-columns: auto
snippet gac:mac
grid-auto-columns: max-content;
snippet gac:mic
grid-auto-columns: min-content;
snippet gt
grid-template: ${1};
snippet gt+
grid-template: ${1} / ${2};
snippet gtr
grid-template-rows: ${1};
snippet gtc
grid-template-columns: ${1};
snippet gta
grid-template-areas: ${1};
snippet gg
grid-gap: ${1};
snippet gg+
grid-gap: ${1} ${2};
snippet gg:0
grid-gap: 0;
snippet grg
grid-row-gap: ${1};
snippet grg:0
grid-row-gap: 0;
snippet gcg
grid-column-gap: ${1};
snippet gcg:0
grid-column-gap: 0;
snippet gr
grid-row: ${1} / ${2};
snippet grs
grid-row-start: ${1};
snippet gre
grid-row-end: ${1};
snippet gc
grid-column: ${1} / ${2};
snippet gcs
grid-column-start: ${1};
snippet gce
grid-column-end: ${1};
snippet h
height: ${1};${0}
snippet h:a
height: auto;
snippet jc
justify-content: ${0:flex-start};
justify-content: ${1};
snippet jc:s
justify-content: start;
snippet jc:e
justify-content: end;
snippet jc:c
justify-content: center;
snippet jc:fe
justify-content: flex-end;
snippet jc:fs
justify-content: flex-start;
snippet jc:sa
justify-content: space-around;
snippet jc:fe
justify-content: flex-end;
snippet jc:sb
justify-content: space-between;
snippet jc:sa
justify-content: space-around;
snippet jc:se
justify-content: space-evenly;
snippet jc:st
justify-content: stretch;
snippet jc:l
justify-content: left;
snippet jc:r
justify-content: right;
snippet ji
justify-items: ${1:stretch};
snippet ji:s
justify-items: start;
snippet ji:e
justify-items: end;
snippet ji:c
justify-items: center;
snippet ji:st
justify-items: stretch;
snippet js
justify-self: ${1:stretch};
snippet js:s
justify-self: start;
snippet js:e
justify-self: end;
snippet js:c
justify-self: center;
snippet js:st
justify-self: stretch;
snippet l
left: ${1};${0}
snippet l:a
@ -789,6 +915,28 @@ snippet p:2
padding: ${1:0} ${2:0};${0}
snippet p:0
padding: 0;
snippet pc
place-content: ${1};
snippet pc+
place-content: ${1} ${2};
snippet pc:s
place-content: start;
snippet pc:e
place-content: end;
snippet pc:c
place-content: center;
snippet pc:fs
place-content: flex-start;
snippet pc:fe
place-content: flex-end;
snippet pc:sb
place-content: space-between;
snippet pc:sa
place-content: space-around;
snippet pc:se
place-content: space-evenly;
snippet pc:st
place-content: stretch;
snippet pgba
page-break-after: ${1};${0}
snippet pgba:aw
@ -815,6 +963,17 @@ snippet pgbi:a
page-break-inside: auto;
snippet pgbi:av
page-break-inside: avoid;
snippet pi
place-items: ${1:stretch};
snippet pi+
place-items: ${1:stretch} ${2:stretch};
snippet pi:s
place-items: start;
snippet pi:e
place-items: end;
snippet pi:c
place-items: center;
snippet pi:st
snippet pos
position: ${1};${0}
snippet pos:a
@ -825,6 +984,18 @@ snippet pos:r
position: relative;
snippet pos:s
position: static;
snippet ps
place-self: ${1:stretch};
snippet ps+
place-self: ${1:stretch} ${2:stretch};
snippet ps:s
place-self: start;
snippet ps:e
place-self: end;
snippet ps:c
place-self: center;
snippet ps:st
place-self: stretch;
snippet q
quotes: ${1};${0}
snippet q:en

View File

@ -1,9 +1,11 @@
extends html
snippet %
snippet % <% %>
<% ${0} %>
snippet =
snippet = <%= %>
<%= ${0} %>
snippet # <%# %>
<%# ${0} %>
snippet end
<% end %>
snippet for
@ -20,13 +22,35 @@ snippet ife
<% else %>
${0}
<% end %>
snippet ft
snippet cond
<%= cond do %>
<% ${1} -> %>
${2:${VISUAL}}
<% true -> %>
${0}
<% end %>
snippet unless
<%= unless ${1} do %>
${0:${VISUAL}}
<% end %>
snippet ft form_tag
<%= form_tag(${1:"/users"}, method: ${2::post}) %>
${0}
</form>
snippet lin
snippet et error_tag
<%= error_tag ${1:f}, :${2:field} %>
snippet ti text_input
<%= text_input ${1:f}, :${2:field} %>
snippet la label
<%= label ${1:f}, :${2:field}, "${3:Label}" %>
snippet pi password_input
<%= password_input ${1:f}, :${2:password} %>
snippet render
<%= render "${1:index}.html", ${2:var: @var} %>
snippet lin link
<%= link "${1:Submit}", to: ${2:"/users"}, method: ${3::delete} %>
snippet ff
snippet ff form_for
<%= form_for @changeset, ${1:"/users"}, fn f -> %>
${0}

View File

@ -188,6 +188,8 @@ snippet try try .. rescue .. end
snippet pry
require IEx; IEx.pry
${0}
snippet ppry
|> (fn x -> require IEx; IEx.pry; x end).()${0}
snippet qu
quote do
${1}

View File

@ -1,13 +1,13 @@
snippet impl
implicit none
$0
${0}
snippet prog
program ${1:main}
$0
${0}
end program $1
snippet mod
module ${1:modulename}
$0
${0}
end module $1
snippet proc
procedure ${1:name}
@ -25,7 +25,7 @@ snippet doc
! Github: `g:snips_github`
! Description: $1
! """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
$0
${0}
snippet dox
!> @brief ${1}
!!
@ -37,45 +37,45 @@ snippet doxp
# Variables definitions
# Boolean
snippet bool
logical :: $0
logical :: ${0}
# Integer
snippet int
integer :: $0
integer :: ${0}
snippet real
real :: $0
real :: ${0}
# Double Precision
snippet double
double precision :: $0
double precision :: ${0}
# Char
snippet str
character(len=${1:*}) :: ${0:}
# Types
snippet type
type(${1:name})
$0
${0}
end type
snippet const
${1:type}, parameter :: $2 = $0
${1:type}, parameter :: $2 = ${0}
snippet arr
${1:type}, ${2:allocatable, }dimension(${3::}) :: $0
${1:type}, ${2:allocatable, }dimension(${3::}) :: ${0}
snippet intent
${1:type}, intent(inout) :: $0
${1:type}, intent(inout) :: ${0}
# Array
snippet /
(/ $1 /) ${2:,&} $0
(/ $1 /) ${2:,&} ${0}
snippet if
if (${1:condition}) then
$0
${0}
end if
snippet case
select case (${1:expr})
case ($2)
case default
$3
end select $0
end select ${0}
snippet do
do ${1:i} = ${2:start}, ${3:end}, ${4:incr}
$0
${0}
end do
snippet dow
do while (${1:condition})
@ -83,21 +83,21 @@ snippet dow
end do
snippet sub
subroutine ${1:name}($2)
$0
${0}
end subroutine $1
snippet func
function ${1:name}($2) result($3)
$0
${0}
end function $1
snippet pr
write(*,*) $0
write(*,*) ${0}
snippet dpr
write(*,*) '$1 = ', $1
snippet read
read(unit = ${1:fp}, file = ${2:filename}, iostat = ${3:ierr}) $0
read(unit = ${1:fp}, file = ${2:filename}, iostat = ${3:ierr}) ${0}
snippet write
write(unit = ${1:fp}, file = ${2:filename}, iostat = ${3:ierr}) $0
write(unit = ${1:fp}, file = ${2:filename}, iostat = ${3:ierr}) ${0}
snippet open
open(unit = ${1:fp}, file = ${2:filename}, status = ${3:unknown}, iostat = ${4:ierr}) $0
open(unit = ${1:fp}, file = ${2:filename}, status = ${3:unknown}, iostat = ${4:ierr}) ${0}
snippet close
close(unit = ${1:fp}) $0
close(unit = ${1:fp}) ${0}

View File

@ -1,27 +1,74 @@
extends html
snippet assign
<#assign ${1} = ${0:${VISUAL}} />
snippet if
<#if ${1}>
# Freemarker version
snippet ver "${.version}"
\${.version}
# Interpolation
snippet int "${interpolation}"
\${${0:interpolation${VISUAL}}\}
# Interpolation with default string
snippet intd "${interpolation!"default_string"}"
\${${0:interpolation${VISUAL}}!"${1:default_string}"\}
# Comment
snippet com "<#-- comment -->"
<#-- ${0:comment${VISUAL}} -->
# Variable assignment on a single line
snippet ass "<#assign variable_name = value />"
<#assign ${1:variable_name} = ${0:value${VISUAL}} />
# Variable assignments on multiple lines
snippet assm "<#assign <#-- multiple lines --> />"
<#assign
${1:variable_name} = ${0:value${VISUAL}}
/>
# Local variable assignment on a single
snippet loc "<#local variable_name = value />"
<#local ${1:variable_name} = ${0:value${VISUAL}} />
# Local variable assignments on multiple lines
snippet locm "<#local <#-- multiple lines --> />"
<#local
${1:variable_name} = ${0:value${VISUAL}}
/>
# Include Freemarker file
snippet inc "<#include \"file.ftl\" />"
<#include "${0:file.ftl${VISUAL}}" />
# If statement
snippet if "<#if condition>...</#if>"
<#if ${1:true}>
${0:${VISUAL}}
</#if>
snippet ife
<#if ${1}>
${2:${VISUAL}}
# If/else statement
snippet ife "<#if condition>...<#else>...</#if>"
<#if ${1:true}>
${0:${VISUAL}}
<#else>
${0}
${2}
</#if>
snippet list
<#list ${1} as ${2}>
# Iteration over a sequence
snippet lis "<#list sequence as element>...</#list>"
<#list ${1:sequence} as ${2:element}>
${0:${VISUAL}}
</#list>
snippet attempt
# Iteration over an hashmap
snippet lish "<#list hashmap?keys as element>...</#list>"
<#list ${1:hashmap}?keys as ${2:key}>
\${$2\}: \${$1[$2]\}${0:${VISUAL}}
</#list>
# Macro statement
snippet mac "<#macro macro_name param1>...</#macro>"
<#macro ${1:macro_name} ${2:param1}>
${0:${VISUAL}}
</#macro>
# Function statement
snippet fun "<#function function_name param1>...</#function>"
<#function ${1:function_name} ${2:param1}>
${0:${VISUAL}}
</#function>
# Attempt statement (try-catch to prevent runtime exceptions)
snippet att "<#attempt>...<#recover></#attempt>"
<#attempt>
${0:${VISUAL}}
<#recover>
</#attempt>
# Then built-in for booleans
snippet ?th "?then(true, false)"
?then(${1:true}, ${0:false${VISUAL}})

View File

@ -31,9 +31,6 @@ snippet cs "case"
case ${1:value}:
${0:${VISUAL}}
snippet c "const"
const ${1:NAME} = ${0:0}
snippet co "constants with iota"
const (
${1:NAME1} = iota
@ -53,9 +50,6 @@ snippet dfr "defer recover"
}
}()
snippet i "int"
int
snippet im "import"
import (
"${1:package}"
@ -228,6 +222,23 @@ snippet test "test function"
${0:${VISUAL}}
}
snippet testt "table test function"
func Test${1:name}(t *testing.T) {
tests := []struct {
name string
}{
{
name: "${2:test name}",
},
}
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
${0:${VISUAL}}
})
}
}
snippet bench "benchmark function"
func Benchmark${1:name}(b *testing.B) {
for i := 0; i < b.N; i++ {

View File

@ -9,7 +9,12 @@ snippet fun "function"
function ${1:function_name}(${2}) {
${0:${VISUAL}}
}
<<<<<<< HEAD
snippet fun "async function"
=======
# Asynchronous Function
snippet asf "async function"
>>>>>>> 27ad0d07862847896f691309a544a206783c94d6
async function ${1:function_name}(${2}) {
${0:${VISUAL}}
}
@ -282,6 +287,11 @@ snippet timeout
setTimeout(function () {${0}}${2}, ${1:10});
snippet const
const ${1} = ${0};
<<<<<<< HEAD
=======
snippet constn
const ${1} = new ${0};
>>>>>>> 27ad0d07862847896f691309a544a206783c94d6
snippet let
let ${1} = ${0};
snippet im "import xyz from 'xyz'"

View File

@ -0,0 +1,2 @@
extends matlab

View File

@ -0,0 +1,2 @@
extends markdown

View File

@ -207,7 +207,7 @@ snippet define
}
snippet service
service { "${1:service}" :
service { "${1:service}":
ensure => running,
enable => true,
require => [ Package["${2:package}"], File["${3:file}"], ],
@ -215,7 +215,7 @@ snippet service
}
snippet file
file { "${1:filename}" :
file { "${1:filename}":
ensure => ${2:present},
owner => "${3:root}",
group => "${4:root}",
@ -227,7 +227,7 @@ snippet file
}
snippet archive
archive { "${1:filename}" :
archive { "${1:filename}":
ensure => ${2:present},
url => "http://${3:url}",
extension => "${4:tgz}",
@ -237,7 +237,7 @@ snippet archive
}
snippet firewall
firewall { "${1:comment}" :
firewall { "${1:comment}":
proto => ${2:tcp},
action => ${3:accept},
port => ${4},

View File

@ -19,16 +19,17 @@ snippet -
${0}
#some directive
snippet img:
.. |${0:alias}| image:: ${1:img}
.. |${1:alias}| image:: ${0:img}
snippet fig:
.. figure:: ${1:img}
:alt: ${0:alter text}
:alt: ${2:alter text}
$0
snippet con:
.. contents:: ${1:Table of Contents}
$2
snippet cont:
.. contents::
${0:content}
snippet code:
snippet cod:
.. code:: ${1:type}
${0:write some code}
@ -65,34 +66,36 @@ snippet tod:
.. todo::
${0}
snippet lis:
.. list-table:: ${0:Title}
.. list-table:: ${1:Title}
:header-rows: 1
:stub-columns: 1
:stub-columns: 0
* - x1,y1
- x2,y1
- x3,y1
* - x1,y2
- x2,y2
- x3,y2
* - x1,y3
- x2,y3
- x3,y3
* - ${0:R1C1}
- R1C2
* - R2C1
- R2C2
snippet csv:
.. csv-table:: ${1:Title}
:header-rows: 1
:stub-columns: 0
${0:R1C1}, R1C2
R2C1, R2C2
snippet toc:
.. toctree::
:maxdepth: 2
${0}
snippet dow:
:download:\`${0:text} <${1:path}>\`
:download:\`${1:text} <${0:path}>\`
snippet ref:
:ref:\`${0:text} <${1:path}>\`
:ref:\`${1:text} <${0:path}>\`
snippet doc:
:doc:`${0:text} <${1:path}>`
:doc:\`${1:text} <${0:path}>\`
# CJK optimize, CJK has no space between charaters
snippet *c
\ *${1:Emphasis}*\ ${0}
snippet **c
\ **${1:Strong emphasis}**\ ${0}
# vim:set list noet sts=0 sw=4 ts=4:

View File

@ -232,3 +232,7 @@ snippet macro "macro_rules!" b
}
snippet box "Box::new()"
Box::new(${0:${VISUAL}})
snippet rc "Rc::new()"
Rc::new(${0:${VISUAL}})
snippet unim "unimplemented!()"
unimplemented!()

View File

@ -34,6 +34,72 @@ snippet while
${0:${VISUAL}}
snippet !
!important
snippet ac
align-content: ${0}
snippet ac:s
align-content: start
snippet ac:e
align-content: end
snippet ac:c
align-content: center
snippet ac:fs
align-content: flex-start
snippet ac:fe
align-content: flex-end
snippet ac:sb
align-content: space-between
snippet ac:sa
align-content: space-around
snippet ac:se
align-content: space-evenly
snippet ac:st
align-content: stretch
snippet ac:b
align-content: baseline
snippet ac:fb
align-content: first baseline
snippet ac:lb
align-content: last baseline
snippet ai
align-items: ${0}
snippet ai:s
align-items: start
snippet ai:e
align-items: end
snippet ai:c
align-items: center
snippet ai:fs
align-items: flex-start
snippet ai:fe
align-items: flex-end
snippet ai:st
align-items: stretch
snippet ai:b
align-items: baseline
snippet ai:fb
align-items: first baseline
snippet ai:lb
align-items: last baseline
snippet as
align-self: ${0}
snippet as:s
align-self: start
snippet as:e
align-self: end
snippet as:c
align-self: center
snippet as:st
align-self: stretch
snippet as:fs
align-self: flex-start
snippet as:fe
align-self: flex-end
snippet as:b
align-self: baseline
snippet as:fb
align-self: first baseline
snippet as:lb
align-self: last baseline
snippet bdi:m+
-moz-border-image: url('${1}') ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch}
snippet bdi:m
@ -411,6 +477,10 @@ snippet d:b
display: block
snippet d:cp
display: compact
snippet d:g
display: grid
snippet d:f
display: flex
snippet d:ib
display: inline-block
snippet d:itb
@ -561,10 +631,122 @@ snippet fw:n
font-weight: normal
snippet f
font: ${0}
snippet g
grid: ${0}
snippet gaf
grid-auto-flow: ${0}
snippet gaf+
grid-auto-flow: ${1:row} ${0:dense}
snippet gaf:r
grid-auto-flow: row
snippet gaf:c
grid-auto-flow: column
snippet gaf:d
grid-auto-flow: dense
snippet gaf:rd
grid-auto-flow: row dense
snippet gaf:cd
grid-auto-flow: column dense
snippet gar
grid-auto-rows: ${0}
snippet gar:a
grid-auto-rows: auto
snippet gar:mac
grid-auto-rows: max-content
snippet gar:mic
grid-auto-rows: min-content
snippet gac
grid-auto-columns: ${0}
snippet gac:a
grid-auto-columns: auto
snippet gac:mac
grid-auto-columns: max-content
snippet gac:mic
grid-auto-columns: min-content
snippet gt
grid-template: ${0}
snippet gt+
grid-template: ${1} / ${0}
snippet gtr
grid-template-rows: ${0}
snippet gtc
grid-template-columns: ${0}
snippet gta
grid-template-areas: ${0}
snippet gg
grid-gap: ${0}
snippet gg+
grid-gap: ${1} ${0}
snippet gg:0
grid-gap: 0
snippet grg
grid-row-gap: ${0}
snippet grg:0
grid-row-gap: 0
snippet gcg
grid-column-gap: ${0}
snippet gcg:0
grid-column-gap: 0
snippet gr
grid-row: ${1} / ${0}
snippet grs
grid-row-start: ${0}
snippet gre
grid-row-end: ${0}
snippet gc
grid-column: ${1} / ${0}
snippet gcs
grid-column-start: ${0}
snippet gce
grid-column-end: ${0}
snippet h
height: ${0}
snippet h:a
height: auto
snippet jc
justify-content: ${0}
snippet jc:s
justify-content: start
snippet jc:e
justify-content: end
snippet jc:c
justify-content: center
snippet jc:fs
justify-content: flex-start
snippet jc:fe
justify-content: flex-end
snippet jc:sb
justify-content: space-between
snippet jc:sa
justify-content: space-around
snippet jc:se
justify-content: space-evenly
snippet jc:st
justify-content: stretch
snippet jc:l
justify-content: left
snippet jc:r
justify-content: right
snippet ji
justify-items: ${0}
snippet ji:s
justify-items: start
snippet ji:e
justify-items: end
snippet ji:c
justify-items: center
snippet ji:st
justify-items: stretch
snippet js
justify-self: ${0}
snippet js:s
justify-self: start
snippet js:e
justify-self: end
snippet js:c
justify-self: center
snippet js:st
justify-self: stretch
snippet l
left: ${0}
snippet l:a
@ -729,6 +911,28 @@ snippet p:2
padding: ${1:0} ${0:0}
snippet p:0
padding: 0
snippet pc
place-content: ${0}
snippet pc+
place-content: ${1} ${0}
snippet pc:s
place-content: start
snippet pc:e
place-content: end
snippet pc:c
place-content: center
snippet pc:fs
place-content: flex-start
snippet pc:fe
place-content: flex-end
snippet pc:sb
place-content: space-between
snippet pc:sa
place-content: space-around
snippet pc:se
place-content: space-evenly
snippet pc:st
place-content: stretch
snippet pgba
page-break-after: ${0}
snippet pgba:aw
@ -755,6 +959,18 @@ snippet pgbi:a
page-break-inside: auto
snippet pgbi:av
page-break-inside: avoid
snippet pi
place-items: ${0}
snippet pi+
place-items: ${1:stretch} ${0:stretch}
snippet pi:s
place-items: start
snippet pi:e
place-items: end
snippet pi:c
place-items: center
snippet pi:st
place-items: stretch
snippet pos
position: ${0}
snippet pos:a
@ -765,6 +981,18 @@ snippet pos:r
position: relative
snippet pos:s
position: static
snippet ps
place-self: ${0}
snippet ps+
place-self: ${1:stretch} ${0:stretch}
snippet ps:s
place-self: start
snippet ps:e
place-self: end
snippet ps:c
place-self: center
snippet ps:st
place-self: stretch
snippet q
quotes: ${0}
snippet q:en

View File

@ -4,10 +4,10 @@ snippet #!
snippet s#!
#!/usr/bin/env sh
set -euo pipefail
set -eu
snippet safe
set -euo pipefail
set -eu
snippet bash
#!/usr/bin/env bash

View File

@ -1,5 +1,71 @@
snippet !
!important
snippet ac
align-content ${0}
snippet ac:s
align-content start
snippet ac:e
align-content end
snippet ac:c
align-content center
snippet ac:fs
align-content flex-start
snippet ac:fe
align-content flex-end
snippet ac:sb
align-content space-between
snippet ac:sa
align-content space-around
snippet ac:se
align-content space-evenly
snippet ac:st
align-content stretch
snippet ac:b
align-content baseline
snippet ac:fb
align-content first baseline
snippet ac:lb
align-content last baseline
snippet ai
align-items ${0}
snippet ai:s
align-items start
snippet ai:e
align-items end
snippet ai:c
align-items center
snippet ai:fs
align-items flex-start
snippet ai:fe
align-items flex-end
snippet ai:st
align-items stretch
snippet ai:b
align-items baseline
snippet ai:fb
align-items first baseline
snippet ai:lb
align-items last baseline
snippet as
align-self ${0}
snippet as:s
align-self start
snippet as:e
align-self end
snippet as:c
align-self center
snippet as:st
align-self stretch
snippet as:fs
align-self flex-start
snippet as:fe
align-self flex-end
snippet as:b
align-self baseline
snippet as:fb
align-self first baseline
snippet as:lb
align-self last baseline
snippet bdi:m+
-moz-border-image url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch}
snippet bdi:m
@ -379,10 +445,12 @@ snippet d:mis
display -moz-inline-stack
snippet d:b
display block
snippet d:f
display flex
snippet d:cp
display compact
snippet d:g
display grid
snippet d:f
display flex
snippet d:ib
display inline-block
snippet d:itb
@ -533,6 +601,74 @@ snippet fw:n
font-weight normal
snippet f
font ${0}
snippet g
grid ${0}
snippet gaf
grid-auto-flow ${0}
snippet gaf+
grid-auto-flow ${1:row} ${0:dense}
snippet gaf:r
grid-auto-flow row
snippet gaf:c
grid-auto-flow column
snippet gaf:d
grid-auto-flow dense
snippet gaf:rd
grid-auto-flow row dense
snippet gaf:cd
grid-auto-flow column dense
snippet gar
grid-auto-rows ${0}
snippet gar:a
grid-auto-rows auto
snippet gar:mac
grid-auto-rows max-content
snippet gar:mic
grid-auto-rows min-content
snippet gac
grid-auto-columns ${0}
snippet gac:a
grid-auto-columns auto
snippet gac:mac
grid-auto-columns max-content
snippet gac:mic
grid-auto-columns min-content
snippet gt
grid-template ${0}
snippet gt+
grid-template ${1} / ${0}
snippet gtr
grid-template-rows ${0}
snippet gtc
grid-template-columns ${0}
snippet gta
grid-template-areas ${0}
snippet gg
grid-gap ${0}
snippet gg+
grid-gap ${1} ${0}
snippet gg:0
grid-gap 0
snippet grg
grid-row-gap ${0}
snippet grg:0
grid-row-gap 0
snippet gcg
grid-column-gap ${0}
snippet gcg:0
grid-column-gap 0
snippet gr
grid-row ${1} / ${0}
snippet grs
grid-row-start ${0}
snippet gre
grid-row-end ${0}
snippet gc
grid-column ${1} / ${0}
snippet gcs
grid-column-start ${0}
snippet gce
grid-column-end ${0}
snippet h
height ${0}
snippet h:a
@ -701,6 +837,28 @@ snippet p:2
padding ${1:0} ${0:0}
snippet p:0
padding 0
snippet pc
place-content ${0}
snippet pc+
place-content ${1} ${0}
snippet pc:s
place-content start
snippet pc:e
place-content end
snippet pc:c
place-content center
snippet pc:fs
place-content flex-start
snippet pc:fe
place-content flex-end
snippet pc:sb
place-content space-between
snippet pc:sa
place-content space-around
snippet pc:se
place-content space-evenly
snippet pc:st
place-content stretch
snippet pgba
page-break-after ${0}
snippet pgba:aw
@ -727,6 +885,18 @@ snippet pgbi:a
page-break-inside auto
snippet pgbi:av
page-break-inside avoid
snippet pi
place-items ${0}
snippet pi+
place-items ${1:stretch} ${0:stretch}
snippet pi:s
place-items start
snippet pi:e
place-items end
snippet pi:c
place-items center
snippet pi:st
place-items stretch
snippet pos
position ${0}
snippet pos:a
@ -737,6 +907,18 @@ snippet pos:r
position relative
snippet pos:s
position static
snippet ps
place-self ${0}
snippet ps+
place-self ${1:stretch} ${0:stretch}
snippet ps:s
place-self start
snippet ps:e
place-self end
snippet ps:c
place-self center
snippet ps:st
place-self stretch
snippet q
quotes ${0}
snippet q:en
@ -993,7 +1175,47 @@ snippet for
for ${1:i} in ${0}
snippet keyf
@keyframes ${0}
snippet jc
justify-content ${0}
snippet jc:s
justify-content start
snippet jc:e
justify-content end
snippet jc:c
justify-content center
snippet jc
justify-content
snippet jc:fs
justify-content flex-start
snippet jc:fe
justify-content flex-end
snippet jc:sb
justify-content space-between
snippet jc:sa
justify-content space-around
snippet jc:se
justify-content space-evenly
snippet jc:st
justify-content space-evenly
snippet jc:l
justify-content left
snippet jc:r
justify-content right
snippet ji
justify-items ${0}
snippet ji:s
justify-items start
snippet ji:e
justify-items end
snippet ji:c
justify-items center
snippet ji:st
justify-items stretch
snippet js
justify-self ${0}
snippet js:s
justify-self start
snippet js:e
justify-self end
snippet js:c
justify-self center
snippet js:st
justify-self stretch

View File

@ -1,7 +1,7 @@
extends verilog
# Foreach Loop
snippet fe
snippet forea
foreach (${1}) begin
${0}
end

View File

@ -222,6 +222,10 @@ snippet rm roman font text
\\textrm{${1:${VISUAL:text}}}${0}
snippet tt typewriter (monospace) text
\\texttt{${1:${VISUAL:text}}}${0}
snippet tsub subscripted text
\\textsubscript{${1:${VISUAL:text}}}${0}
snippet tsup superscripted text
\\textsuperscript{${1:${VISUAL:text}}}${0}
#Math font
snippet mf mathfrak
\\mathfrak{${1:${VISUAL:text}}}${0}
@ -248,7 +252,7 @@ snippet tikz figure environment (tikzpicture)
${2}
\\end{tikzpicture}
\\end{center}
\\caption{${3}}
\\caption{${3}}%
\\label{fig:${4}}
\\end{figure}
${0}

View File

@ -1 +1,43 @@
extends javascript
snippet tconst "ts const"
const ${1}: ${2:any} = ${3};
${0}
snippet tlet "ts let"
let ${1}: ${2:any} = ${3};
${0}
snippet tvar "ts var"
var ${1}: ${2:any} = ${3};
${0}
snippet + "var: type"
${1}: ${0:any}
snippet int "interface"
interface ${1} {
${2}: ${3:any};
${0}
}
snippet intx "interface extends"
interface ${1} extends ${2} {
${3}: ${4:any};
${0}
}
snippet tfun "ts function"
function ${1}(${2}): ${3:any} {
${0}
}
snippet tcla "ts class"
class ${1} {
${2}
constructor(public ${3}: ${4: any}) {
${5}
}
${0}
}
snippet tclax "ts class extends"
class ${1} extends ${2} {
${3}
constructor(public ${4}: ${5: any}) {
${6}
}
${0}
}

View File

@ -61,3 +61,23 @@ snippet mod
module ${1:module_name} (${2});
${0}
endmodule
# For
snippet for
for (int ${2:i} = 0; $2 < ${1:count}; $2${3:++}) begin
${4}
end
# Forever
snippet forev
forever begin
${0}
end
# Function
snippet fun
function ${1:void} ${2:name}(${3});
${0}
endfunction: $2
# Task
snippet task
task ${1:name}(${2});
${0}
endtask: $1

View File

@ -76,3 +76,5 @@ snippet im
imap ${1} ${2}
snippet exe
execute ${1}
snippet filename
`Filename()`

View File

@ -176,3 +176,14 @@ snippet vstore
${1:key}: ${2:value}
}
});
# vue-i18n snippets https://github.com/kazupon/vue-i18n
snippet trans
$t('$1')
# Translation with parameter
snippet transc
$t('$1', { $2: $3 })