From 1301323179d0ff9e462cfb988d3b692abc334ac2 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 25 Oct 2008 11:32:40 +1300 Subject: [PATCH] make haml comments own more --- doc/NERD_commenter.txt | 2 ++ plugin/NERD_commenter.vim | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index 429cd9b..c4a9a31 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -801,6 +801,8 @@ if your face looked like a toaster and a t-rex put together? :( 2.x.x - add support for newlisp, thanks to Matthew Lee Hinman. - fix automake comments, thanks to Elias Pipping + - make haml comments default to -# with / as the alternative delimiter, + thanks to tpope 2.2.0 - rewrote the mappings system to be more "standard". diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 5552c92..303b79e 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -374,7 +374,7 @@ function s:SetUpForNewFiletype(filetype, forceReset) elseif a:filetype == "h" call s:MapDelimitersWithAlternative('//','', '/*','*/') elseif a:filetype == "haml" - call s:MapDelimiters('/', '') + call s:MapDelimitersWithAlternative('-#', '', '/', '') elseif a:filetype == "help" call s:MapDelimiters('"','') elseif a:filetype == "hercules"