" 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 endif " Stop here if the user doesn't want ftplugin mappings if exists('no_plugin_maps') || exists('no_markdown_maps') finish endif " Quote operator nnoremap q \ quote#Quote() xnoremap q \ quote#Quote() let b:undo_ftplugin .= '|nunmap q' \ . '|xunmap q' " Quote operator with reformatting nnoremap Q \ quote#QuoteReformat() xnoremap Q \ quote#QuoteReformat() let b:undo_ftplugin .= '|nunmap Q' \ . '|xunmap Q'