diff --git a/vim/ftplugin/apache.vim b/vim/ftplugin/apache.vim
new file mode 100644
index 0000000000000000000000000000000000000000..37329a793153152a646f553de4322afbc4891a38
--- /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 0000000000000000000000000000000000000000..0dbe00dd7c8788f869e9333af49773cde630cc8f
--- /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