From decbd7ef0d66a0c23c68b34d959892e29bec8315 Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Tue, 20 Dec 2016 10:21:53 +0100 Subject: [PATCH] More tex --- vim/.vim/snippets/tex.snippets | 7 +++++++ vim/.vim/templates/tex | 12 ++++++++++++ vim/.vimrc | 4 ++++ 3 files changed, 23 insertions(+) create mode 100644 vim/.vim/templates/tex diff --git a/vim/.vim/snippets/tex.snippets b/vim/.vim/snippets/tex.snippets index 22f7316..7397ca6 100644 --- a/vim/.vim/snippets/tex.snippets +++ b/vim/.vim/snippets/tex.snippets @@ -101,6 +101,8 @@ snippet subp \label{subp:${2:$1}} ${3} % subparagraph $2 (end) +snippet it + \item ${1:item} snippet itd \item[${1:description}] ${2:item} snippet figure @@ -113,3 +115,8 @@ snippet section ${1:Section}~\ref{${2:sec:}}${3} snippet page ${1:page}~\pageref{${2}}${3} + +snippet title + \title{${1}} + \author{${2}} + \date{${3:\today}} diff --git a/vim/.vim/templates/tex b/vim/.vim/templates/tex new file mode 100644 index 0000000..6fd68b4 --- /dev/null +++ b/vim/.vim/templates/tex @@ -0,0 +1,12 @@ +\document[a4paper,12pt]{} + +% Packages +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[ngerman]{babel} +\usepackage{fancyhdr} +\usepackage{lipsum} + +\begin{document} + +\end{document} diff --git a/vim/.vimrc b/vim/.vimrc index 62cf95c..051c086 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -93,6 +93,10 @@ set noshowmode set listchars=eol:↲,tab:▶▹,nbsp:␣,extends:…,trail:• " }}} +" --- Latex {{{ +au BufRead,BufNewFile *.tex set ft=tex +" }}} + " --- Abbreviations {{{ iab _date =strftime("%A, %d. %B %Y %H:%M") iab _zmail madmaurice@zom.bi