aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/markdown.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/ftplugin/markdown.vim')
-rw-r--r--vim/after/ftplugin/markdown.vim39
1 files changed, 0 insertions, 39 deletions
diff --git a/vim/after/ftplugin/markdown.vim b/vim/after/ftplugin/markdown.vim
deleted file mode 100644
index 6634924e..00000000
--- a/vim/after/ftplugin/markdown.vim
+++ /dev/null
@@ -1,39 +0,0 @@
-" 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
-
-" Stop here if the user doesn't want ftplugin mappings
-if exists('no_plugin_maps') || exists('no_markdown_maps')
- finish
-endif
-
-" Quote operator
-nnoremap <buffer> <expr> <LocalLeader>q
- \ quote#Quote()
-xnoremap <buffer> <expr> <LocalLeader>q
- \ quote#Quote()
-let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>q'
- \ . '|xunmap <buffer> <LocalLeader>q'
-
-" Quote operator with reformatting
-nnoremap <buffer> <expr> <LocalLeader>Q
- \ quote#QuoteReformat()
-xnoremap <buffer> <expr> <LocalLeader>Q
- \ quote#QuoteReformat()
-let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>Q'
- \ . '|xunmap <buffer> <LocalLeader>Q'
-
-" Autoformat headings
-nnoremap <buffer> <LocalLeader>-
- \ :<C-U>call markdown#Heading('-')<CR>
-nnoremap <buffer> <LocalLeader>=
- \ :<C-U>call markdown#Heading('=')<CR>