aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-23 09:58:35 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-23 09:58:35 +1200
commit16ad93476a0258688464918cdbd7fcbc25ab6cc5 (patch)
tree5d968f40fb3ac42e815fb84e214de8600cbd982e /vim
parent67858c848fe217469bd457c6767f712de43409f5 (diff)
downloaddotfiles-16ad93476a0258688464918cdbd7fcbc25ab6cc5.tar.gz
Give credit to Tim Pope
Diffstat (limited to 'vim')
-rw-r--r--vim/ftplugin/markdown.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/ftplugin/markdown.vim b/vim/ftplugin/markdown.vim
index f98f7420..60e3667c 100644
--- a/vim/ftplugin/markdown.vim
+++ b/vim/ftplugin/markdown.vim
@@ -12,12 +12,12 @@ setlocal comments+=n:> " Mail-style quotes
let &l:commentstring = '> %s'
let b:undo_ftplugin = 'setlocal comments< commentstring<'
-" Specify format options
+" Specify format options (Tim Pope)
setlocal formatoptions+=ln
let &l:formatlistpat = '^\s*\d\+\.\s\+\|^[-*+]\s\+\|^\[^\ze[^\]]\+\]:'
let b:undo_ftplugin .= '|setlocal formatoptions< formatlistpat<'
-" Let's try this heading-based fold method out
+" Let's try this heading-based fold method out (Tim Pope)
function! MarkdownFold()
let line = getline(v:lnum)