summaryrefslogtreecommitdiff
path: root/vim/.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/.vim')
-rw-r--r--vim/.vim/ftplugin/tex.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/vim/.vim/ftplugin/tex.vim b/vim/.vim/ftplugin/tex.vim
new file mode 100644
index 0000000..fc0d53a
--- /dev/null
+++ b/vim/.vim/ftplugin/tex.vim
@@ -0,0 +1,11 @@
+set tabstop=2 softtabstop=0 expandtab shiftwidth=2
+set autoindent
+
+" Test some wrapping on the html
+setlocal textwidth=79
+setlocal formatoptions+=t
+
+" Highlight where the lines are more than 80 characters wide
+setlocal colorcolumn=80
+highlight ColorColumn ctermbg=LightGreen
+