diff options
-rw-r--r-- | IDEAS.md | 2 | ||||
-rw-r--r-- | vim/after/syntax/mail.vim | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -30,5 +30,3 @@ Ideas * I'd like a Git hook that pre-fills out "Version X.Y.Z" if making an annotated tag named `vX.Y.Z`. * There's no reason to limit `digraph_search.vim` to insert mode only -* Would be good to avoid spell-checking in block code for ft=mail, maybe - imitating however ft=markdown is doing it diff --git a/vim/after/syntax/mail.vim b/vim/after/syntax/mail.vim new file mode 100644 index 00000000..77c76f00 --- /dev/null +++ b/vim/after/syntax/mail.vim @@ -0,0 +1,3 @@ +" Don't spellcheck code in mail messages +syntax region mailCode start='`' end='`' keepend contains=@NoSpell +syntax region mailCodeBlock start=' \{4\}' end='$' contains=@NoSpell |