add some snippets

This commit is contained in:
Jidbo 2019-05-10 00:41:25 +02:00
parent 7b86b027e2
commit 6a1d20d0a9
6 changed files with 115 additions and 0 deletions

View file

@ -15,6 +15,10 @@ snippet tagi "generic inline Element"
<${1:tag}${2: class="$3"}>$4</$1>$0
endsnippet
snippet com "Comment"
<!-- $1 -->$0
endsnippet
snippet lin "link element"
<a href="$1"${2: class="$3"}>
$0

View file

@ -0,0 +1 @@
extends markdown

View file

@ -0,0 +1,4 @@
extends html
snippet ref "Markdown Link"
[$1]({${2:https://$3}${4: "$5"})$0
endsnippet

View file

@ -0,0 +1,4 @@
extends html
snippet ref "Markdown Link"
[$1]({${2:https://$3}${4: "$5"})$0
endsnippet

View file

@ -0,0 +1 @@
extends tex

101
.vim/snipps/tex.snippets Normal file
View file

@ -0,0 +1,101 @@
snippet s "symbol"
\\$0
endsnippet
snippet mb "Math Braces"
\\{ $1 \\}$0
endsnippet
snippet mal "Math inline"
$ $1 $$0
endsnippet
snippet mab "Mathbb character"
\mathbb{$1}$0
endsnippet
snippet inf "Infity symbol" i
\infty
endsnippet
snippet sqrt "Square Root" i
\\sqrt\{$1\}$0
endsnippet
snippet lim "Limit sign" i
\\lim_\{${1:n} \to ${2:\\infty}\} $0
endsnippet
snippet abs "Absolute" i
\\lvert $1 \\rvert$0
endsnippet
snippet fra "Fraction" i
\frac\{${1:numerator}\}\{${2:demoninator}\}$0
endsnippet
snippet sum "Sum character"
\sum_\{${1:lower}\}^\{${2:upper}\} $0
endsnippet
snippet ^ "Superscript" i
^{$1}$0
endsnippet
snippet _ "Superlowscript" i
_{$1}$0
endsnippet
snippet ove "Overline"
\overline{$1}$0
endsnippet
snippet ma "Math in own line"
\[ $1 \]$0
endsnippet
snippet beg "Begin"
\begin{$1}
$0
\end{$1}
endsnippet
snippet sec "Section"
\section{$1}
$0
endsnippet
snippet secs "Subsection"
\subsection{$1}
$0
endsnippet
snippet fat "Emphasize Text"
\emph{$1}$0
endsnippet
snippet secss "Subsubsection"
\subsubsection{$1}
$0
endsnippet
snippet doc "Basic Document"
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[german]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{enumitem}
\usepackage[left=3cm,right=3cm,top=2cm,bottom=2cm]{geometry}
\author{${1:author}}
\title{${2:title}}
\begin{document}
\maketitle
$0
\end{document}
endsnippet