aboutsummaryrefslogtreecommitdiff
path: root/after/ftplugin/tex.vim
diff options
context:
space:
mode:
Diffstat (limited to 'after/ftplugin/tex.vim')
-rw-r--r--after/ftplugin/tex.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/after/ftplugin/tex.vim b/after/ftplugin/tex.vim
new file mode 100644
index 0000000..1181e79
--- /dev/null
+++ b/after/ftplugin/tex.vim
@@ -0,0 +1,6 @@
+" Only use the following character pairs for tex file
+if &runtimepath =~? 'auto-pairs'
+ let b:AutoPairs = AutoPairsDefine({'<' : '>'})
+ let b:AutoPairs = {'(':')', '[':']', '{':'}', '<':'>'}
+endif
+set textwidth=79