From f6b1174401967935719a5191d952cb72f696c644 Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Tue, 30 Jan 2018 12:47:06 +0100 Subject: [PATCH] Improvements for tex --- vim/ftplugin/tex.vim | 2 ++ vim/neosnippets/tex.snip | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/vim/ftplugin/tex.vim b/vim/ftplugin/tex.vim index 63a643a..e85ba32 100644 --- a/vim/ftplugin/tex.vim +++ b/vim/ftplugin/tex.vim @@ -23,3 +23,5 @@ set spell spelllang=de " set textwidth for automatic line wrap set tw=80 +" Mappings +nmap d :VimtexDocPackage " Open Package Doc diff --git a/vim/neosnippets/tex.snip b/vim/neosnippets/tex.snip index ff5f957..7f056de 100644 --- a/vim/neosnippets/tex.snip +++ b/vim/neosnippets/tex.snip @@ -23,3 +23,35 @@ options head \begin{satz} ${0} \end{satz} + +snippet e +options head + \emph{${1}}${2} + +snippet b +options head + \textbf{${1}}${2} + +snippet proof +abbr proof +options head + \begin{proof} + ${0} + \end{proof} + +snippet subsection +abbr ss +alias ss +options head + \subsection{${1}}${2} + +snippet subsubsection +abbr sss +alias sss +options head + \subsubsection{${1}}${2} + +snippet sum +abbr sum +options head + \sum_{${0}}^{${1}}${2} \ No newline at end of file