diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-19 17:20:22 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-19 17:20:22 +1200 |
commit | 02e063a3f3b687e01c1b74647507b20e07560669 (patch) | |
tree | 86612f05a259d1dfddd81c4c9ae807ae5227196f /vim/after/ftplugin | |
parent | Add a spelling abbreviation (diff) | |
download | dotfiles-02e063a3f3b687e01c1b74647507b20e07560669.tar.gz dotfiles-02e063a3f3b687e01c1b74647507b20e07560669.zip |
Don't bother checking for the 'spell' feature
Diffstat (limited to 'vim/after/ftplugin')
-rw-r--r-- | vim/after/ftplugin/markdown.vim | 25 |
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 |