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

Updated plugins

This commit is contained in:
amix
2016-12-27 11:46:49 -03:00
parent 04abc6907c
commit a6de243fca
67 changed files with 2836 additions and 1097 deletions

View File

@ -0,0 +1,383 @@
Authors
===============================================================================
Generated with "git log --oneline --pretty="%an" | sort | uniq > AUTHORS
Aaron Broder
Adnan Zafar
afolmert
aisensiy
Alexander Ross
Alexandre de Oliveira
Alexey Shevchenko
Alex Tan
Allen.M
Alvin Chan
ALX-Liu-Xiao
Andrea Giardini
Andreas Krennmair
Andreas Steinel
Andrei Cristian Petcu
Andrej Radovic
Andre Walker
Andrey Paskal
Andy Waite
Angel Alonso
Ángel Alonso
Anne Douwe Bouma
Anthony Wilson
Arvind
ashfinal
Audrius Kažukauskas
Austin Wood
Aydar Khabibullin
babybeasimple
Benjamin Nørgaard
Bernhard Graf
Bill Casarin
binaryplease
Björn
Björn-Egil Dahlberg
BlackEagle
Boone Severson
bounceme
Bradlee Speice
Brandon Dulaney
Brandon Hilkert
Brian Hogan
Brian van Burken
Bruno Sutic
Camilo Payan
carme
Cézar Antáres
Chad Paradis
Chen Zhongzheng
Ches Martin
ChickenNuggers
Chipairon
Chris Dueck
Chris Nicola
Chris Sims
Christian
Christian Höltje
Christian Neumüller
Christopher Joslyn
chrisyue
Ciro Santilli
Ciro Santilli 六四事件 法轮功
Claudio Maradonna
Connor Atherton
Cooper LeBrun
Corentin Peuvrel
Craig Paterson
Craig P Jolicoeur
crazymaster
daa84
Daeyun Shin
Dale Roberts
Daniel Hahler
Dan Loewenherz
Danny Navarro
daoo
Darrell Hamilton
David Arvelo
David Barnett
David C. Bishop
David Deryl Downey - AKA Deryl R. Doucette
David Rodríguez de Dios
David Sanson
dengyaolong
Derek Morey
dhilipsiva
djdt
Dmitry Dementev
Donny Yang
DSIW
dzikie drożdże
Eduardo Gurgel
Eli Gundry
emzap79
Enric Lluelles
Enrico Maria De Angelis
Erich Heine
Erik Westrup
Ernest
Eugene Kalinin
Eustaquio Rangel
Eustáquio Rangel
Fatih Arslan
Felix Jung
Filipe Giusti
Florent Lévigne
Florian Sattler
frans
Fuad Saud
Gabriel Chavez
Gaël Chamoulaud
Gea-Suan Lin
George Guimarães
George Lee
Georgios Samaras
Gert
gfixler
Gilad Peleg
gk
goonnow
Gueunet Charles
Gui Lin
guneysus
Gustavo Chain
Gustavo Ferreira
Hans-Guenter
Harald Wartig
Henrik Kjelsberg
HIRAKI Satoru
Holger Rapp
Honza
Honza Pokorny
hulufei
Igor Goldvekht
Ilker Cetinkaya
indi
Indra Susila
Ionică Bizău
Iuri Fernandes
Jack Stalnaker
Jacobo de Vera
Jacques Kvam
jake romer
Jakub Stasiak
James Turley
Jan Mollowitz
Jason S. Jones
Jean Jordaan
Jeffrey Tratner
Jens Hoepken
jiangyc0
Jim Deville
Jinzhu
Joey Curtin
Johannes Wienke
jonasac
Jonas Bygdén
Jonathan Martin
Jorge García
Jorge López Pérez
Joseph Lin
Josh Bode
Josh Davis
Josh Matthews
Josh Vandergrift
Josh Wainwright
JuanPablo
Julian Bennecker
Julien Deniau
Julien Pivard
Julien Stechele
Julien STECHELE
Kalinin Eugene
kenshin54
Kentaro Imai
Kevin Koltz
Kevin Lui
Kevin Mees
Kevin Murray
Kevin Schaul
Konstantin
Konstantin Gorodinskiy
Laas Toom
Laurent Georget
laxtiz
Leandro Moreira
Leonardo B
Leonidez Acosta
linduxed
Li Xin
Louis
Louis Pilfold
Lucas Hoffmann
Luis Carlos Cruz
Luis Carlos Cruz Carballo
Luiz Gonzaga dos Santos Filho
majjoha
mangege
Marc Camuzat
Marcelo D Montu
Marcelo Jacobus
Marcin Kulik
Marcus Kammer
Marc Weber
Mario de Frutos
Markus Benning
marocchino
Martin Atukunda
Martin Heuschober
Martxel Lasa
Matěj Cepl
Mathew Attlee
Mathieu Comandon
Matthew Barry
Matthias Viehweger
Mattia Tezzele
Matt Rasband
Matt Stevens
Mauro Porras P
Maximiliano Robaina
Mayeu (Cast)
Meng Zhuo
Michael Gehring
Michael Hinrichs
Michael Rutter
Michael Thessel
Michi Huber
Mickey
midchildan
Mike Foley
Mike Smullin
Miki Tebeka
Minjong Chung
M. Maxwell Watson
mMontu
mockturtl
m-pilia
Muhammad Hallaj Subery
mwcz
Namit
Nan Cloudio Jiang
Nan Zheng
Nate Mara
netei
Ngo The Trung
Nguyen Le
Nick Janetakis
Nicklasos
Nick Papanastasiou
Nicolas G. Querol
Nico Suhl
No Ducks
Norman Messtorff
obaoba
oddlydrawn
Oleg Voronkovich
Ole Hansen
Oliver Andrich
Ondrej Slinták
onemanstartup
opennota
Paco Esteban
Panagiotis Mavrogiorgos
Paolo Cretaro
Pascal
Paulo Romeira
Pawel Jankowski
phcerdan
Philippe Mongeau
Philipp Jovanovic
Piotr Jawniak
Piotr Yordanov
Pirogov Evgenij
Pompeu
Povilas Balzaravicius Pawka
Procras
protream
pydave
r4d2
Radosław Szymczyszyn
Ralph-Wang
Raül Torralba
raydeal
rcolombo
Rekky
René
Rene Vergara
Renzo Poddighe
Reyes Yang
ricardogcolombo
Ricardo Jesus
Rich Layte
Roberto Miranda
robin
Robin Grindrod
Rok Garbas
Roland Sommer
Rory McNamara
rsw0x
rtorralba
Ruben Vereecken
Ryan Bright
Ryan Pineo
Ryan Wang
Sam Shepherd
Santiago Gallego
sasidhar-d
Sathors
Sebastian Röder
Sebastian Wiesner
Sergey Lebedev
Sergey Zasenko
Serhiy Oplakanets
SevereOverfl0w
Simeon F. Willbanks
Simeon Willbanks
Simon Désaulniers
sirex
skv
Sokovikov
Srijan Choudhary
Steeve
stefan
Stephen Tudor
Stephen Woods
Steve Brown
Steven Humphrey
Steven Oliver
Stuart Grimshaw
Sudar
¨switch87¨
Tevin Zhang
theocrite
Thiago de Arruda
Thomas Duerr
Thomas Szymanski
tinyladi
Tobias Witt
Tobie Warburton
Tomasz Wisniewski
Tom Vincent
Tony
Tony Narlock
toogley
Torbjørn Vatn
tormaroe
ToruIwashita
Travis Holton
Trevor Sullivan
troydm
tUrG0n
twabiko
Tyler Ball
tyronepost
Tyrone Post
Vadim Khohlov
Vincent Hsu
Vladimir Rybas
Vladislav Khvostov
Vorzard
Vzaa
Waldecir Santos
Wildsky Fann
William Ma
William Travis Holton
X4fyr
xz.zhang
Yamamoto Yuji
Yannick Brehon
yerv000
Yike Lu
yuhuanbo
Yu Huanbo
Yves Lange
yvhn
zauguin
Zaven Muradyan
ZPH

View File

@ -0,0 +1,5 @@
priority -50
extends cpp
# vim:ft=snippets:

View File

@ -486,6 +486,11 @@ def __coerce__(self, other):
${25:pass}
endsnippet
snippet deff
def ${1:fname}(`!p snip.rv = vim.eval('indent(".") ? "self" : ""')`$2):
$0
endsnippet
snippet def "function with docstrings" b
def ${1:function}(`!p
if snip.indent:

View File

@ -10,7 +10,7 @@ endsnippet
snippet tab "tabular / array environment" b
\begin{${1:t}${1/(t)$|(a)$|(.*)/(?1:abular)(?2:rray)/}}{${2:c}}
$0${2/((?<=.)c|l|r)|./(?1: & )/g}
$0${2/(?<=.)(c|l|r)|./(?1: & )/g}
\end{$1${1/(t)$|(a)$|(.*)/(?1:abular)(?2:rray)/}}
endsnippet
@ -20,7 +20,7 @@ snippet table "Table environment" b
\caption{${2:caption}}
\label{tab:${3:label}}
\begin{${4:t}${4/(t)$|(a)$|(.*)/(?1:abular)(?2:rray)/}}{${5:c}}
$0${5/((?<=.)c|l|r)|./(?1: & )/g}
$0${5/(?<=.)(c|l|r)|./(?1: & )/g}
\end{$4${4/(t)$|(a)$|(.*)/(?1:abular)(?2:rray)/}}
\end{table}
endsnippet

View File

@ -279,3 +279,11 @@ snippet AGPL
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
snippet ISC
${1:one line to give the program's name and a brief description}
Copyright `&enc[:2] == "utf" ? "©" : "(c)"` `strftime("%Y")`, ${2:`g:snips_author`}
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
${0}

View File

@ -0,0 +1 @@
extends cpp

View File

@ -26,6 +26,11 @@ snippet doc
! Description: $1
! """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
$0
snippet dox
!> @brief ${1}
!> ${2}
!> @author `g:snips_author`
${0}
# Variables definitions
# Boolean
snippet bool
@ -49,7 +54,7 @@ snippet type
snippet const
${1:type}, parameter :: $2 = $0
snippet arr
${1:type}, allocatable, dimension(${2::}) :: $0
${1:type}, ${2:allocatable, }dimension(${3::}) :: $0
snippet intent
${1:type}, intent(inout) :: $0
# Array
@ -57,7 +62,7 @@ snippet /
(/ $1 /) ${2:,&} $0
snippet if
if (${1:condition}) then
$2
$0
end if
snippet case
select case (${1:expr})
@ -66,8 +71,8 @@ snippet case
$3
end select $0
snippet do
do ${1:i} = ${2:start},${3:end}, ${4:incr}
$4
do ${1:i} = ${2:start}, ${3:end}, ${4:incr}
$0
end do
snippet dow
do while (${1:condition})
@ -84,10 +89,10 @@ snippet func
snippet pr
write(*,*) $0
snippet read
read( unit = ${1:fp}, file = ${2:filename}${3:, iostat = IERR }) $0
read(unit = ${1:fp}, file = ${2:filename}, iostat = ${3:ierr}) $0
snippet write
write( unit = ${1:fp}, file = ${2:filename}${3:, iostat = IERR }) $0
write(unit = ${1:fp}, file = ${2:filename}, iostat = ${3:ierr}) $0
snippet open
open (unit = ${1:fp}, file = ${2:filename}, status = unknown${3:, iostat = 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

@ -0,0 +1,14 @@
snippet if # {{#if value}} ... {{/if}}
{{#if ${1:value}}}
${0}
{{/if}}
snippet ifn # {{#unless value}} ... {{/unless}}
{{#unless ${1:value}}}
${0}
{{/unless}}
snippet ife # {{#if value}} ... {{else}} .. {{/if}}
{{#if ${1:value}}}
${2}
{{else}}
${3}
{{/if}}

View File

@ -2,8 +2,12 @@ snippet const
const ${1} = ${0};
snippet let
let ${1} = ${0};
snippet im
import ${1} from '${0}';
snippet im "import xyz from 'xyz'"
import ${1} from '${2:$1}';
snippet imas "import * as xyz from 'xyz'"
import * as ${1} from '${2:$1}';
snippet imm "import { member } from 'xyz'"
import { ${1} } from '${2}';
snippet cla
class ${1} {
${0}
@ -18,9 +22,8 @@ snippet clac
${0}
}
}
# For of loop
snippet foro
for (let ${1:prop} of ${2:object}) {
snippet foro "for (const prop of object}) { ... }"
for (const ${1:prop} of ${2:object}) {
${0:$1}
}
# Generator

View File

@ -5,7 +5,7 @@ snippet ex
module.exports = ${1};
# require
snippet re
${1:var} ${2} = require('${3:module_name}');
${1:const} ${2} = require('${3:module_name}');
# EventEmitter
snippet on
on('${1:event_name}', function(${2:stream}) {

View File

@ -1,15 +1,12 @@
# if {{#value}} ... {{/value}}
snippet if
snippet if # {{#value}} ... {{/value}}
{{#${1:value}}}
${0}
{{/$1}}
# if not {{^value}} ... {{/value}}
snippet ifn
snippet ifn # {{^value}} ... {{/value}}
{{^${1:value}}}
${0}
{{/$1}}
# if else {{#value}} ... {{/value}} {{^value}} ... {{/value}}
snippet ife
snippet ife # {{#value}} ... {{/value}} {{^value}} ... {{/value}}
{{#${1:value}}}
${2}
{{/$1}}

View File

@ -0,0 +1,52 @@
snippet mod
module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')`
(
) where
import Prelude
${0}
snippet imp
import ${0:Data.List}
snippet impq
import ${1:Data.List} as ${0:List}
snippet fn0
${1:name} :: ${2:a}
$1 = ${0:undefined}
snippet fn
${1:fn} :: ${2:a} -> ${3:a}
$1 ${4}= ${0}
snippet fn1
${1:fn} :: ${2:a} -> ${3:a}
$1 ${4}= ${0}
snippet fn2
${1:fn} :: ${2:a} -> ${3:a} -> ${4:a}
$1 ${5}= ${0}
snippet fn3
${1:fn} :: ${2:a} -> ${3:a} -> ${4:a} -> ${5:a}
$1 ${6}= ${0}
snippet case
case ${1} of
${2} -> ${0}
snippet let
let
${1} = ${2}
in
${3}
snippet where
where
${1} = ${0}
snippet testunit
module Test.Main where
import Prelude
import Test.Unit (suite, test)
import Test.Unit.Main (runTest)
import Test.Unit.Assert as Assert
main = runTest do
suite "${1}" do
test "${2:the tests run}" do
Assert.equal
"Hello, world!"
"Hello, sailor!"

View File

@ -325,7 +325,7 @@ snippet xpost
snippet xput
xhr :put, :${1:update}, id: ${2:1}, ${3:object}: ${4:object}
snippet test
test 'should ${1:do something}' do
test '${1:should do something}' do
${0}
end
###########################

View File

@ -1,317 +1,327 @@
#version 1
#PREAMBLE
#newcommand
snippet nc \newcommand
\newcommand{\\${1:cmd}}[${2:opt}]{${3:realcmd}} ${0}
\\newcommand{\\${1:cmd}}[${2:opt}]{${3:realcmd}} ${0}
#usepackage
snippet up \usepackage
\usepackage[${1:options}]{${2:package}} ${0}
\\usepackage[${1:options}]{${2:package}} ${0}
#newunicodechar
snippet nuc \newunicodechar
\newunicodechar{${1}}{${2:\ensuremath}${3:tex-substitute}}} ${0}
\\newunicodechar{${1}}{${2:\\ensuremath}${3:tex-substitute}}} ${0}
#DeclareMathOperator
snippet dmo \DeclareMathOperator
\DeclareMathOperator{${1}}{${2}} ${0}
\\DeclareMathOperator{${1}}{${2}} ${0}
#DOCUMENT
# \begin{}...\end{}
snippet begin \begin{} ... \end{} block
\begin{${1:env}}
\\begin{${1:env}}
${0:${VISUAL}}
\end{$1}
\\end{$1}
# Tabular
snippet tab tabular (or arbitrary) environment
\begin{${1:tabular}}{${2:c}}
\\begin{${1:tabular}}{${2:c}}
${0:${VISUAL}}
\end{$1}
\\end{$1}
snippet thm thm (or arbitrary) environment with optional argument
\begin[${1:author}]{${2:thm}}
\\begin[${1:author}]{${2:thm}}
${0:${VISUAL}}
\end{$2}
\\end{$2}
snippet center center environment
\begin{center}
\\begin{center}
${0:${VISUAL}}
\end{center}
\\end{center}
# Align(ed)
snippet ali align(ed) environment
\begin{align${1:ed}}
\label{eq:${2}}
\\begin{align${1:ed}}
\\label{eq:${2}}
${0:${VISUAL}}
\end{align$1}
\\end{align$1}
# Gather(ed)
snippet gat gather(ed) environment
\begin{gather${1:ed}}
\\begin{gather${1:ed}}
${0:${VISUAL}}
\end{gather$1}
\\end{gather$1}
# Equation
snippet eq equation environment
\begin{equation}
\\begin{equation}
${0:${VISUAL}}
\end{equation}
\\end{equation}
# Equation
snippet eql Labeled equation environment
\begin{equation}
\label{eq:${2}}
\\begin{equation}
\\label{eq:${2}}
${0:${VISUAL}}
\end{equation}
\\end{equation}
# Equation
snippet eq* unnumbered equation environment
\begin{equation*}
\\begin{equation*}
${0:${VISUAL}}
\end{equation*}
\\end{equation*}
# Unnumbered Equation
snippet \ unnumbered equation: \[ ... \]
\[
\\[
${0:${VISUAL}}
\]
\\]
# Equation array
snippet eqnarray eqnarray environment
\begin{eqnarray}
\\begin{eqnarray}
${0:${VISUAL}}
\end{eqnarray}
\\end{eqnarray}
# Label
snippet lab \label
\label{${1:eq:}${2:fig:}${3:tab:}${0}}
\\label{${1:eq:}${2:fig:}${3:tab:}${0}}
# Enumerate
snippet enum enumerate environment
\begin{enumerate}
\item ${0}
\end{enumerate}
\\begin{enumerate}
\\item ${0}
\\end{enumerate}
snippet enuma enumerate environment
\begin{enumerate}[(a)]
\item ${0}
\end{enumerate}
\\begin{enumerate}[(a)]
\\item ${0}
\\end{enumerate}
snippet enumi enumerate environment
\begin{enumerate}[(i)]
\item ${0}
\end{enumerate}
\\begin{enumerate}[(i)]
\\item ${0}
\\end{enumerate}
# Itemize
snippet itemize itemize environment
\begin{itemize}
\item ${0}
\end{itemize}
\\begin{itemize}
\\item ${0}
\\end{itemize}
snippet item \item
\item ${1:${VISUAL}}
\\item ${1:${VISUAL}}
# Description
snippet desc description environment
\begin{description}
\item[${1}] ${0}
\end{description}
\\begin{description}
\\item[${1}] ${0}
\\end{description}
# Endless new item
snippet ]i \item (recursive)
\item ${1}
\\item ${1}
${0:]i}
# Matrix
snippet mat smart matrix environment
\begin{${1:p/b/v/V/B/small}matrix}
\\begin{${1:p/b/v/V/B/small}matrix}
${0:${VISUAL}}
\end{$1matrix}
\\end{$1matrix}
# Cases
snippet cas cases environment
\begin{cases}
${1:equation}, &\text{ if }${2:case}\\
\\begin{cases}
${1:equation}, &\\text{ if }${2:case}\\
${0:${VISUAL}}
\end{cases}
\\end{cases}
# Split
snippet spl split environment
\begin{split}
\\begin{split}
${0:${VISUAL}}
\end{split}
\\end{split}
# Part
snippet part document \part
\part{${1:part name}} % (fold)
\label{prt:${2:$1}}
\\part{${1:part name}} % (fold)
\\label{prt:${2:$1}}
${0}
% part $2 (end)
# Chapter
snippet cha \chapter
\chapter{${1:chapter name}}
\label{cha:${2:$1}}
\\chapter{${1:chapter name}}
\\label{cha:${2:$1}}
${0}
# Section
snippet sec \section
\section{${1:section name}}
\label{sec:${2:$1}}
\\section{${1:section name}}
\\label{sec:${2:$1}}
${0}
# Section without number
snippet sec* \section*
\section*{${1:section name}}
\label{sec:${2:$1}}
\\section*{${1:section name}}
\\label{sec:${2:$1}}
${0}
# Sub Section
snippet sub \subsection
\subsection{${1:subsection name}}
\label{sub:${2:$1}}
\\subsection{${1:subsection name}}
\\label{sub:${2:$1}}
${0}
# Sub Section without number
snippet sub* \subsection*
\subsection*{${1:subsection name}}
\label{sub:${2:$1}}
\\subsection*{${1:subsection name}}
\\label{sub:${2:$1}}
${0}
# Sub Sub Section
snippet subs \subsubsection
\subsubsection{${1:subsubsection name}}
\label{ssub:${2:$1}}
\\subsubsection{${1:subsubsection name}}
\\label{ssub:${2:$1}}
${0}
# Sub Sub Section without number
snippet subs* \subsubsection*
\subsubsection*{${1:subsubsection name}}
\label{ssub:${2:$1}}
\\subsubsection*{${1:subsubsection name}}
\\label{ssub:${2:$1}}
${0}
# Paragraph
snippet par \paragraph
\paragraph{${1:paragraph name}}
\label{par:${2:$1}}
\\paragraph{${1:paragraph name}}
\\label{par:${2:$1}}
${0}
# Sub Paragraph
snippet subp \subparagraph
\subparagraph{${1:subparagraph name}}
\label{subp:${2:$1}}
\\subparagraph{${1:subparagraph name}}
\\label{subp:${2:$1}}
${0}
snippet ni \noindent
\noindent
\\noindent
${0}
#References
snippet itd description \item
\item[${1:description}] ${0:item}
\\item[${1:description}] ${0:item}
snippet figure reference to a figure
${1:Figure}~\ref{${2:fig:}}
${1:Figure}~\\ref{${2:fig:}}
snippet table reference to a table
${1:Table}~\ref{${2:tab:}}
${1:Table}~\\ref{${2:tab:}}
snippet listing reference to a listing
${1:Listing}~\ref{${2:list}}
${1:Listing}~\\ref{${2:list}}
snippet section reference to a section
${1:Section}~\ref{sec:${2}} ${0}
${1:Section}~\\ref{sec:${2}} ${0}
snippet page reference to a page
${1:page}~\pageref{${2}} ${0}
${1:page}~\\pageref{${2}} ${0}
snippet index \index
\index{${1:index}} ${0}
\\index{${1:index}} ${0}
#Citations
snippet citen \citen
\citen{${1}} ${0}
\\citen{${1}} ${0}
# natbib citations
snippet citep \citep
\citep{${1}} ${0}
\\citep{${1}} ${0}
snippet citet \citet
\citet{${1}} ${0}
\\citet{${1}} ${0}
snippet cite \cite[]{}
\cite[${1}]{${2}} ${0}
\\cite[${1}]{${2}} ${0}
snippet citea \citeauthor
\citeauthor{${1}} ${0}
\\citeauthor{${1}} ${0}
snippet citey \citeyear
\citeyear{${1}} ${0}
\\citeyear{${1}} ${0}
snippet fcite \footcite[]{}
\footcite[${1}]{${2}}${0}
\\footcite[${1}]{${2}}${0}
#Formating text: italic, bold, underline, small capital, emphase ..
snippet it italic text
\textit{${0:${VISUAL:text}}}
\\textit{${0:${VISUAL:text}}}
snippet bf bold face text
\textbf{${0:${VISUAL:text}}}
\\textbf{${0:${VISUAL:text}}}
snippet under underline text
\underline{${0:${VISUAL:text}}}
\\underline{${0:${VISUAL:text}}}
snippet emp emphasize text
\emph{${0:${VISUAL:text}}}
\\emph{${0:${VISUAL:text}}}
snippet sc small caps text
\textsc{${0:${VISUAL:text}}}
\\textsc{${0:${VISUAL:text}}}
#Choosing font
snippet sf sans serife text
\textsf{${0:${VISUAL:text}}}
\\textsf{${0:${VISUAL:text}}}
snippet rm roman font text
\textrm{${0:${VISUAL:text}}}
\\textrm{${0:${VISUAL:text}}}
snippet tt typewriter (monospace) text
\texttt{${0:${VISUAL:text}}}
\\texttt{${0:${VISUAL:text}}}
#Math font
snippet mf mathfrak
\mathfrak{${0:${VISUAL:text}}}
\\mathfrak{${0:${VISUAL:text}}}
snippet mc mathcal
\mathcal{${0:${VISUAL:text}}}
\\mathcal{${0:${VISUAL:text}}}
snippet ms mathscr
\mathscr{${0:${VISUAL:text}}}
\\mathscr{${0:${VISUAL:text}}}
#misc
snippet ft \footnote
\footnote{${0:${VISUAL:text}}}
\\footnote{${0:${VISUAL:text}}}
snippet fig figure environment (includegraphics)
\begin{figure}
\begin{center}
\includegraphics[scale=${1}]{Figures/${2}}
\end{center}
\caption{${3}}
\label{fig:${4}}
\end{figure}
\\begin{figure}
\\begin{center}
\\includegraphics[scale=${1}]{Figures/${2}}
\\end{center}
\\caption{${3}}
\\label{fig:${4}}
\\end{figure}
${0}
snippet tikz figure environment (tikzpicture)
\begin{figure}
\begin{center}
\begin{tikzpicture}[scale=${1:1}]
\\begin{figure}[htpb]
\\begin{center}
\\begin{tikzpicture}[scale=${1:1}, transform shape]
${2}
\end{tikzpicture}
\end{center}
\caption{${3}}
\label{fig:${4}}
\end{figure}
\\end{tikzpicture}
\\end{center}
\\caption{${3}}
\\label{fig:${4}}
\\end{figure}
${0}
snippet subfig subfigure environment
\\begin{subfigure}[${1}]{${2:\\textwidth}}
\\begin{center}
${3}
\\end{center}
\\caption{${4}}
\\label{fig:${5}}
\\end{subfigure}
${0}
#math
snippet stackrel \stackrel{}{}
\stackrel{${1:above}}{${2:below}} ${0}
\\stackrel{${1:above}}{${2:below}} ${0}
snippet frac \frac{}{}
\frac{${1:num}}{${2:denom}} ${0}
\\frac{${1:num}}{${2:denom}} ${0}
snippet sum \sum^{}_{}
\sum^{${1:n}}_{${2:i=1}} ${0}
\\sum^{${1:n}}_{${2:i=1}} ${0}
snippet lim \lim_{}
\lim_{${1:n \to \infty}} ${0}
\\lim_{${1:n \\to \\infty}} ${0}
snippet frame frame environment
\begin{frame}[${1:t}]{${2:title}}
\\begin{frame}[${1:t}]{${2:title}}
${0:${VISUAL}}
\end{frame}
\\end{frame}
snippet block block environment
\begin{block}{${1:title}}
${0:${VISUAL}}
\end{block}
\\begin{block}{${1:title}}
${0:${VISUAL}}
\\end{block}
snippet alert alertblock environment
\begin{alertblock}{${1:title}}
${0:${VISUAL}}
\end{alertblock}
\\begin{alertblock}{${1:title}}
${0:${VISUAL}}
\\end{alertblock}
snippet example exampleblock environment
\begin{exampleblock}{${1:title}}
${0:${VISUAL}}
\end{exampleblock}
\\begin{exampleblock}{${1:title}}
${0:${VISUAL}}
\\end{exampleblock}
snippet col2 two-column environment
\begin{columns}
\begin{column}{0.5\textwidth}
\\begin{columns}
\\begin{column}{0.5\\textwidth}
${1}
\end{column}
\begin{column}{0.5\textwidth}
\\end{column}
\\begin{column}{0.5\\textwidth}
${0}
\end{column}
\end{columns}
\\end{column}
\\end{columns}
snippet \{ \{ \}
\\{ ${0} \\}
#delimiter
snippet lr left right
\left${1} ${0} \right$1
snippet lr( left( right)
\left( ${0} \right)
snippet lr| left| right|
\left| ${0} \right|
snippet lr{ left\{ right\}
\left\\{ ${0} \right\\}
snippet lr[ left[ right]
\left[ ${0} \right]
snippet lra langle rangle
\langle ${0} \rangle
\\left${1} ${0} \\right$1
snippet lr( left( right)
\\left( ${0} \\right)
snippet lr| left| right|
\\left| ${0} \\right|
snippet lr{ left\{ right\}
\\left\\{ ${0} \\right\\}
snippet lr[ left[ right]
\\left[ ${0} \\right]
snippet lra langle rangle
\\langle ${0} \\rangle
# Code listings
snippet lst
\begin{listing}[language=${1:language}]
\\begin{listing}[language=${1:language}]
${0:${VISUAL}}
\end{listing}
\\end{listing}
snippet lsi
\lstinline|${1}| ${0}
\\lstinline|${1}| ${0}
# Hyperlinks
snippet url
\url{${1}} ${0}
\\url{${1}} ${0}
snippet href
\href{${1}}{${2}} ${0}
\\href{${1}}{${2}} ${0}
# URL from Clipboard.
snippet urlc
\url{`@+`} ${0}
\\url{`@+`} ${0}
snippet hrefc
\href{`@+`}{${1}} ${0}
\\href{`@+`}{${1}} ${0}