From 1594b72fb8e9ea6ed4b9ed3c4332cd56b9b9e37c Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Sun, 28 Jan 2018 17:56:45 +0100 Subject: [PATCH] tex improvements --- vim/ftplugin/tex.vim | 3 +++ vim/neosnippets/tex.snip | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/vim/ftplugin/tex.vim b/vim/ftplugin/tex.vim index 484d8b4..63a643a 100644 --- a/vim/ftplugin/tex.vim +++ b/vim/ftplugin/tex.vim @@ -20,3 +20,6 @@ set conceallevel=0 " spell checking set spell set spell spelllang=de + +" set textwidth for automatic line wrap +set tw=80 diff --git a/vim/neosnippets/tex.snip b/vim/neosnippets/tex.snip index 176aab7..ff5f957 100644 --- a/vim/neosnippets/tex.snip +++ b/vim/neosnippets/tex.snip @@ -11,3 +11,15 @@ options head \begin{align${1:#:options}} ${0} \end{align$1} + +snippet sum +abbr sum +options head + \sum_{${0}}^{${1}} + +snippet satz +abbr satz +options head + \begin{satz} + ${0} + \end{satz}