diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-02 14:34:04 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-02 14:34:04 +1200 |
commit | 682897562b1a1efc1fd993f666a78d5957fc1533 (patch) | |
tree | 5581b01edbaa439bc93e57499302cec0dfabc42c /vim/after/ftplugin/markdown.vim | |
parent | Merge branch 'release/v1.15.0' (diff) | |
parent | Rebuild dotfiles(7) manual (diff) | |
download | dotfiles-1.16.0.tar.gz (sig) dotfiles-1.16.0.zip |
Merge branch 'release/v1.16.0'v1.16.0
* release/v1.16.0:
Rebuild dotfiles(7) manual
Bump VERSION
Update insert_cancel.vim plugin
Add vim config subfile to undo Debian's changes
Provide install-neovim target
Don't shout in CJK in README.md.
Don't spellcheck &readonly text/markdown
Add 'c' flag to 'formatoptions' for gitcommit
Correct <C-L> mapping
Diffstat (limited to 'vim/after/ftplugin/markdown.vim')
-rw-r--r-- | vim/after/ftplugin/markdown.vim | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/vim/after/ftplugin/markdown.vim b/vim/after/ftplugin/markdown.vim index 29d13c71..7ec37c64 100644 --- a/vim/after/ftplugin/markdown.vim +++ b/vim/after/ftplugin/markdown.vim @@ -12,7 +12,9 @@ let b:did_ftplugin_after = 1 let b:undo_ftplugin = b:undo_ftplugin \ . '|unlet b:did_ftplugin_after' -" Spellcheck documents -setlocal spell -let b:undo_ftplugin = b:undo_ftplugin - \ . '|setlocal spell<' +" Spellcheck documents we're actually editing (not just viewing) +if !&readonly + setlocal spell + let b:undo_ftplugin = b:undo_ftplugin + \ . '|setlocal spell<' +endif |