summaryrefslogtreecommitdiffstats
path: root/vim/ftplugin
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2007-09-09 17:46:35 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2007-09-09 17:46:35 -0500
commit4f13ec9fef25ef0a958b74836e13b342f885feff (patch)
tree6c1d7c7a22c274969d15dbf60f0b81698082ddba /vim/ftplugin
parenta15446b3fd41656efa0677b8f10a9be4ad8b74fd (diff)
downloadconf-4f13ec9fef25ef0a958b74836e13b342f885feff.tar.gz
conf-4f13ec9fef25ef0a958b74836e13b342f885feff.zip
add enhancedcommentify vim script
Diffstat (limited to 'vim/ftplugin')
-rw-r--r--vim/ftplugin/ocaml_enhcomm.vim1
-rw-r--r--vim/ftplugin/php_enhcomm.vim6
2 files changed, 7 insertions, 0 deletions
diff --git a/vim/ftplugin/ocaml_enhcomm.vim b/vim/ftplugin/ocaml_enhcomm.vim
new file mode 100644
index 0000000..7609054
--- /dev/null
+++ b/vim/ftplugin/ocaml_enhcomm.vim
@@ -0,0 +1 @@
+set commentstring=(*%s*)
diff --git a/vim/ftplugin/php_enhcomm.vim b/vim/ftplugin/php_enhcomm.vim
new file mode 100644
index 0000000..b6a9c04
--- /dev/null
+++ b/vim/ftplugin/php_enhcomm.vim
@@ -0,0 +1,6 @@
+"
+" Normal HTML text has no synID-name. So we have to specify this problem
+" case here. Note that you should not try to comment lines starting
+" with '<?'.
+"
+call EnhCommentifyFallback4Embedded('&ft == "php" && synFiletype == ""', "html")