Remove vim configs not needed anymore
parent
e6d1f91b80
commit
c53cf5cdff
@ -1,54 +0,0 @@
|
||||
snippet #! "Shebang" !b
|
||||
#!/usr/bin/env ${1:bash}
|
||||
endsnippet
|
||||
snippet - "bullet"
|
||||
•
|
||||
endsnippet
|
||||
snippet -> "right arrow"
|
||||
→
|
||||
endsnippet
|
||||
snippet :) "smile"
|
||||
☺
|
||||
endsnippet
|
||||
snippet :( "frown"
|
||||
☹
|
||||
endsnippet
|
||||
snippet <3 "heart"
|
||||
♥
|
||||
endsnippet
|
||||
snippet *<3 "sparkle heart"
|
||||
💖
|
||||
endsnippet
|
||||
snippet x "ballot x"
|
||||
✗
|
||||
endsnippet
|
||||
snippet v "check mark"
|
||||
✓
|
||||
endsnippet
|
||||
snippet !? "interrobang"
|
||||
‽
|
||||
endsnippet
|
||||
snippet ?! "interrobang"
|
||||
‽
|
||||
endsnippet
|
||||
snippet ... "ellipsis"
|
||||
…
|
||||
endsnippet
|
||||
snippet * "star"
|
||||
★
|
||||
endsnippet
|
||||
snippet -- "em dash"
|
||||
—
|
||||
endsnippet
|
||||
snippet != "not equal"
|
||||
≠
|
||||
endsnippet
|
||||
snippet <- "left arrow ←"
|
||||
←
|
||||
endsnippet
|
||||
snippet \/ "down arrow ↓"
|
||||
↓
|
||||
endsnippet
|
||||
snippet 1/2 "half ½"
|
||||
½
|
||||
endsnippet
|
@ -1,22 +0,0 @@
|
||||
snippet timeout "timeout"
|
||||
setTimeout(${1:->}, ${2:500})
|
||||
endsnippet
|
||||
|
||||
snippet log "Log" !
|
||||
console.log ${1:"${2:msg}"}
|
||||
endsnippet
|
||||
|
||||
snippet cl "console.log"
|
||||
console.log ${1:"${2:msg}"}
|
||||
endsnippet
|
||||
|
||||
snippet def "define"
|
||||
define [
|
||||
'${1:path}'
|
||||
], (
|
||||
${2:Object}
|
||||
) ->
|
||||
endsnippet
|
||||
snippet it "jasmine test case"
|
||||
it '→ $1', ->
|
||||
endsnippet
|
@ -1,49 +0,0 @@
|
||||
# chezmoi:template:left-delimiter=#{{
|
||||
#{{- /* vim: set filetype=snippets: */ -}}
|
||||
#{{- if lookPath "go" -}}
|
||||
snippet ignore "ignore function" !
|
||||
func(...any) {}(${1})
|
||||
endsnippet
|
||||
snippet ctx "context" !
|
||||
ctx context.Context
|
||||
endsnippet
|
||||
snippet e "error wrapper" !
|
||||
e := wrap(".${1}")
|
||||
endsnippet
|
||||
snippet test "setup test case" !
|
||||
func Test${1}(t *testing.T) {
|
||||
type testcase struct {
|
||||
Name string
|
||||
Setup func(tc *testcase)
|
||||
}
|
||||
tt := []testcase{}
|
||||
for _, tc := range tt {
|
||||
tc := tc
|
||||
t.Run(tc.Name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
tc.Setup(&tc)
|
||||
})
|
||||
}
|
||||
}
|
||||
endsnippet
|
||||
|
||||
snippet htest "setup context test case" !
|
||||
func Test${1}(t *testing.T) {
|
||||
type testcase struct {
|
||||
Name string
|
||||
Setup func(tc *testcase)
|
||||
}
|
||||
|
||||
tt := []testcase{}
|
||||
|
||||
for _, tc := range tt {
|
||||
tc := tc
|
||||
t.Run(tc.Name, func(t *testing.T) {
|
||||
ctx, a, ctrl := utils.Test(t)
|
||||
t.Parallel()
|
||||
tc.Setup(&tc)
|
||||
})
|
||||
}
|
||||
}
|
||||
endsnippet
|
||||
#{{- end }}
|
@ -1,19 +0,0 @@
|
||||
snippet doctype "html5 doctype" !
|
||||
<!doctype html>
|
||||
endsnippet
|
||||
snippet head "head tag based html5 boilerplate" !
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title></title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="path/to/css/file.css">
|
||||
</head>
|
||||
endsnippet
|
||||
snippet script "script tag" !
|
||||
<script>${1}</script>
|
||||
endsnippet
|
||||
snippet scriptsrc "script src" !
|
||||
<script src="${1}"></script>
|
||||
endsnippet
|
@ -1,65 +0,0 @@
|
||||
snippet f "function" !
|
||||
function ${1:func} (${2}) {
|
||||
${VISUAL}$0
|
||||
}
|
||||
endsnippet
|
||||
|
||||
snippet if "if" !
|
||||
if (${1:true}) {
|
||||
${VISUAL}$0
|
||||
}
|
||||
endsnippet
|
||||
|
||||
snippet scf "self calling function" !
|
||||
(function (${1:argument}) {
|
||||
${VISUAL}$0
|
||||
}(${2:$1}));
|
||||
endsnippet
|
||||
|
||||
snippet log "console.log"
|
||||
console.log(${1:'${2:value}'});
|
||||
endsnippet
|
||||
|
||||
snippet strict "use strict"
|
||||
'use strict';
|
||||
endsnippet
|
||||
|
||||
snippet timeout "setTimeout" !
|
||||
setTimeout(function () {
|
||||
${1://code}
|
||||
}, 0);
|
||||
endsnippet
|
||||
|
||||
snippet it "it test case" !
|
||||
it('→ $1', () => {
|
||||
});
|
||||
endsnippet
|
||||
|
||||
snippet desc "describe test case" !
|
||||
describe('→ $1', () => {
|
||||
});
|
||||
endsnippet
|
||||
|
||||
snippet exp "expect" b
|
||||
expect($1).toBe($2);
|
||||
endsnippet
|
||||
|
||||
snippet umd "Universal Module Definition" b
|
||||
(function (root, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["${1:dependency}"], factory);
|
||||
} else if (typeof exports === "object") {
|
||||
module.exports = factory(require("$1"));
|
||||
} else {
|
||||
root.${2:Export} = factory(root.$1);
|
||||
}
|
||||
}(this, function ($1) {
|
||||
function $2($3) {
|
||||
}
|
||||
return $2;
|
||||
}))
|
||||
endsnippet
|
||||
|
||||
snippet debug "debugger" !
|
||||
debugger$1;
|
||||
endsnippet
|
@ -1,41 +0,0 @@
|
||||
snippet php "Starting php tag" !b
|
||||
<?php
|
||||
endsnippet
|
||||
|
||||
snippet phpil "php inline tag" !b
|
||||
<?php ${1} ?>
|
||||
endsnippet
|
||||
|
||||
snippet ec "echo" !b
|
||||
echo "${1}";
|
||||
endsnippet
|
||||
|
||||
snippet f "Anonymous function"
|
||||
function () {
|
||||
${1}
|
||||
}
|
||||
endsnippet
|
||||
|
||||
snippet fuse "Anonymous function with use"
|
||||
function () use (${1}) {
|
||||
${2}
|
||||
}
|
||||
endsnippet
|
||||
|
||||
snippet this "this helper"
|
||||
$${1:this}->${2:prop}
|
||||
endsnippet
|
||||
|
||||
snippet [] "array literal"
|
||||
array(${1})
|
||||
endsnippet
|
||||
|
||||
snippet {} "Empty object"
|
||||
new stdClass()
|
||||
endsnippet
|
||||
|
||||
snippet scf "self calling function" !b
|
||||
call_user_func(function () {
|
||||
${1}
|
||||
});
|
||||
endsnippet
|
@ -1,10 +0,0 @@
|
||||
snippet map "Map snippet"
|
||||
map(${1:lambda x: x}, ${2:[]})
|
||||
endsnippet
|
||||
snippet #! "Python shebang" !
|
||||
#!/usr/bin/env python3
|
||||
endsnippet
|
||||
snippet #! "Python2 shebang" !
|
||||
#!/usr/bin/env python2
|
||||
# encoding: utf-8
|
||||
endsnippet
|
@ -1,8 +0,0 @@
|
||||
snippet mixin "mixin definition"
|
||||
@mixin ${1:name}(${2:$vars}) {
|
||||
${3:@content}
|
||||
}
|
||||
endsnippet
|
||||
snippet inc "call a mixin"
|
||||
@include ${1:mixin-name}${2:($variables)}
|
||||
endsnippet
|
@ -1 +0,0 @@
|
||||
extends javascript
|
Loading…
Reference in New Issue