aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/text.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/ftplugin/text.vim')
-rw-r--r--vim/ftplugin/text.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/vim/ftplugin/text.vim b/vim/ftplugin/text.vim
new file mode 100644
index 00000000..15333202
--- /dev/null
+++ b/vim/ftplugin/text.vim
@@ -0,0 +1,11 @@
+" Spellcheck documents by default
+if has('syntax')
+ setlocal spell
+
+ " Undo
+ if !exists('b:undo_ftplugin')
+ let b:undo_ftplugin = ''
+ endif
+ let b:undo_ftplugin = b:undo_ftplugin
+ \ . '|setlocal spell<'
+endif