diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-04 22:35:49 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-04 22:41:17 +1200 |
commit | a14bc50707592944bf6e327c912bb197de98ec00 (patch) | |
tree | f87b3a7c5bfaa116e846c227a8de137c9a08439d /vim/ftplugin/markdown/spell.vim | |
parent | Make private copy of ftplugin/markdown.vim (diff) | |
download | dotfiles-a14bc50707592944bf6e327c912bb197de98ec00.tar.gz dotfiles-a14bc50707592944bf6e327c912bb197de98ec00.zip |
Move Markdown and PHP ftplugins from after dir
Because we use our own private copies of the primary filetype plugins,
they'll get loaded in the correct order from here.
Also adjust Makefile to accommodate the extra level.
Diffstat (limited to 'vim/ftplugin/markdown/spell.vim')
-rw-r--r-- | vim/ftplugin/markdown/spell.vim | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vim/ftplugin/markdown/spell.vim b/vim/ftplugin/markdown/spell.vim new file mode 100644 index 00000000..05fc7c00 --- /dev/null +++ b/vim/ftplugin/markdown/spell.vim @@ -0,0 +1,21 @@ +" Only do this when not done yet for this buffer +" Also do nothing if 'compatible' enabled, or if the 'spell' feature isn't +" available +if exists('b:did_ftplugin_markdown_spell') || &compatible + finish +endif +if !has('spell') + finish +endif +let b:did_ftplugin_markdown_spell = 1 +if exists('b:undo_ftplugin') + let b:undo_ftplugin = b:undo_ftplugin + \ . '|unlet b:did_ftplugin_markdown_spell' +endif + +" Spellcheck documents by default +setlocal spell +if exists('b:undo_ftplugin') + let b:undo_ftplugin = b:undo_ftplugin + \ . '|setlocal spell<' +endif |