From 3a9c666077d8aa05e014159fc82a489b5d86e4bf Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Sat, 13 Oct 2018 10:12:22 +0200 Subject: [PATCH] Enable spell check and word completion in markdown --- vim/ftplugin/markdown.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/vim/ftplugin/markdown.vim b/vim/ftplugin/markdown.vim index 45da07f..3de7d89 100644 --- a/vim/ftplugin/markdown.vim +++ b/vim/ftplugin/markdown.vim @@ -1,2 +1,18 @@ " set textwidth for automatic line wrap set tw=80 +set spell spelllang=en_us + +" disable real time linting, as it might be distracting +let g:ale_lint_on_text_changed=0 + +" complete english words +setlocal dictionary+=/usr/share/dict/words +" Remove this if you'd like to use fuzzy search +call deoplete#custom#source( + \ 'dictionary', 'matchers', ['matcher_head']) +" If dictionary is already sorted, no need to sort it again. +call deoplete#custom#source( + \ 'dictionary', 'sorters', []) +" Do not complete too short words +call deoplete#custom#source( + \ 'dictionary', 'min_pattern_length', 4)