From 432fe6b156fe74a512bff3199900652d5e40fd5e Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Mon, 10 Mar 2008 21:14:03 +1300 Subject: [PATCH] applied a patch from Li Jin to add support for 6 more filetypes --- plugin/NERD_commenter.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 2078e1e..fbe4e27 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -344,6 +344,12 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('GEEK_COMMENT:', '') elseif a:filetype == "gentoo-conf-d" call s:MapDelimiters('#', '') + elseif a:filetype == "gentoo-env-d" + call s:MapDelimiters('#', '') + elseif a:filetype == "gentoo-init-d" + call s:MapDelimiters('#', '') + elseif a:filetype == "gentoo-make-conf" + call s:MapDelimiters('#', '') elseif a:filetype == 'gentoo-package-keywords' call s:MapDelimiters('#', '') elseif a:filetype == 'gentoo-package-mask' @@ -354,6 +360,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('#','') elseif a:filetype == "groovy" call s:MapDelimitersWithAlternative('//','', '/*','*/') + elseif a:filetype == "grub" + call s:MapDelimiters('#', '') elseif a:filetype == "gtkrc" call s:MapDelimiters('#', '') elseif a:filetype == "haskell" @@ -480,6 +488,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('>', '') elseif a:filetype == "mma" call s:MapDelimiters('(*','*)') + elseif a:filetype == "modconf" + call s:MapDelimiters('#', '') elseif a:filetype == "model" call s:MapDelimiters('$','$') elseif a:filetype =~ "moduala." @@ -716,6 +726,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('--', '') elseif a:filetype == "strace" call s:MapDelimiters('/*','*/') + elseif a:filetype == "sudoers" + call s:MapDelimiters('#', '') elseif a:filetype == "SVKAnnotate" call s:MapDelimiters('','') elseif a:filetype == "svn"