diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index 8ebcfd7..42de79c 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -807,6 +807,8 @@ if your face looked like a toaster and a t-rex put together? :( - add support for ps1 (powershell), thanks to Jason Mills - add support for hostsaccess, thanks to Thomas Rowe - add support for CVScommit + - add support for asciidoc, git and gitrebase. Thanks to Simon Ruderich. + - use # for gitcommit comments, thanks to Simon Ruderich. 2.2.0 - rewrote the mappings system to be more "standard". @@ -1042,6 +1044,7 @@ Matthew Lee Hinman newlisp Elias Pipping automake Edwin Benavides actionscript, processing Thomas Rowe hostsaccess +Simon Ruderich asciidoc, git, gitcommit, gitrebase ============================================================================== 9. License *NERDComLicense* diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index f08802f..2ee8947 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -145,6 +145,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('#', '') elseif a:filetype == "apachestyle" call s:MapDelimiters('#', '') + elseif a:filetype == "asciidoc" + call s:MapDelimiters('//', '') elseif a:filetype == "applescript" call s:MapDelimitersWithAlternative('--', '', '(*', '*)') elseif a:filetype == "asm68k" @@ -353,14 +355,18 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('#', '') elseif a:filetype == 'gentoo-package-use' call s:MapDelimiters('#', '') + elseif a:filetype == 'git' + call s:MapDelimiters('', '') elseif a:filetype == 'gitAnnotate' call s:MapDelimiters('', '') elseif a:filetype == 'gitcommit' - call s:MapDelimiters('', '') + call s:MapDelimiters('#', '') elseif a:filetype == 'gitconfig' call s:MapDelimiters(';', '') elseif a:filetype == 'gitdiff' call s:MapDelimiters('', '') + elseif a:filetype == 'gitrebase' + call s:MapDelimiters('#', '') elseif a:filetype == "gnuplot" call s:MapDelimiters('#','') elseif a:filetype == "groovy"