From cf54bfc7c4f9f5978e8cd830b147084e2baa586c Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 24 May 2008 18:55:08 +1200 Subject: [PATCH] add support for map --- doc/NERD_commenter.txt | 2 ++ plugin/NERD_commenter.vim | 2 ++ 2 files changed, 4 insertions(+) diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index 986ded9..0d944c3 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -863,6 +863,7 @@ to get illegal syntax when uncommenting them. 2.1.15 - added support for pamconf, thanks to Martin Kustermann - added support for mason + - added support for map, thanks to Chris 2.1.14 - added support for gitconfig, tar, nerdtree @@ -1254,3 +1255,4 @@ A Pontus vimperator Stromnov slice Martin Kustermann pamconf Indriưi Einarsson mason +Chris map diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 4a615e5..a71f629 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -476,6 +476,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('> ','') elseif a:filetype == "make" call s:MapDelimiters('#','') + elseif a:filetype == "map" + call s:MapDelimiters('%', '') elseif a:filetype == "maple" call s:MapDelimiters('#', '') elseif a:filetype == "markdown"