migrate vim configuration files

This commit is contained in:
Ray Elliott 2020-03-19 15:47:31 +00:00
commit b4ae067792
59 changed files with 10296 additions and 0 deletions

0
UltiSnips/all.snippets Normal file
View file

182
UltiSnips/css.snippets Normal file
View file

@ -0,0 +1,182 @@
snippet sld "/* stylelint-disable-next-line ... */"
/* stylelint-disable-next-line ${1:declaration-block-no-shorthand-property-overrides} */
endsnippet
snippet @m "@media ..."
@media (${1:min}-${2:width}: $3) {
$0
}
endsnippet
snippet lg "linear-gradient( ... )"
linear-gradient(
${1:to bottom},
${2:transparent},
${3:transparent}
)$0
endsnippet
snippet bglg "background: linear-gradient ..."
background: linear-gradient(
${2:to bottom},
${3:transparent},
${4:transparent}
);
endsnippet
snippet flex "display: flex ..."
display: flex;
flex-direction: ${1:row};
justify-content: ${2:center};
align-items: ${3:center};
endsnippet
snippet w "width: ;"
width: ${1:100%};
endsnippet
snippet h "height: ;"
height: ${1:100%};
endsnippet
snippet maxw "max-width: ;"
max-width: ${1:100%};
endsnippet
snippet maxh "max-height: ;"
max-height: ${1:100%};
endsnippet
snippet minw "min-width: ;"
min-width: ${1:100%};
endsnippet
snippet minh "min-height: ;"
min-height: ${1:100%};
endsnippet
snippet bgc "background-color: ;"
background-color: ${1:transparent};
endsnippet
snippet t "top: ... ;"
top: ${1:0};
endsnippet
snippet b "bottom: ... ;"
bottom: ${1:0};
endsnippet
snippet l "left: ... ;"
left: ${1:0};
endsnippet
snippet r "right: ... ;"
right: ${1:0};
endsnippet
snippet m "margin: ... ;"
margin: ${1:0};
endsnippet
snippet mt "margin-top: ... ;"
margin-top: ${1:0};
endsnippet
snippet mb "margin-bottom: ... ;"
margin-bottom: ${1:0};
endsnippet
snippet ml "margin-left: ... ;"
margin-left: ${1:0};
endsnippet
snippet mr "margin-right: ... ;"
margin-right: ${1:0};
endsnippet
snippet p "padding: ... ;"
padding: ${1:0};
endsnippet
snippet pt "padding-top: ... ;"
padding-top: ${1:0};
endsnippet
snippet pb "padding-bottom: ... ;"
padding-bottom: ${1:0};
endsnippet
snippet pl "padding-left: ... ;"
padding-left: ${1:0};
endsnippet
snippet pr "padding-right: ... ;"
padding-right: ${1:0};
endsnippet
snippet fs "font-size: ... ;"
font-size: ${1:1}${2:rem};
endsnippet
snippet o "opacity: ... ;"
opacity: ${1:0};
endsnippet
snippet rgbw "rgba( ... )"
rgba(${1:#fff}, ${2:0.5})
endsnippet
snippet rgbb "rgba( ... )"
rgba(${1:#000}, ${2:0.5})
endsnippet
snippet before "::before { ... }"
${1:&}::before {
content: '$2';
display: ${3:block};
position: ${4:absolute};
width: ${5:100%};
height: ${6:100%};
${7:top}: ${8:0};
${9:left}: ${10:0};
}
endsnippet
snippet after "::after { ... }"
${1:&}::after {
content: '$2';
display: ${3:block};
position: ${4:absolute};
width: ${5:100%};
height: ${6:100%};
${7:top}: ${8:0};
${9:left}: ${10:0};
}
endsnippet
snippet befaft "::before, ::after { ... }"
${1:&}::before {
$1::after {
content: '$2';
display: ${3:block};
position: ${4:absolute};
width: ${5:100%};
height: ${6:100%};
${7:top}: ${8:0};
${9:left}: ${10:0};
$0
}
endsnippet
snippet bs "box-shadow ...;"
box-shadow: ${1:0} ${2:0} $3px $4px ${5:#000} ${6:inset};
endsnippet
snippet pabs "Position: absolute ..."
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
endsnippet

View file

@ -0,0 +1,3 @@
snippet polycolor "${colors.color}"
\$\{colors.${1:foreground}}$0
endsnippet

3
UltiSnips/eruby.snippets Normal file
View file

@ -0,0 +1,3 @@
snippet cldef "Colour definition"
$1 = ["#$2", $3, "$4"]
endsnippet

37
UltiSnips/html.snippets Normal file
View file

@ -0,0 +1,37 @@
snippet html5 "HTML% boilerplate."
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge" />${2:
<link rel="stylesheet" href="${3:./assets/css/style.css}">}
<title>$1</title>
</head>
<body>$0 ${4:
<script src="${5:./assets/js/index.js}"></script>}
</body>
</html>
endsnippet
snippet option "<option value=..."
<option value="$1">${2:$1}</option>$0
endsnippet
snippet c "class= ... "
class="$1"$0
endsnippet
snippet plc "<img src='https://via.placeholder.it ..."
<img class="$1" src="https://via.placeholder.com/$2" alt="">
endsnippet
snippet tag "wrap with tag"
<$1$0>
${VISUAL}
</$1>
endsnippet
snippet tagi "wrap with tag inline"
<$1$0>${VISUAL}</$1>
endsnippet

View file

@ -0,0 +1,77 @@
snippet todo "// TODO"
// TODO $0
endsnippet
snippet if "if ( ... ) { ... }"
if ($1) {
$0
}
endsnippet
snippet cl; "console.log( ... );"
console.log($0);
endsnippet
snippet cl "console.log( ... )"
console.log($0)
endsnippet
snippet if "if ( ... ) { ... }"
if ($1) {
$0
}
endsnippet
snippet ifelse "if ( ... ) { ... } else { ... }"
if ($1) {
$2
} else {
$0
}
endsnippet
snippet for "for ( ... ) { ... }"
for (let ${1:index} = ${2:0}; $1 $3; $1${4:++}) {
$0
}
endsnippet
snippet st "setTimeout( ... )"
setTimeout(() => {$0
}, ${1:1000});
endsnippet
snippet jsx "import React ..."
import React from "react"
export default () => (
<${1:div}>$0</$1>
)
endsnippet
snippet jsxs "import React ... (styled)"
import React from "react"
import styled from "styled-components"
const $1 = styled.${2:div}\`
$3
\`
export default () => (
<$1>$0</$1>
)
endsnippet
snippet xc "class ..."
class $1 extends React.component {
constructor(props) {
super(props)
this.setState({$0})
}
render() {
return (
)
}
}
endsnippet

33
UltiSnips/jinja.snippets Normal file
View file

@ -0,0 +1,33 @@
extends html
snippet com "{# .. #}"
{# $0 #}
endsnippet
snippet import "{% import ... %}"
{% import "$1" as $2 %}
endsnippet
snippet macro "{% macro ...%}"
{% macro $1(${2:$3="$4"}) %}
$0
{% endmacro %}
endsnippet
snippet blockin "{% block .. %}"
{% block $1 %}$0{% endblock %}
endsnippet
snippet block "{% block .. %}"
{% block $1 %}
$0
{% endblock %}
endsnippet
snippet include "{% include .. %}"
{% include "$0" %}
endsnippet
snippet extends "{% extends .. %}"
{% extends "$0" %}
endsnippet

5
UltiSnips/php.snippets Normal file
View file

@ -0,0 +1,5 @@
snippet pf "public function ..."
public function $1($2) {
$0
}
endsnippet

19
UltiSnips/python.snippets Normal file
View file

@ -0,0 +1,19 @@
snippet qxconfig "qutebrowser xResources config"
c.colors.messages.$1 = xresources['*${2:background}']$0
endsnippet
snippet main "if __name__ == .."
def main():
$0
if __name__ == "__main__":
main()
endsnippet
snippet ld "logger.debug()"
logger.debug("$1".format($2))
endsnippet
snippet li "logger.info()"
logger.info("$1".format($2))
endsnippet

2
UltiSnips/scss.snippets Normal file
View file

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

3
UltiSnips/sh.snippets Normal file
View file

@ -0,0 +1,3 @@
snippet polybashcolor "%{{F{color}}}" i
%\{\{F\{color${1:4}}}}
endsnippet

7
UltiSnips/vim.snippets Normal file
View file

@ -0,0 +1,7 @@
snippet scolor "SetColor('', .."
SetColor('$1', '$2', '$3', '$4', '$5', '$6')$0
endsnippet
snippet cscolor "call SetColor('', .."
call SetColor('$1', '$2', '$3', '$4', '$5', '$6')$0
endsnippet

154
UltiSnips/vue.snippets Normal file
View file

@ -0,0 +1,154 @@
extends html, javascript, scss
snippet vue "Default template"
<template>
$0
</template>
<script>
export default {
props: {
},
data () {
return {
}
},
methods: {
}
}
</script>
<style lang="scss" scoped>
</style>
endsnippet
snippet byinput "Beufy Input Field"
<div class="field"> <!-- $1 -->
<label class="label">$1</label>
<div class="control">
<input class="input"
name="$2"
${3:type="${4:text}"}
v-model="${5:$2}">
</div>
</div>$0
endsnippet
snippet byselect "Buefy Select Field"
<div class="field"> <!-- $1 -->
<label class="label">$1</label>
<div class="control">
<div class="select">
<select name="$2"
:v-model="$2">
$0
</select>
</div>
</div>
</div>
endsnippet
snippet nt "this.$nextTick( () => { ... })"
this.$nextTick( () => {
$0
})
endsnippet
snippet props "props: { ... }"
props: {
$1: {
type: ${2:Boolean},
required: ${3:false},
default() {
return ${4:false};
},
},
},$0
endsnippet
snippet prop "property: { ... }"
$1: {
type: ${2:Boolean},
required: ${3:false},
default() {
return ${4:false};
},
},$0
endsnippet
snippet comps "components { ... }"
components: {
$0,
},
endsnippet
snippet data "data() { return { ... } }"
data() {
return {
$1: $2,$0
};
},
endsnippet
snippet compd "computed: { ... }"
computed: {
$1() {
$0
},
},
endsnippet
snippet meth "methods: { ... }"
methods: {
$1() {
$0
},
},
endsnippet
snippet style "<style ..."
<style ${1:lang="${2:scss}"} ${3:scoped}>
$0
</style>
endsnippet
snippet impc "import ... from '~/components...';"
import $1 from '~/components/$1';$0
endsnippet
snippet tran "<transition ..."
<transition name="$1">
${VISUAL}$0
</transition>
endsnippet
snippet .tran "vue transition selector"
.$1 {
&-enter-active {
transition: ${2:opacity} ${3:1}s;
}
&-leave-active {
transition: $2 ${4:1}s;
}
&-enter,
&-leave-to {
$2: ${5:0};
}
}$0
endsnippet
snippet script "<script> ...</script>"
<script>
export default {
name: '$0',
};
</script>
endsnippet
snippet s ":style='{ ... }"
:style="{ '$1': $2 }"$0
endsnippet