aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-19 17:20:22 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-19 17:20:22 +1200
commit02e063a3f3b687e01c1b74647507b20e07560669 (patch)
tree86612f05a259d1dfddd81c4c9ae807ae5227196f
parentAdd a spelling abbreviation (diff)
downloaddotfiles-02e063a3f3b687e01c1b74647507b20e07560669.tar.gz
dotfiles-02e063a3f3b687e01c1b74647507b20e07560669.zip
Don't bother checking for the 'spell' feature
-rw-r--r--vim/after/ftplugin/markdown.vim25
1 files changed, 10 insertions, 15 deletions
diff --git a/vim/after/ftplugin/markdown.vim b/vim/after/ftplugin/markdown.vim
index b5919b20..7189a09a 100644
--- a/vim/after/ftplugin/markdown.vim
+++ b/vim/after/ftplugin/markdown.vim
@@ -1,19 +1,14 @@
-" Spellchecking features
-if has('spell')
-
- " Spellcheck documents we're actually editing (not just viewing)
- if &modifiable && !&readonly
- setlocal spell
- let b:undo_ftplugin .= '|setlocal spell<'
- endif
-
- " Tolerate leading lowercase letters in README.md files, for things like
- " headings being filenames
- if expand('%:t') ==# 'README.md'
- setlocal spellcapcheck=
- let b:undo_ftplugin .= '|setlocal spellcapcheck<'
- endif
+" Spellcheck documents we're actually editing (not just viewing)
+if &modifiable && !&readonly
+ setlocal spell
+ let b:undo_ftplugin .= '|setlocal spell<'
+endif
+" Tolerate leading lowercase letters in README.md files, for things like
+" headings being filenames
+if expand('%:t') ==# 'README.md'
+ setlocal spellcapcheck=
+ let b:undo_ftplugin .= '|setlocal spellcapcheck<'
endif
" Stop here if the user doesn't want ftplugin mappings