From 99f74da95f99e76f02c36da30582c2ab77d31fe4 Mon Sep 17 00:00:00 2001 From: Chris Coley <chris@codingallnight.com> Date: Thu, 26 Jan 2023 04:24:30 -0800 Subject: [PATCH] Add VIM file type plugins for Apache and XML --- vim/ftplugin/apache.vim | 4 ++++ vim/ftplugin/xml.vim | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 vim/ftplugin/apache.vim create mode 100644 vim/ftplugin/xml.vim diff --git a/vim/ftplugin/apache.vim b/vim/ftplugin/apache.vim new file mode 100644 index 0000000..37329a7 --- /dev/null +++ b/vim/ftplugin/apache.vim @@ -0,0 +1,4 @@ +" Only set the b:ml_commentstring if it hasn't already been set +if !exists("b:ml_commentstring") + let b:ml_commentstring = '# %s' +end diff --git a/vim/ftplugin/xml.vim b/vim/ftplugin/xml.vim new file mode 100644 index 0000000..0dbe00d --- /dev/null +++ b/vim/ftplugin/xml.vim @@ -0,0 +1,5 @@ +" Only set the b:ml_commentstring if it hasn't already been set +if !exists("b:ml_commentstring") + " Add whitespace to the modeline commentstring + let b:ml_commentstring = '<!-- %s -->' +end -- GitLab