aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/text.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-08 13:55:18 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-08 13:55:18 +1300
commit8ddb8ba683cee22f930dd48d85a117ce07be5cac (patch)
tree47bbb9e862b227d758ebb9643ab23f649c463d8c /vim/ftplugin/text.vim
parentMerge branch 'hotfix/v0.11.1' (diff)
parentUpdate dotfiles(7) manual from README.md (diff)
downloaddotfiles-8ddb8ba683cee22f930dd48d85a117ce07be5cac.tar.gz
dotfiles-8ddb8ba683cee22f930dd48d85a117ce07be5cac.zip
Merge branch 'release/v0.12.0'v0.12.0
* release/v0.12.0: Update dotfiles(7) manual from README.md Bump version to 0.12.0 Use "nunmap" not "unmap" for b:undo_* var Remove null command from b:undo_* variables Use consistent/thorough ftplugin/indent unloading Add clustering for POSIX shell syntax groups Add `kill` as shStatement Add `break`, `continue`, `return` as shStatement Override commands and variables for syntax/sh.vim Disable unwanted shell error syntax for any shell Break a long conditional in vim/ftdetect/sh.vim Rename b:check and b:lint with sh_ prefix Remove overkill defined-and-false check of sh vars Clear b:check/lint in ftdetect/sh.vim b:undo Move ftplugin/sh.vim b:undo def to end of file Use correct undo variable name in ftplugin/sh.vim Remove superfluous augroups around ftdetect defs Use sh.vim local vars not global POSIX hacks Spell-checked and corrected README.md
Diffstat (limited to 'vim/ftplugin/text.vim')
-rw-r--r--vim/ftplugin/text.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/vim/ftplugin/text.vim b/vim/ftplugin/text.vim
index ab27c2f7..f26fb156 100644
--- a/vim/ftplugin/text.vim
+++ b/vim/ftplugin/text.vim
@@ -1,6 +1,8 @@
" Spellcheck documents by default
if has('syntax')
setlocal spell
- let b:undo_user_ftplugin
- \ = 'setlocal spell<'
endif
+
+" Unload this filetype plugin
+let b:undo_user_ftplugin
+ \ = 'silent! setlocal spell<'