aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-23 09:21:45 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-23 09:21:45 +1200
commitae31e57f80d1898676acb7a12af87e156e9dbeaf (patch)
tree3e24ca38d2136cf52304b038d9b84577f26f9c82 /vim
parentcedcc07facc8d1bf95751135b869bb491e1899c8 (diff)
downloaddotfiles-ae31e57f80d1898676acb7a12af87e156e9dbeaf.tar.gz
Adjust header/footer for Markdown ftplugin
Diffstat (limited to 'vim')
-rw-r--r--vim/ftplugin/markdown.vim10
1 files changed, 3 insertions, 7 deletions
diff --git a/vim/ftplugin/markdown.vim b/vim/ftplugin/markdown.vim
index 8d90aa67..ba7346b1 100644
--- a/vim/ftplugin/markdown.vim
+++ b/vim/ftplugin/markdown.vim
@@ -1,11 +1,8 @@
-" Vim filetype plugin
-" Language: Markdown
-" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
-" Last Change: 2016 Aug 29
-
-if exists("b:did_ftplugin")
+" Only do this when not yet done for this buffer
+if exists('b:did_ftplugin')
finish
endif
+let b:did_ftplugin = 1
setlocal comments=fb:*,fb:-,fb:+,n:> commentstring=>\ %s
setlocal formatoptions+=tcqln formatoptions-=r formatoptions-=o
@@ -89,4 +86,3 @@ nnoremap <buffer> <LocalLeader>-
let b:undo_ftplugin .= '|delcommand MarkdownHeading'
\ . '|nunmap <buffer> <LocalLeader>='
\ . '|nunmap <buffer> <LocalLeader>-'
-" vim:set sw=2: