From 6b0187101c6f7c293713271402eaeb96d701c39d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 23 May 2019 09:25:01 +1200 Subject: Break up Markdown ftplugin option settings Just for readability. --- vim/ftplugin/markdown.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'vim') diff --git a/vim/ftplugin/markdown.vim b/vim/ftplugin/markdown.vim index ba7346b1..d2903287 100644 --- a/vim/ftplugin/markdown.vim +++ b/vim/ftplugin/markdown.vim @@ -4,8 +4,14 @@ if exists('b:did_ftplugin') endif let b:did_ftplugin = 1 -setlocal comments=fb:*,fb:-,fb:+,n:> commentstring=>\ %s -setlocal formatoptions+=tcqln formatoptions-=r formatoptions-=o +" Specify format for comments (lists, quotes) +setlocal comments=fb:*,fb:-,fb:+,n:> +setlocal commentstring=>\ %s + +" Specify format options +setlocal formatoptions+=tcqln +setlocal formatoptions-=o +setlocal formatoptions-=r setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^[-*+]\\s\\+\\\|^\\[^\\ze[^\\]]\\+\\]: if exists('b:undo_ftplugin') -- cgit v1.2.3