From 6428422cbd2c16a64981fd205395661f718c7a59 Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 12 Sep 2019 21:29:00 +0800 Subject: Simplify init.vim and move settings to autoload and after directory --- after/ftplugin/tex.vim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 after/ftplugin/tex.vim (limited to 'after/ftplugin/tex.vim') 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 -- cgit v1.2.3