diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index 95e232e..2d357b4 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -805,6 +805,7 @@ if your face looked like a toaster and a t-rex put together? :( - add support for mp (metapost), thanks to Andrey Skvortsov. - add support for htmlcheetah, thanks to Simon Hengel. - add support for javacc, thanks to Matt Tolton. + - make <%# %> the default delims for eruby, thanks to tpope. 2.2.1 - add support for newlisp and clojure, thanks to Matthew Lee Hinman. diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 3a9e5d5..4ecb5b5 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -305,7 +305,7 @@ function s:SetUpForNewFiletype(filetype, forceReset) elseif a:filetype ==? "erlang" call s:MapDelimiters('%', '') elseif a:filetype ==? "eruby" - call s:MapDelimitersWithAlternative('', '<%#', '%>') + call s:MapDelimitersWithAlternative('<%#', '%>', '') elseif a:filetype ==? "eterm" call s:MapDelimiters('#', '') elseif a:filetype ==? "expect"