27 Commits

Author SHA1 Message Date
Martin Grenfell
01d6c8c7f6 change version to 2.1.17 2008-07-19 21:03:39 +12:00
Martin Grenfell
89c008b644 disable the ctrl-c mapping by default 2008-07-19 21:02:52 +12:00
Martin Grenfell
1b9033c7ee apply a doc fix path for NERDMapLeader option 2008-07-13 12:12:36 +12:00
Martin Grenfell
165d1e3686 add support for stata 2008-07-13 12:09:22 +12:00
Martin Grenfell
4567fae10f add support for mailcap 2008-07-13 12:09:03 +12:00
Martin Grenfell
2ea675da5e made a hack fix to haskell comments 2008-07-01 23:18:08 +12:00
Martin Grenfell
865d928a1f update changelog and credits 2008-06-27 12:46:56 +12:00
Martin Grenfell
8a0056a610 switch to version 2.1.16 2008-06-27 12:35:32 +12:00
Martin Grenfell
e466dd9418 fix compatibiltiy bug with vim 7.2 2008-06-27 12:35:02 +12:00
Martin Grenfell
a84365f174 switch version to 2.1.15 2008-06-22 12:09:48 +12:00
Martin Grenfell
1fc1decbe9 update changelog 2008-06-22 12:09:19 +12:00
Martin Grenfell
dc8275ffa0 update the header comments 2008-06-22 12:08:11 +12:00
Martin Grenfell
64f0798984 use wtfpl license, remove todo list from the help 2008-06-22 12:03:32 +12:00
Martin Grenfell
01f8df684c add support for group 2008-06-20 21:46:17 +12:00
Martin Grenfell
7c830eb223 remove all trailing whitespace 2008-06-15 21:36:23 +12:00
Martin Grenfell
af0d51d8b3 add support for bzr 2008-06-15 21:34:08 +12:00
Martin Grenfell
650396b1fc update the changelog 2008-05-24 18:55:53 +12:00
Martin Grenfell
cf54bfc7c4 add support for map 2008-05-24 18:55:08 +12:00
Martin Grenfell
6b2cc6c41d add support for mason 2008-05-24 16:35:03 +12:00
Martin Grenfell
e52840527a remove an out of date comment 2008-05-19 15:44:53 +12:00
Martin Grenfell
dee2021b8f fix some indenting in the changelog 2008-05-19 15:43:42 +12:00
Martin Grenfell
2da9787ff1 add support for pamconf 2008-05-19 15:42:19 +12:00
Martin Grenfell
fef5db7e92 change version to 2.1.14 2008-05-17 16:12:27 +12:00
Martin Grenfell
875831209a add support for dtrace 2008-05-17 15:44:36 +12:00
Martin Grenfell
191bb50879 add support for nerdtree 2008-05-17 14:54:44 +12:00
Martin Grenfell
e92b6f60d5 add support for tar 2008-05-15 09:17:51 +12:00
Martin Grenfell
3eea85daa4 add support for gitconfig 2008-05-13 10:51:56 +12:00
2 changed files with 805 additions and 738 deletions

View File

@@ -40,9 +40,9 @@ CONTENTS *NERDCommenterContents*
4.1 Delimiter detection heuristics....|NERDComHeuristics|
4.2 Nesting issues....................|NERDComNesting|
5.The author..............................|NERDComAuthor|
6.TODO list...............................|NERDComTodo|
7.Changelog...............................|NERDComChangelog|
8.Credits.................................|NERDComCredits|
6.Changelog...............................|NERDComChangelog|
7.Credits.................................|NERDComCredits|
8.License.................................|NERDComLicense|
==============================================================================
1. Intro *NERDCommenter*
@@ -111,8 +111,9 @@ Adds comment delimiters to the start of line and goes into insert mode between
them.
<C-c> |NERDComInsertComment|
|NERDComInsertComment|
Adds comment delimiters at the current cursor position and inserts between.
Disabled by default.
,ca |NERDComAltDelim|
@@ -288,13 +289,19 @@ insert mode between the new delimiters.
------------------------------------------------------------------------------
2.2.11 Insert comment map *NERDComInsertComment*
Default mapping: <C-c>
Default mapping: disabled by default.
Change the mapping with: NERDComInInsertMap.
Applicable modes: insert.
Adds comment delimiters at the current cursor position and inserts
between them.
NOTE: prior to version 2.1.17 this was mapped to ctrl-c. To restore this
mapping add >
let NERDComInsertMap='<c-c>'
<
to your vimrc.
------------------------------------------------------------------------------
2.2.12 Use alternate delims map *NERDComAltDelim*
@@ -651,17 +658,17 @@ When we uncomment this line it will go back to what it was.
------------------------------------------------------------------------------
*NERDMapleader*
Values: arbitrary string.
Default: \c
Default: ,c
NERDMapleader is used to specify what all the NERD commenter key mappings
begin with.
The default key mappings will look like this: >
\cc
\cu
\ca
\ci
\cs
,cc
,cu
,ca
,ci
,cs
...
<
However, if this line: >
@@ -839,7 +846,7 @@ will become: >
for simplicity)
==============================================================================
6. The author *NERDComAuthor*
5. The author *NERDComAuthor*
The author of the NERD commenter is Martyzillatron --- the half robot, half
dinosaur bastard son of Megatron and Godzilla. He enjoys destroying
@@ -850,16 +857,32 @@ its a lonely life being the worlds premier terror machine. How would you feel
if your face looked like a toaster and a t-rex put together? :(
==============================================================================
7. TODO list *NERDComTodo*
7. Changelog *NERDComChangelog*
Uncommenting of minimal comments needs to be more robust. Currently it is easy
to get illegal syntax when uncommenting them.
2.1.17
- fixed haskell delimiters (hackily). Thanks to Elias Pipping.
- add support for mailcap. Thanks to Pascal Brueckner.
- add support for stata. Thanks to Jerónimo Carballo.
- applied a patch from ewfalor to fix an error in the help file with the
NERDMapleader doc
- disable the insert mode ctrl-c mapping by default, see :help
NERDComInsertComment if you wish to restore it
2.1.16
- compatibility fix for vim7.2, cheers to Ben Schmidt, David Fishburn, and
Erik Falor for the emails, and to JaGoTerr for posting the issue.
2.1.15
- added pamconf support, thanks to Martin Kustermann
- added mason support, thanks to Indriði Einarsson
- added map support, thanks to Chris
- added bzr support, thanks to Stromnov
- added group support, thanks to Krzysztof A. Adamski
- change license to wtfpl
==============================================================================
8. Changelog *NERDComChangelog*
2.1.14
- added support for gitconfig, tar, nerdtree
- added support for dtrace, thanks to nicothakis for the post
2.1.13
- added support for rib, pyrex/cython, liquid, services, gitcommit,
vimperator, and slice. Thanks to spookypeanut, Greg Jandl, Christophe
@@ -1060,7 +1083,7 @@ for his patch. Thanks to John O'Shea and fREW for the filetype
information.
==============================================================================
8. Credits *NERDComCredits*
7. Credits *NERDComCredits*
Thanks and respect to the following people:
@@ -1186,6 +1209,11 @@ reports about sexy/toggle comments and for testing my fixes.
Thanks to tpope for the english lesson.
Thanks to Ben Schmidt, David Fishburn, and Erik Falor for emailing me about an
incompatibility with vim7.2. Thanks also to JaGoTerr for posting the issue.
Thanks to Elias Pipping for sending me a bug report about haskell commenting.
Not to forget! Thanks to the following people for sending me new filetypes to
support :D
@@ -1235,7 +1263,7 @@ Renald Buter scala
Vladimir Lomov asymptote
Marco mrxvtrc, aap
nicothakis SVNAnnotate, CVSAnnotate, SVKAnnotate,
SVNdiff, gitAnnotate, gitdiff
SVNdiff, gitAnnotate, gitdiff, dtrace
Chen Xing Wikipedia
Jacobo Diaz dakota, patran
Li Jin gentoo-env-d, gentoo-init-d,
@@ -1244,4 +1272,16 @@ SpookeyPeanut rib
Greg Jandl pyrex/cython
Christophe Benz services, gitcommit
A Pontus vimperator
Stromnov slice
Stromnov slice, bzr
Martin Kustermann pamconf
Indriði Einarsson mason
Chris map
Krzysztof A. Adamski group
Pascal Brueckner mailcap
Jerónimo Carballo stata
==============================================================================
8. License *NERDComLicense*
The NERD commenter is released under the wtfpl.
See http://sam.zoy.org/wtfpl/COPYING.

View File

@@ -1,11 +1,16 @@
" vim global plugin that provides easy code commenting for various file types
" Last Change: 4 May 2008
" Maintainer: Martin Grenfell <martin_grenfell at msn.com>
let s:NERD_commenter_version = 2.1.13
" For help documentation type :help NERDCommenter. If this fails, Restart vim
" and try again. If it sill doesnt work... the help page is at the bottom
" of this file.
" ============================================================================
" File: NERD_commenter.vim
" Description: vim global plugin that provides easy code commenting
" Maintainer: Martin Grenfell <martin_grenfell at msn dot com>
" Version: 2.1.17
" Last Change: 27 June, 2008
" License: This program is free software. It comes without any warranty,
" to the extent permitted by applicable law. You can redistribute
" it and/or modify it under the terms of the Do What The Fuck You
" Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
" ============================================================================
" Section: script init stuff {{{1
if exists("loaded_nerd_comments")
@@ -72,7 +77,7 @@ call s:InitVariable("g:NERDAppendComMap", g:NERDMapleader . 'A')
call s:InitVariable("g:NERDComAlignBothMap", g:NERDMapleader . 'b')
call s:InitVariable("g:NERDComAlignLeftMap", g:NERDMapleader . 'l')
call s:InitVariable("g:NERDComAlignRightMap", g:NERDMapleader . 'r')
call s:InitVariable("g:NERDComInInsertMap", '<C-c>')
call s:InitVariable("g:NERDComInInsertMap", '')
call s:InitVariable("g:NERDComLineInvertMap", g:NERDMapleader . 'i')
call s:InitVariable("g:NERDComLineMap", g:NERDMapleader . 'c')
call s:InitVariable("g:NERDComLineNestMap", g:NERDMapleader . 'n')
@@ -200,6 +205,8 @@ function s:SetUpForNewFiletype(filetype, forceReset)
call s:MapDelimiters('%', '')
elseif a:filetype == "btm"
call s:MapDelimiters('::', '')
elseif a:filetype == "bzr"
call s:MapDelimiters('', '')
elseif a:filetype == "caos"
call s:MapDelimiters('*', '')
elseif a:filetype == "catalog"
@@ -290,6 +297,8 @@ function s:SetUpForNewFiletype(filetype, forceReset)
call s:MapDelimiters('<!--','-->')
elseif a:filetype == "dtml"
call s:MapDelimiters('<dtml-comment>','</dtml-comment>')
elseif a:filetype == "dtrace"
call s:MapDelimiters('/*','*/')
elseif a:filetype == "dylan"
call s:MapDelimitersWithAlternative('//','', '/*','*/')
elseif a:filetype == 'ebuild'
@@ -360,18 +369,22 @@ function s:SetUpForNewFiletype(filetype, forceReset)
call s:MapDelimiters('', '')
elseif a:filetype == 'gitcommit'
call s:MapDelimiters('', '')
elseif a:filetype == 'gitconfig'
call s:MapDelimiters(';', '')
elseif a:filetype == 'gitdiff'
call s:MapDelimiters('', '')
elseif a:filetype == "gnuplot"
call s:MapDelimiters('#','')
elseif a:filetype == "groovy"
call s:MapDelimitersWithAlternative('//','', '/*','*/')
elseif a:filetype == "group"
call s:MapDelimiters('','')
elseif a:filetype == "grub"
call s:MapDelimiters('#', '')
elseif a:filetype == "gtkrc"
call s:MapDelimiters('#', '')
elseif a:filetype == "haskell"
call s:MapDelimitersWithAlternative('--','', '{-', '-}')
call s:MapDelimitersWithAlternative('{-','-}', '--', '--')
elseif a:filetype == "hb"
call s:MapDelimiters('#', '')
elseif a:filetype == "h"
@@ -474,14 +487,20 @@ function s:SetUpForNewFiletype(filetype, forceReset)
call s:MapDelimiters('dnl ', '')
elseif a:filetype == "mail"
call s:MapDelimiters('> ','')
elseif a:filetype == "mailcap"
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"
call s:MapDelimiters('<!--', '-->')
elseif a:filetype == "masm"
call s:MapDelimiters(';', '')
elseif a:filetype == "mason"
call s:MapDelimiters('<% #', '%>')
elseif a:filetype == "master"
call s:MapDelimiters('$', '')
elseif a:filetype == "matlab"
@@ -526,6 +545,8 @@ function s:SetUpForNewFiletype(filetype, forceReset)
call s:MapDelimiters('/*', '')
elseif a:filetype == "ncf"
call s:MapDelimiters(';', '')
elseif a:filetype == "nerdtree"
call s:MapDelimiters('', '')
elseif a:filetype == "netdict"
call s:MapDelimiters('', '')
elseif a:filetype == "netrw"
@@ -558,6 +579,8 @@ function s:SetUpForNewFiletype(filetype, forceReset)
call s:MapDelimiters('', '')
elseif a:filetype == "ox"
call s:MapDelimiters('//', '')
elseif a:filetype == "pamconf"
call s:MapDelimiters('#', '')
elseif a:filetype == "pascal"
call s:MapDelimitersWithAlternative('{','}', '(*', '*)')
elseif a:filetype == "passwd"
@@ -738,6 +761,8 @@ function s:SetUpForNewFiletype(filetype, forceReset)
call s:MapDelimiters('#', '')
elseif a:filetype == "st"
call s:MapDelimiters('"','')
elseif a:filetype == "stata"
call s:MapDelimiters('/*','*/')
elseif a:filetype == "stp"
call s:MapDelimiters('--', '')
elseif a:filetype == "strace"
@@ -764,6 +789,8 @@ function s:SetUpForNewFiletype(filetype, forceReset)
call s:MapDelimiters(';', '')
elseif a:filetype == "tak"
call s:MapDelimiters('$', '')
elseif a:filetype == "tar"
call s:MapDelimiters('', '')
elseif a:filetype == "tasm"
call s:MapDelimiters(';', '')
elseif a:filetype == "tcl"