From 2a4a17074e22fe4ce6959d358f23d432191a0493 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 20 Nov 2018 09:50:29 +0800 Subject: vim: Add filetype plugins --- _vim/ftplugin/mail.vim | 9 +++++++++ _vim/ftplugin/python.vim | 6 ++++++ _vim/ftplugin/tex.vim | 7 +++++++ 3 files changed, 22 insertions(+) create mode 100644 _vim/ftplugin/mail.vim create mode 100644 _vim/ftplugin/python.vim create mode 100644 _vim/ftplugin/tex.vim (limited to '_vim/ftplugin') diff --git a/_vim/ftplugin/mail.vim b/_vim/ftplugin/mail.vim new file mode 100644 index 0000000..9b4b732 --- /dev/null +++ b/_vim/ftplugin/mail.vim @@ -0,0 +1,9 @@ +" +" ~/.vim/ftplugin/mail.vim +" + +setlocal spell +setlocal wrap +setlocal textwidth=0 +setlocal wrapmargin=0 +setlocal formatoptions+=w diff --git a/_vim/ftplugin/python.vim b/_vim/ftplugin/python.vim new file mode 100644 index 0000000..1d7624d --- /dev/null +++ b/_vim/ftplugin/python.vim @@ -0,0 +1,6 @@ +" +" ~/.vim/ftplugin/python.vim +" + +setlocal shiftwidth=4 +setlocal expandtab diff --git a/_vim/ftplugin/tex.vim b/_vim/ftplugin/tex.vim new file mode 100644 index 0000000..efdf2d2 --- /dev/null +++ b/_vim/ftplugin/tex.vim @@ -0,0 +1,7 @@ +" +" ~/.vim/ftplugin/tex.vim +" + +setlocal shiftwidth=2 +setlocal expandtab +setlocal spell -- cgit v1.2.2