From d6282ef7a3d3c6b1f5356d0e2a0ffff8fd2512e9 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Fri, 3 Oct 2008 23:19:31 +1300 Subject: [PATCH] add support for txt2tags --- doc/NERD_commenter.txt | 7 ++++--- plugin/NERD_commenter.vim | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index dd099ea..6b12ba6 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -806,9 +806,9 @@ if your face looked like a toaster and a t-rex put together? :( - the default mappings now start with c instead of ,c - see :help NERDComMappings, and :help NERDCreateDefaultMappings for more info - - add support for applescript, calbire, man, SVNcommit and potwiki. Thanks - to nicothakis, timberke, sgronblo, mntnoe, Bernhard Grotz and John - O'Shea respectively. + - add support for applescript, calbire, man, SVNcommit, potwiki, txt2tags. + Thanks to nicothakis, timberke, sgronblo, mntnoe, Bernhard Grotz, John + O'Shea and François respectively. - bugfix for haskell delimiters. Thanks to mntnoe. 2.1.18 - add support for llvm. Thanks to nicothakis. @@ -1025,6 +1025,7 @@ Jerónimo Carballo stata Phillip Kovalev xquery Bernhard Grotz potwiki sgronblo man +François txt2tags ============================================================================== 9. License *NERDComLicense* diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index a3474a0..8d6f40f 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -811,6 +811,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('#', '') elseif a:filetype == "tssgm" call s:MapDelimiters("comment = '","'") + elseif a:filetype == "txt2tags" + call s:MapDelimiters('%','') elseif a:filetype == "uc" call s:MapDelimitersWithAlternative('//','', '/*','*/') elseif a:filetype == "uil"