From 8dbf4ce1451563bf3ba5f779b917c23931ac9b61 Mon Sep 17 00:00:00 2001 From: Chris Coley <chris@codingallnight.com> Date: Mon, 16 Sep 2019 20:50:06 -0700 Subject: [PATCH] Extract the Markdown settings into a plugin --- vim/ftplugin/markdown.vim | 4 ++++ vimrc | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 vim/ftplugin/markdown.vim diff --git a/vim/ftplugin/markdown.vim b/vim/ftplugin/markdown.vim new file mode 100644 index 0000000..5102f2e --- /dev/null +++ b/vim/ftplugin/markdown.vim @@ -0,0 +1,4 @@ +setlocal wrap + +" Set a custom commentstring for the modeline +let b:ml_commentstring = '[_modeline]: # (%s )' diff --git a/vimrc b/vimrc index f27de58..700442e 100644 --- a/vimrc +++ b/vimrc @@ -106,7 +106,6 @@ autocmd FileType gitconfig setlocal commentstring=;%s autocmd FileType go setlocal commentstring=//%s autocmd FileType html setlocal commentstring=<!--%s--> autocmd FileType less setlocal commentstring=/*%s*/ -autocmd FileType markdown setlocal wrap commentstring=[_modeline]:\ #\ (%s\ ) autocmd FileType php setlocal commentstring=//%s autocmd FileType plsql setlocal commentstring=--%s autocmd FileType sass setlocal commentstring=//%s -- GitLab