From 02e063a3f3b687e01c1b74647507b20e07560669 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 19 May 2019 17:20:22 +1200 Subject: Don't bother checking for the 'spell' feature --- vim/after/ftplugin/markdown.vim | 25 ++++++++++--------------- 1 file 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 -- cgit v1.2.3