395 Commits

Author SHA1 Message Date
fcying
9a32fd2534 Add NERDToggleCheckAllLines option to NERDCommenterToggle (#334) 2018-06-21 11:06:22 +03:00
Jiaobuzuji
e679d8a341 Add support for 'sdc' filetype (#327) 2018-03-03 15:16:47 +03:00
dandersson
670dba1bb5 Add support for Robot Framework files (#323) 2018-02-07 12:19:12 +03:00
Sean
2f973bd4fa Fix Markdown formatting 2018-02-02 12:56:54 +03:00
tlsvc
ff3d8d7d7c Add support for ANSYS Parametric Design Language (apdl) (#317) 2018-01-13 11:47:04 +03:00
Alec Shaw
af8bb4258d Add support for Praat scripting language (#316)
[Praat][1] is a program for phonetics research which has a scripting interface.

[1]: http://www.fon.hum.uva.nl/praat/
2017-12-26 11:02:19 +03:00
Caleb Maclennan
fd61bc71f6 Udate version and date strings 2017-11-07 10:46:22 +03:00
Caleb Maclennan
3e99b39f4f Add sshconfig filetype to complement sshdconfig
Mentioned in #313
2017-11-07 10:38:04 +03:00
Caleb Maclennan
09b07d50ba Merge branch 'pr/266'
Closes #266
2017-11-07 10:17:06 +03:00
Caleb Maclennan
013cfec44d Merge branch 'pr/279'
Closes #279

Since original author of this PR has deleted their Github account
I squashed their two commits and added one to fix the issue with the
implementation as noted in the PR.
2017-11-07 10:12:51 +03:00
Caleb Maclennan
d4548ebb0c Fix implementation of renpy to not include python hack 2017-11-07 10:12:00 +03:00
Komeji Koishi
c321b3460b Added filetype 'renpy' support.
Renpy is an extension of python syntax and it uses '#' comments.
2017-11-07 10:11:59 +03:00
Carlos Eduardo de Andrade
63ba1a1123 Adding support to MiniZinc constraint modeling language. (#311) 2017-10-31 18:53:26 +02:00
Ratan
376838672d Add julia multiline comment chars (#312) 2017-10-31 18:52:28 +02:00
Caleb Maclennan
285902752f Cleanup code formatting in file support matrix 2017-04-07 11:53:35 +03:00
m-pilia
d1ac2382b2 add gl shaders language (#293) 2017-04-06 13:59:25 +03:00
Lyude
a6b3cc6842 Add support for piglit's shader_test files (#292)
This adds support for shader_test files in piglit, the open source
test suite for OpenGL implementations such as mesa. More information on
piglit can be found at:

https://piglit.freedesktop.org/
2017-03-25 13:19:06 +02:00
Caleb Maclennan
d05cfd190b Revert "add support for react/jsx comments (Closes #280) (#290)"
This reverts commit 0e1f6f6866.

Given the unexpected behaviour of this and disruption to people's
established work flows, I'm reverting this until a better solution can
be found that only handles the special comment format inside React code
blocks.
2017-03-15 13:18:09 +03:00
Lucas Charles
0e1f6f6866 add support for react/jsx comments (Closes #280) (#290) 2017-03-12 09:08:58 +02:00
Dylan Baker
41e686824a Add support for the meson build system. (#289) 2017-02-28 08:04:50 +02:00
Zack Youngren
59552f2e88 Add multi-line comments for Elm (#283)
Technically the minimum necessary syntax for block comments requires
only a single hyphen (`-}`, `{-`), but I have found that using a double
hyphen plays a bit more nicely with the elmcast/elm-vim auto-formatting.
Further, uncommenting when using the single dashes leaves an extra level
of indentation (again, when using elmcast/elm-vim).
2017-02-20 09:08:14 +02:00
Alexandr
c5f8cbf70d Fix removing space when uncommenting spaced AltDelims multipart comment (#286) 2017-02-20 09:03:41 +02:00
alejandrogallo
607253203d Add gitignore support (#284) 2017-01-22 08:05:45 +02:00
Chuck Wilson
18cfe81550 Add support for augeas file types (#277) 2016-12-15 10:06:26 +02:00
Chris Linstid
057f6150bd Add ansible file type (#276) 2016-11-17 07:01:25 +02:00
Jorge Marin
ecdde217c0 Remove trailing whitespace for top and bottom line (#269)
Fixes #268

Remove trailing whitespace for top and bottom line when uncommenting a sexy commented block.
2016-11-15 17:20:51 +02:00
Alejandro Gallo
e1af5dae7d Add support for molpro and vasp chemistry packages
Closes #275
2016-11-15 18:15:54 +03:00
Roland Hieber
97cb982f1f add support for M4 macro processor (#271)
M4 knows about two types of ignoring text.  But the concept which the
GNU M4 manual refers to as "comments" [0] (i.e., lines prefixed with
hash signs) is actually telling the interpreter "ignore this text, but
pass it to the output".  Most of the time, people don't want the macro
comments in their output, so instead the `dnl` ("discard to next line")
macro [1] is usually used for comments in the document-my-thoughts
sense.

[0]: https://www.gnu.org/software/m4/manual/m4.html#Comments
[1]: https://www.gnu.org/software/m4/manual/m4.html#Dnl
2016-10-10 17:24:21 +03:00
Caleb Maclennan
3d13266034 Add alternate delimiters for autohotkey (matching ahk)
Fixes #272
2016-10-10 17:21:01 +03:00
Aluriak
c51f5992b2 add support for turtle (.ttl) files 2016-09-10 01:20:29 +02:00
Caleb Maclennan
fdc611c8f4 Enable TrimTrailingWhitespace when commenting (#264)
Previously the `NERDTrimTrailingWhitespace` option was only evaluated when uncommenting a line. However sometimes trailing whitespace was being added when commenting, notably when commenting empty lines. This checks for and removes such space at comment time.
2016-08-31 11:42:37 +03:00
kaidiren
45689b2356 can enable TrimTrailingWhitespace when comment 2016-08-31 14:32:26 +08:00
Wael M. Nasreddine
c3d6a2069b README.md: fix vim-plug installation instructions (#254) 2016-07-14 13:13:26 +03:00
Keunchan Park
ec0f4753d0 Add hive filetype (#255) 2016-07-14 13:12:25 +03:00
Alexandre Constantino
e2d47bec26 Add option to allow deleting trailing whitespace (#251)
Add option g:NERDTrimTrailingWhitespace to allow deleting trailing
whitespace when uncommenting a line.
2016-06-10 17:49:17 +03:00
Alexandre Constantino
e1aeec12be Allow commenting empty lines given configuration (#250)
* Allow commenting empty lines given configuration

    If g:NERDCommentEmptyLines=1 then it will comment empty line, which is
    useful when commenting blocks.

    When uncommenting it will delete any trailing whitespace.

* Add documentation for NERDCommentEmptyLines
2016-06-08 17:00:05 +03:00
Caleb Maclennan
06c3184b2e Merge pull request #249 from xream/master
Add hook functions for NERDComment and SwitchToAlternativeDelimiters
2016-05-31 17:59:10 +03:00
Hsiaoyi Hsu
ce414bf622 Add filetype pug. Jade has been renamed to pug. 2016-05-31 22:30:37 +08:00
Hsiaoyi Hsu
dde288a9cc Add doc for NERDComHooks and fix doc of NERDComSexyComments and NERDComNERDComment 2016-05-31 22:27:10 +08:00
Hsiaoyi Hsu
7f07dcde28 Add hook functions for NERDComment and SwitchToAlternativeDelimiters 2016-05-31 14:28:56 +08:00
Caleb Maclennan
63bd306a7e Sort file type list alphabetically 2016-05-27 09:04:44 +03:00
Lucas Bourneuf
df647acefc fix asp support (doublon) 2016-05-27 08:59:05 +03:00
ARM9
e48cc752f3 Fix rust Alt comments (#248) 2016-05-26 17:25:29 +03:00
Alexander Alzate
4760e57514 Start Insertion in Append Mode When no Right Delim (#234) 2016-05-26 08:24:47 +03:00
dkim
c3afedbe22 Use getbufvar in an old-fashioned way for backward compatibility (#247)
getbufvar accepts only two arguments in Vim 7.3 (at least the one
included in OS X 10.11.5), and returns an empty string when the buffer
or variable does not exist: getbufvar({buffer}, {variable}).

Vim 7.4 has extended the built-in function so that it additionally
accepts an optional argument which determines the default return value:
getbufvar({buffer}, {variable}, [, {default}]). When the third argument
is not given and the buffer or variable does not exists, getbufvar
returns an empty string as before.

getbufvar({buffer}, {variable}) works in both Vim 7.3 and 7.4, and is
practically equivalent to getbufvar({buffer}, {variable}, 0) because an
empty string is coerced to 0 if necessary.
2016-05-25 23:17:10 +03:00
Caleb Maclennan
e91be123f0 Simplify and document the config key for toggling language defaults
Closes #33
2016-05-24 20:55:37 +03:00
Caleb Maclennan
8291af4c7c Merge pull request #155 from saep/master
Implement functionality to chose the alternative comment style
2016-05-24 20:50:59 +03:00
Caleb Maclennan
6af02e1442 Fix powershell blooper 2016-05-24 20:22:04 +03:00
Caleb Maclennan
9425289459 Add common settings and overhaul README formatting, esp. bindings section 2016-05-24 20:14:10 +03:00
Caleb Maclennan
9e8410e1b9 Overhaul installation instructions
See discussion in #241
2016-05-24 19:50:50 +03:00
Caleb Maclennan
d59f0b614f Merge pull request #241 from zwhitchcox/master
alternative pathogen download instructions
2016-05-24 19:09:56 +03:00
zane.hitchcox@one.verizon.com
1158546091 include entire repository in manual install 2016-05-24 11:09:20 -05:00
Zane Hitchcox
0cbbcb5674 alternative pathogen download instructions 2016-05-24 10:41:58 -05:00
Caleb Maclennan
ff0b875c8d Add alt delimiter to R filetype for Roxygen strings 2016-05-24 18:02:14 +03:00
Caleb Maclennan
e0c4a25696 Merge pull request #246 from stevenweaver/master
adding hyphy filetype
2016-05-24 17:42:48 +03:00
Caleb Maclennan
00e9729661 Add multiline delimiter support to ASY file type 2016-05-24 17:36:01 +03:00
Caleb Maclennan
1d07874610 Add ASP filetype support 2016-05-24 17:35:14 +03:00
Caleb Maclennan
560d7f0f77 Merge pull request #245 from hightemp/master
Add ruby multiline comment tags
2016-05-24 17:09:28 +03:00
Caleb Maclennan
0a186faad1 Merge pull request #244 from svermeulen/working
Add file format and function for identifying commented lines from outside plugin
2016-05-24 17:04:55 +03:00
Caleb Maclennan
32cd2b9362 Merge pull request #243 from sailorfeng/master
Add lpc filetype support
2016-05-24 16:57:44 +03:00
Caleb Maclennan
821fa9ad9e Merge pull request #242 from lanjiann/master
Pull in documentation updates from old fork (found in network graph)
2016-05-24 16:56:03 +03:00
Caleb Maclennan
264be25aa1 Use full English names when explaining functions 2016-05-24 16:24:20 +03:00
Caleb Maclennan
ec802fe1d3 Merge pull request #151 from klaasb/realnesting
Support automatic real nesting of comments without placeholders, if supported by the language.
2016-05-24 16:17:09 +03:00
Klaas Boesche
c2fc065b33 Automatic real nesting for languages with support
Removes the placeholder workaround (forceNested) for languages which
allow truly nested comments and automatically applies them.
Enabled for haskell, racket, scheme, scala, lisp, ocaml, sml.
Fixes issue #131
2016-05-24 13:52:21 +02:00
Caleb Maclennan
2b3714bff6 Bump release number for the benefit of plugin managers that update to tags 2016-05-24 14:04:07 +03:00
Caleb Maclennan
45d94964ba Merge pull request #230 from sbdchd/ruby
updated ruby comment to fit with ruby style guide
2016-05-24 11:59:30 +03:00
Caleb Maclennan
dad084190d Update maintainer contact information 2016-05-24 11:50:30 +03:00
Caleb Maclennan
917bc892dc Add delimiter for Paludis filetype
Closes #229
2016-05-24 11:10:31 +03:00
Caleb Maclennan
dcd63ec026 Add delimiters for Laravel filetype
Closes #219
2016-05-24 10:59:25 +03:00
Caleb Maclennan
ef692d5a91 Update Rust filetype with alternate comment delimiters
Closes #206
2016-05-24 10:48:03 +03:00
Caleb Maclennan
887232b8fe Add cython and pyrex python dialects
Closes #199
2016-05-24 10:40:17 +03:00
Caleb Maclennan
9b86e000f2 Add work around to support lazy-loading
Closes #176, thanks to @chilicuil.
2016-05-24 10:26:09 +03:00
Caleb Maclennan
a5b5caff08 Add spin filetype support
Closes #154, thanks to @hmaarrfk.
2016-05-24 09:59:24 +03:00
Caleb Maclennan
08689c3f5c Add multiline delimiter for Matlab
Closes #138, thanks to @hmaarrfk.
2016-05-24 09:51:07 +03:00
Caleb Maclennan
1d4e02c670 Add block comment delimiter as alternate for CoffeeScript
Closes #118
2016-05-24 09:27:33 +03:00
Caleb Maclennan
38d77f64cf Add plain LaTeX file type support
Closes #105
2016-05-24 09:07:12 +03:00
Caleb Maclennan
4ebe5a9c5c Merge pull request #239 from davidjb/master
Reapply PR #183 for Python comments, PR #100 undid this
2016-05-24 08:57:49 +03:00
Caleb Maclennan
90315ecf20 Add ss (lisp scheme) filetype support
Closes #61
2016-05-24 08:49:48 +03:00
Caleb Maclennan
902837e2b1 Add support for snippets files
Closes #56
2016-05-24 08:46:24 +03:00
Caleb Maclennan
247421c0ba Add alternate block-wise comment syntax
Per @gf3's comment on issue #40, this seems to be more complete support
over the bare PR I merged from #100.
2016-05-24 08:16:57 +03:00
Caleb Maclennan
81d0709db4 Merge pull request #238 from mathstuf/fix-spelling-problems
spelling: fix spelling issues
2016-05-24 07:30:08 +03:00
Caleb Maclennan
e482d8a9c4 Merge pull request #117 from ypid/master
Support for esmtprc and upstart.
2016-05-24 07:25:54 +03:00
Caleb Maclennan
a6f2bc084a Merge pull request #164 from jonatanolofsson/master
Add support for tupfiles
2016-05-24 07:23:25 +03:00
Caleb Maclennan
6d97fbbd16 Merge pull request #158 from spk/add_privoxy_support
Added privoxy support
2016-05-24 07:22:21 +03:00
Szymon Śliwa
bfd80feb6f added Coq support
Closes #156

[caleb@alerque.com: Drop redundant alternate comment delimiters]
Signed-off-by: Caleb Maclennan <caleb@alerque.com>
2016-05-24 07:21:46 +03:00
David Beitey
c3a82f40c2 Reapply PR #183, PR #100 undid this 2016-05-24 10:17:33 +10:00
Ben Boeckel
180d46c300 spelling: fix spelling issues 2016-05-23 16:53:22 -04:00
Caleb Maclennan
b2dca140df Merge pull request #232 from suoto/master
Adding config state handling before/after line comments
2016-05-23 22:52:30 +03:00
Caleb Maclennan
e6e67e9470 Merge pull request #231 from sbdchd/scss
updated scss comment style to correspond to the style guide
2016-05-23 22:52:03 +03:00
Caleb Maclennan
bc40eac0c6 Merge pull request #228 from alerque/sile
Add comment syntax for SILE
2016-05-23 22:51:14 +03:00
Caleb Maclennan
34e885bb8c Merge pull request #227 from DenisKolodin/ts-rs
Add Rust and TypeScript rules
2016-05-23 22:49:06 +03:00
Caleb Maclennan
0efb6c92bc Merge pull request #222 from hoyon/master
Add support for rust
2016-05-23 22:47:35 +03:00
Caleb Maclennan
cdf903440d Merge pull request #220 from clinstid/master
Add support for terraform files
2016-05-23 22:46:57 +03:00
Aditya Vaidya
f129cd81c8 Changed Markdown comment to HTML-style
Closes #218

Works at least with pandoc. The older version (the character '>') did not work in pandoc.
2016-05-23 22:45:20 +03:00
Caleb Maclennan
3e269b53e4 Merge pull request #215 from atk91/patch-1
Update README.md
2016-05-23 22:44:15 +03:00
Caleb Maclennan
6e6de4e2a4 Merge pull request #213 from harlanhaskins/patch-1
Added Swift comment map
2016-05-23 22:43:12 +03:00
Caleb Maclennan
789c248ad4 Merge pull request #172 from kballard/add-toml-delimiters
Add delimiters for TOML
2016-05-23 22:41:42 +03:00
rgscherf
c7f339ee4e add elmlang support
Closes #208
2016-05-23 22:39:32 +03:00
Caleb Maclennan
a7f679d3b8 Merge pull request #207 from neingeist/master
Add Nagios config file support
2016-05-23 22:37:23 +03:00
Caleb Maclennan
d237cd666d Merge pull request #201 from sivakumar-kailasam/master
Adds support for handlebars file formats
2016-05-23 22:36:50 +03:00
Caleb Maclennan
6210dfa635 Merge pull request #198 from RatanRSur/patch-1
added support for julia
2016-05-23 22:33:14 +03:00
Caleb Maclennan
27108c45bc Merge pull request #193 from wcamarao/master
Add config to allow commenting empty lines (useful for Golang's godoc)
2016-05-23 22:32:14 +03:00
Caleb Maclennan
00592883c1 Merge pull request #192 from elyscape/add_sshdconfig_support
Add support for sshdconfig files
2016-05-23 22:26:04 +03:00
Caleb Maclennan
a458fcc036 Merge pull request #187 from reisgabrieljoao/master
Correct bib comment delimiter.
2016-05-23 22:13:49 +03:00
Caleb Maclennan
8c9ae8c1ac Merge remote-tracking branch 'upstream/pr/180'
Closes #180
2016-05-23 22:12:28 +03:00
Caleb Maclennan
e5b202fd43 Merge remote-tracking branch 'upstream/pr/177'
Closes #177
2016-05-23 22:04:03 +03:00
Ashley Blackmore
88ef57e098 add commenting for jinja templates
Closes #149
2016-05-23 21:58:14 +03:00
Keith Hughitt
d9f96ceaf3 Added support for RMarkdown files
Closes #148
2016-05-23 21:55:16 +03:00
Caleb Maclennan
a35f1ebd0b Merge pull request #146 from davidjb/patch-2
Add YAML and Salt state (SLS) comment mapping
2016-05-23 21:49:17 +03:00
Caleb Maclennan
f26ec29dd4 Merge remote-tracking branch 'upstream/pr/144'
Closes #144
2016-05-23 21:48:08 +03:00
Caleb Maclennan
969219e62b Merge pull request #132 from mdlerch/master
Add support for stan bayesian modeling language
2016-05-23 21:36:20 +03:00
Caleb Maclennan
2d702c9619 Merge pull request #130 from Garonenur/space
remove space at end of appended comment
2016-05-23 21:32:03 +03:00
Caleb Maclennan
d672296a34 Merge pull request #129 from bass3m/master
Support for Julia
2016-05-23 21:30:12 +03:00
Caleb Maclennan
0d1fd7ff66 Merge pull request #126 from spikegrobstein/dockerfile_comments
added Dockerfile comment support
2016-05-23 21:29:03 +03:00
Caleb Maclennan
e5b0235247 Merge pull request #124 from ethinx/stp
change the comment style for systemtap (.stp)
2016-05-23 21:27:42 +03:00
Caleb Maclennan
cb98e173e7 Merge pull request #120 from pbugnion/master
Added support for fortran and yaml filetypes
2016-05-23 20:56:47 +03:00
Caleb Maclennan
5c61776994 Merge pull request #139 from statusfailed/idris-syntax-patch
Support for Idris
2016-05-23 20:53:02 +03:00
Caleb Maclennan
4fc52fd698 Merge pull request #113 from heartsentwined/emblem
add support for emblem
2016-05-23 20:23:49 +03:00
Caleb Maclennan
7e75415e4d Merge pull request #111 from heartsentwined/ember-script
add support for ember-script
2016-05-23 20:18:28 +03:00
Caleb Maclennan
7bc40e53c0 Merge pull request #108 from jeremyjh/master
Add Elixir language support
2016-05-23 20:16:41 +03:00
Caleb Maclennan
d5b14f2c51 Merge pull request #103 from alanfranz/patch-1
Fix: missing escaping of < and > .
2016-05-23 19:49:55 +03:00
Caleb Maclennan
8d3dcc26a6 Merge pull request #100 from pwightman/patch-1
Support for racket language.
2016-05-23 19:45:50 +03:00
Caleb Maclennan
34e0115ffa Merge pull request #24 from ervandew/master
Default alignment option + ability to align at index 0.
2016-05-23 19:08:24 +03:00
Steven Weaver
60bd8664ba adding hyphy filetype 2016-04-19 15:51:07 -04:00
Laurent Arnoud
ca46be883e Added privoxy support 2016-03-05 18:42:09 +01:00
Steve Dignam
76afa5ba37 updated scss comment style to correspond to the style guide 2016-03-02 14:51:10 -05:00
Steve Dignam
d1de6136ba updated ruby comment to fit with ruby style guide 2016-03-02 01:05:28 -05:00
Andre Souto
94ecc6c282 Adding config state handling before/after line comments 2016-02-22 09:46:45 -03:00
Caleb Maclennan
668c8a7336 Add comment syntax for SILE
Sile is a typesetter somewhat similar to LaTeX that uses two different
possible input formats. Input can be XML which is already covered or
there is a TeX like input format. The normal file extension for the
latter is .sil.
2016-01-21 19:13:06 +02:00
Denis Kolodin
8fd8e9599f Add Rust and TypeScript rules 2016-01-20 15:49:27 +03:00
Hoyon Mak
40007efa1a Add support for rust 2016-01-03 19:13:34 +00:00
Chris Linstid
92de964f61 Add support for terraform files
Terraform files are used to define different resources. Single line comments use a '#' and multi-line comments use '/* ... */'. For more information, see https://terraform.io/docs/configuration/syntax.html.
2015-12-14 15:11:46 -05:00
Anton
94bc2d62c6 Update README.md
Changed git clone command's font in pathogen installation description to monospaced
2015-11-17 21:13:54 +03:00
Harlan
40c4c66f7a Added Swift comment map 2015-11-15 21:01:12 -05:00
Martin Grenfell
1f4bfd5992 Merge pull request #209 from DarthGandalf/space
Fix markdown in README to make the space visible
2015-10-29 23:48:39 +00:00
Alexey Sokolov
0bbb2da023 Fix markdown in README to make the space visible 2015-10-09 09:45:34 +01:00
neingeist
a3030b9625 Add Nagios config file support 2015-09-30 06:35:49 +02:00
Sivakumar Kailasam
05de4871ce Adds support for handlebars file formats 2015-08-10 08:54:14 +05:30
Ratan
534329d1b8 added support for julia 2015-07-30 19:16:39 -04:00
Martin Grenfell
5cc672a4f2 Merge pull request #183 from azdkj532/master
according to pep8, we need a space after '#'
2015-07-26 21:54:39 +01:00
Wagner Camarao
cf4912d36c Add config to allow commenting empty lines 2015-05-29 15:57:02 -07:00
Eli Young
6bdeaaa3d4 Add support for sshdconfig files
The sshdconfig filetype provider does not set `commentstring`, so
support must be explicitly defined.
2015-05-22 19:08:16 -07:00
azdkj532
3a60b6b1ec add the attribute 'leftAlt' to python 2015-04-30 13:34:25 +08:00
reisgabrieljoao
6591d08b24 Correct bib comment delimiter. 2015-04-09 09:33:40 -03:00
azdkj532
776f69e684 according to pep8, we need a space after '#' 2015-03-17 13:46:04 +08:00
Kaoru Kohashigawa
2bffc66a42 Update README.md 2015-02-15 09:44:28 -06:00
Claudio Maradonna
e1029104f1 Added Blade comment 2015-01-23 13:10:17 +01:00
Sebastian Witte
d4f41d2697 Use state variable to determine whether the alternate delimiters have already been switched 2015-01-14 18:14:08 +01:00
Kevin Ballard
dbe8023a70 Add delimiters for TOML 2014-12-09 15:04:59 -08:00
Jonatan Olofsson
536779375d Add support for tupfiles 2014-10-23 15:24:12 +02:00
Sebastian Witte
59c79279b5 Implement functionality to configure alternate comment style (fixes #145)
The change requires the variable to have global scope which is also updated in
the documentation.
2014-09-30 12:04:12 +02:00
Anton Panov
1b62184305 Add ruby multiline comment tags 2014-07-30 01:54:34 +04:00
Martin Grenfell
6549cfde45 make the delimitermap a global variable
This allows people to edit the delimiters at run time.

The option NERDCustomDelimiters can be used in a vimrc (or similar) but
is not useful after vim has loaded. So just open up the s:delimiterMap
hash.
2014-07-08 09:23:43 +01:00
svermeulen
f1a23cde6d Fix for teak 2014-06-16 16:11:42 -03:00
Michael Lerch
956431914f add pandoc
same as markdown
2014-05-06 08:37:15 -06:00
David Beitey
f5fba7c6c0 Add YAML and Salt state (SLS) comment mapping 2014-03-14 11:27:20 +10:00
Andrew Mass
d4858b5c5b Add support for MIPS assembly. 2014-03-12 20:45:58 -05:00
status failed
e107ccc9b3 added idris field to delimiterMap 2014-01-05 18:40:52 +00:00
Jian Lan
785386db76 Update NERD_commenter.txt
Add one empty line between every two items. Add a period at the end of a sentence:(regardless of whether NERDSpaceDelims is set)
2013-10-17 03:22:44 -06:00
Jian Lan
8c73eef0ea Update NERD_commenter.txt
Delete the excess the in "If the a selected line is commented then it is uncommented and vice versa. "
2013-10-17 02:52:26 -06:00
Michael Lerch
8c525a27aa Add support for stan bayesian modeling language 2013-09-28 08:38:02 -06:00
Dirk Willrodt
1f06d8a4dd remove space at end of appended comment 2013-09-20 13:44:07 +02:00
Bassem Youssef
26558db9f1 Support for Julia
http://julialang.org/
2013-09-12 15:17:23 -07:00
sailorfeng
289d2d64ec Update NERD_commenter.vim
add lpc support
2013-09-11 17:40:50 +08:00
Spike Grobstein
8fff061222 added Dockerfile comment support 2013-08-25 10:04:11 -04:00
York Wong
c73514084a change the comment style for systemtap (.stp) 2013-08-18 14:47:39 +08:00
Pascal Bugnion
4b049b83fa Added support for fortran and yaml filetypes. 2013-07-14 18:39:11 +01:00
svermeulen
fbe3bd3c35 Exposed function to check whether a line is commented 2013-05-25 15:31:00 -03:00
Robin Schneider
f234d01408 Support for esmtprc and upstart. 2013-05-20 13:24:47 +02:00
heartsentwined
7770913088 add support for emblem 2013-04-17 10:00:03 +08:00
heartsentwined
785026abef add support for ember-script 2013-04-08 17:49:46 +08:00
Jeremy Huffman
58e34664d2 add elixir language support 2013-03-25 22:02:46 -04:00
ervandew
4f3d9c0e12 only use g:NERDDefaultDelims if no filetype has been set 2013-02-11 15:03:07 -08:00
ervandew
0c04654498 add config support for default delims
if there are no configured delims for the current filetype, allow the
default delims to be defined by a global setting since c style comment
delims are not always the best defaults for everyone.
2013-02-06 07:54:06 -08:00
Alan Franzoni
5724385b2f Fix: missing escaping of < and > .
Missing escape of < and > resulted in missing <space> rendering for NERDToggleComment.
2013-01-27 21:49:37 +01:00
Martin Grenfell
0b3d928dce Merge pull request #101 from aemonge/patch-1
Corrected the SQL comment keys
2013-01-10 01:27:12 -08:00
Andres Monge
00e41958df Corrected the SQL comment keys
the SQL from some strick ones, such as procedures or mySql needs an extra space after the '--' comment. so it would be '-- ' the correct sintaxis for the comment
2013-01-10 10:12:19 +01:00
Parker
ab1fe7f5f0 Support for racket language. 2013-01-09 11:54:35 -07:00
Martin Grenfell
c3756d1ecc Merge pull request #79 from DawidJanczak/master
Add rspec flietype
2013-01-03 03:16:00 -08:00
Martin Grenfell
8cf43a4057 Merge pull request #91 from sietse/patch-1
Update plugin/NERD_commenter.vim
2013-01-03 03:15:41 -08:00
Martin Grenfell
7b127e63aa Merge pull request #98 from johntyree/patch-2
Remove extra space from Haskell alt.
2013-01-03 03:14:41 -08:00
Martin Grenfell
6983efa244 Merge pull request #97 from johntyree/patch-1
Update plugin/NERD_commenter.vim
2013-01-03 03:11:10 -08:00
John Tyree
eb5720c365 Remove extra space from Haskell alt. 2013-01-03 12:10:29 +01:00
John Tyree
fa7c2cdc2a Update plugin/NERD_commenter.vim
Cuda is the same as C.
2013-01-03 12:08:52 +01:00
Martin Grenfell
f87a5f4b51 Merge pull request #88 from jchain/master
I did a tiny change to add comment support for Octave filetype
2012-12-09 03:12:49 -08:00
sietse
362f6706c6 Update plugin/NERD_commenter.vim
Add comment delimiters for ConTeXt (the alternative delimiters are for Lua code).
2012-11-05 14:52:39 +01:00
Martin Grenfell
f6137c7fc8 Merge pull request #90 from 6ahodir/master
vala support
2012-11-01 03:14:23 -07:00
6ahodir
b660938045 adding vala support 2012-11-01 01:22:33 -04:00
John Chain
1eb2eba5d3 Added comment support for Octave (a opensource Matlab clone) 2012-10-24 20:52:23 -05:00
Martin Grenfell
06cf7e7c38 Merge pull request #86 from inkarkat/fix-insert-mode-plug-mapping
Fix insert-mode <plug>NERDCommenterInsert mapping.
2012-10-23 15:10:03 -07:00
Martin Grenfell
8f6abbe22a Merge pull request #87 from inkarkat/improve-insert-mode-mapping
Avoid beep and additional space on insert-mode commenting at EOL.
2012-10-23 15:09:27 -07:00
Ingo Karkat
e5f6111856 Avoid beep and additional space on insert-mode commenting at EOL.
When adding a comment at the end of a line (a common use when typing straight ahead) that only has a left part (like with ft=cpp, where the comment string is "// "), there is an audible beep and an additional space character is inserted (yielding "//  ").

Suppress the attempted cursor move to the right (which fails in that case) via :silent!.
Use :startinsert! (with a bang) to continue editing at the end of the line instead of the workaround that inserts an additional space.
2012-10-23 15:35:44 +02:00
Ingo Karkat
f4b1a46a41 Fix insert-mode <plug>NERDCommenterInsert mapping.
This was broken by the refactoring that introduced s:CreateMaps().
2012-10-23 15:19:36 +02:00
Martin Grenfell
17168b0d61 Merge pull request #83 from NSError/scons
Added SCons (Python DSL)
2012-10-03 13:56:20 -07:00
Chris Miller
4c03b5ac3f Added SCons (Python DSL). 2012-10-03 14:39:32 -06:00
Dawid Janczak
e983cf27e7 Add rspec filetype.
Since some plugins set filetype of RSpec spec files to rspec, the
filetype has been added to list of types.
The comment string itself is the same as in Ruby files.
2012-07-17 19:50:59 +02:00
Martin Grenfell
baa453aad8 fix a bug from pull request #69 - doh 2012-06-19 11:15:07 +01:00
Martin Grenfell
7d49ac038d Merge pull request #67 from sbl/master
add support for the supercollider language
2012-06-19 01:47:48 -07:00
Martin Grenfell
d64d909c9e Merge pull request #69 from gordio/master
Add Go support
2012-06-19 01:47:28 -07:00
Martin Grenfell
27979e7194 Merge pull request #72 from flxf/master
Add mustache support
2012-06-19 01:46:51 -07:00
Martin Grenfell
fc04e4e8c1 Merge pull request #76 from peterhost/master
add support for aspvbs leftalt comment
2012-06-19 01:43:01 -07:00
Martin Grenfell
ed45f9211b Update readme - fix a typo 2012-06-19 10:42:10 +02:00
Martin Grenfell
21222675c7 Merge pull request #75 from xuhdev/patch-1
Fix an markdown syntax issue in README.md
2012-06-19 01:40:37 -07:00
Martin Grenfell
6f69cbcdd8 Merge pull request #77 from jdonaldson/master
update for haxe/hxml files
2012-06-19 01:38:17 -07:00
Martin Grenfell
12b15e9804 Merge pull request #78 from DSIW/patch-1
Added support for CoffeeScript
2012-06-19 01:37:22 -07:00
DSIW
7b78a83120 Added support for CoffeeScript 2012-06-19 00:56:16 +03:00
Justin Donaldson
1671f8aa71 adding hx/hxml support 2012-06-03 20:00:13 -07:00
Peter Host
6e020aa61c add support for aspvbs leftalt comment
This can be discussed, but I do find it useful to be able and
use HTML commenting as an alternative cause what else lies in an
asp classic page anyway,... but html ;)
2012-06-03 22:26:02 +02:00
Hong Xu
2eecb5b6f2 Fix an markdown syntax issue in README.md. 2012-05-22 13:39:55 +08:00
Felix Fung
2f62560dd6 Add mustache support 2012-05-04 05:23:57 -07:00
gordio
d16e2ab1cf Add comment style for Google Go language 2012-04-15 05:14:09 +03:00
Stephen Lumenta
e2e786c59f Added support for the supercollider language
http://supercollider.sourceforge.net/
2012-03-27 16:00:00 +02:00
Martin Grenfell
cb242a9cb4 Merge pull request #62 from jimmyharris/master
added support for arm assembly syntax
2012-03-27 06:40:28 -07:00
Martin Grenfell
bfa37cdb8b Merge pull request #66 from abelmartin/master
Added READEME.md
2012-03-27 06:39:59 -07:00
Martin Grenfell
68d496339a Merge pull request #64 from cstrahan/patch-1
Add fsharp comment delimiters.
2012-03-27 06:38:40 -07:00
Abel Martin
1b6058a597 another typo 2012-03-26 13:16:34 -03:00
Abel Martin
cef3a9ce39 fixing a typo 2012-03-26 13:15:42 -03:00
Abel Martin
4afef1116c Completed the documentation style and content updates 2012-03-26 13:11:24 -03:00
Abel Martin
57ffc642e1 Further cleaned up styling 2012-03-26 12:42:40 -03:00
Abel Martin
73b3fe939c adding better styling to the readme. 2012-03-26 11:36:43 -04:00
Abel Martin
69c5335553 updated readme. 2012-03-26 12:32:56 -03:00
Abel Martin
f6a3b192b8 added a readme file. 2012-03-26 11:12:53 -04:00
Charles Strahan
fc1988e573 Add fsharp comment delimiters. 2012-03-18 13:04:58 -03:00
Martin Grenfell
93cdbafd7f fix repeat for visual-line comments
this is still broken for visual and visual-block commenting
2012-03-12 10:24:38 +00:00
Martin Grenfell
20e089f6b9 Merge pull request #63 from inkarkat/add-repeat-support
Make mappings repeatable with . through repeat.vim
2012-03-12 03:21:11 -07:00
Ingo Karkat
4dd72ab0af Make mappings repeatable with . through repeat.vim
Use of repeat.vim is purely optional, but very beneficial for typical commenting uses.
2012-03-12 10:42:38 +01:00
James Harris
ddb2952fdc Added support for Arm Assembly 2012-02-19 16:48:47 -06:00
Martin Grenfell
98cec44ef6 Merge pull request #59 from chreekat/master
Support for Cabal, haskell's package system.
2012-01-30 01:43:34 -08:00
Bryan Richter
86f4d493d9 Adds support for Cabal, Haskell's package system.
http://www.haskell.org/cabal/users-guide/#package-descriptions
2012-01-29 15:52:17 -08:00
Martin Grenfell
f4d9f99f67 fix a bug with the key combos on the comment menu
Previously the maps on the menus werent changing when mapleader was
changed - this was because we were looking for a local mapleader var
instead of global
2012-01-13 09:32:02 +00:00
Martin Grenfell
8f2af9a6d7 update the NERDComment() doc 2012-01-02 21:08:24 +00:00
Martin Grenfell
006a151a43 make the NERDComment() type arg case insensitive 2012-01-02 21:08:03 +00:00
Martin Grenfell
0c75ae7e7b make NERDComment a global function again 2012-01-02 10:24:41 +00:00
Martin Grenfell
27580f8777 Merge pull request #55 from ryanwood/master
Add syntax support for slim templates
2012-01-01 15:42:48 -08:00
Ryan Wood
fb4df3e71b Add syntax support for slim templates 2011-12-31 13:24:44 -05:00
Martin Grenfell
0fe4938d22 Merge pull request #37 from panthomakos/master
Add syntax for comments in Ruby
2011-12-14 08:39:29 -08:00
Martin Grenfell
63bf3811ce Merge pull request #46 from peterhost/master
add support for scss leftalt comment
2011-12-14 08:37:10 -08:00
Martin Grenfell
2c3409d97f Merge pull request #48 from chreekat/master
More Haskell support
2011-12-14 08:36:48 -08:00
Martin Grenfell
95d04c69a2 Merge pull request #51 from benjifisher/master
Add maps (keyboard shortcuts) to GUI menu items.
2011-12-14 08:33:13 -08:00
Benji Fisher
785ad99c0b Various fixes, simplifications, improvements to s:NERDComment() and s:CreateMaps(). Updated docs. 2011-12-14 10:39:27 -05:00
Benji Fisher
0bffc1a119 Moved the <plug> mappings into s:CreateMaps(). 2011-12-12 22:28:48 -05:00
Benji Fisher
5dc223d8a6 Changed arguments to NerdComment() to make it easier to call from CreateMaps(). 2011-12-12 11:10:19 -05:00
Benji Fisher
f198e9ffce Replaced raw CTRL-V with \<C-V> 2011-12-12 10:30:17 -05:00
Benji Fisher
22e798edf5 Replaced a loop with a call to extend(). 2011-12-12 10:13:28 -05:00
Benji Fisher
a3ecc6dab5 Changed :vmap and :vmenu to :xmap and :xmenu. 2011-12-12 08:18:47 -05:00
Benji Fisher
754d5a5b2e Merge remote branch 'upstream/master' 2011-12-12 07:20:51 -05:00
Martin Grenfell
e777829d34 Merge pull request #52 from gonzaloserrano/master
twig templates support
2011-12-11 06:01:06 -08:00
Gonzalo Serrano
d4a5479c2c Twig templates support added. 2011-12-11 11:03:59 +01:00
Benji Fisher
68cfa2f3c5 Changed s:CreateMenuItems() to the shorter s:CreateMaps(). 2011-12-06 11:33:56 -05:00
Benji Fisher
0bb5f7e889 Removed s:CreateMaps(), adding its functionality to s:CreateMenuItems(). 2011-12-06 11:29:25 -05:00
Benji Fisher
9b9c253680 Added keyboard shortcuts to the GUI menu. 2011-12-06 10:54:28 -05:00
Benji Fisher
1d40b1965c Replaced global variable menuRoot with a function-local variable. 2011-12-06 10:01:35 -05:00
Benji Fisher
b141adda9e Replaced all :exec 'menu' lines with calls to s:CreateMenuItems(). 2011-12-06 09:56:48 -05:00
Benji Fisher
e5b158fe75 Added modes argument, deleted root argument from s:CreateMenuItems(). 2011-12-06 09:33:21 -05:00
Peter Host
4a91777538 add comments for jade templating engine 2011-12-04 22:33:18 +01:00
Bryan Richter
d5fed4daff Adds support for literate Haskell.
Since literate code has anti-comments this might be a hack, but it works well
enough. :)
2011-10-25 10:02:03 -07:00
Bryan Richter
a346df98e7 Ensures Haskell's leftAlt isn't part of lexeme.
From the report(s):

    An ordinary comment begins with a sequence of two or more consecutive dashes
    (e.g. --) and extends to the following newline. The sequence of dashes must
    not form part of a legal lexeme. For example, “-->” or “|--” do not begin a
    comment, because both of these are legal lexemes; however “--foo” does start
    a comment.

                            Haskell98:   http://goo.gl/CucLL
                            Haskell2010: http://goo.gl/1OYzN
2011-10-25 09:56:54 -07:00
Peter Host
0a30bbe20c add support for scss leftalt comment
- scss uses '//' as an alternative (scss only) for comments, which
  are stripped from the scss file at css generation time
2011-10-24 17:24:19 +02:00
Martin Grenfell
b28e7be632 Merge pull request #39 from mattr-/patch-1
Add the puppet file type to the delimiter map.
2011-07-21 17:36:40 -07:00
Matt Rogers
cdb6db91cc Add the puppet file type to the delimiter map.
This should provide NERDcommenter the ability to comment puppet manifests
2011-07-21 13:58:34 -07:00
Pan Thomakos
1b78f253c2 Added syntax for comments in Ruby. 2011-05-26 11:52:36 -07:00
Martin Grenfell
5a9371437f Merge pull request #30 from sgharms/master
Steven-proofed the documentation, ties to VimDoc
2011-05-05 18:56:29 -07:00
Martin Grenfell
ecb2715965 Merge pull request #35 from NilsHaldenwang/master
Added mirah.
2011-05-05 18:55:32 -07:00
Martin Grenfell
c83ec79110 Merge remote-tracking branch 'rshhh/master'
Conflicts:
	plugin/NERD_commenter.vim
2011-05-06 13:54:10 +12:00
Martin Grenfell
6bd08739c1 Merge pull request #34 from keitahaga/nimrod
Add support for Nimrod
2011-05-05 18:49:02 -07:00
Martin Grenfell
37f684dbe8 Merge pull request #28 from keitahaga/fancy
Support for Fancy
2011-05-05 18:46:04 -07:00
Martin Grenfell
b9e907d8fb Merge pull request #15 from jgoulah/master
fixed commenting for bash scripts
2011-05-05 18:43:42 -07:00
Martin Grenfell
4e5456522d Merge pull request #36 from ches/multipart-with-appended-fix
End-of-line comments within a multipart block get uncommented when they shouldn't
2011-05-05 18:42:11 -07:00
Ches Martin
d541c7d9b1 respect NERDRemoveAltComs when uncommenting multipart blocks 2011-05-01 22:34:39 +07:00
Ches Martin
f98f73221c Clean up duplicate code 2011-05-01 22:34:16 +07:00
Nils Haldenwang
cb7bdd553a Added mirah. 2011-04-07 21:47:43 +02:00
Keita Haga
afe8d0d3fe add support for Nimrod 2011-04-04 19:13:13 +09:00
Martin Grenfell
38630ff5eb add support for coldfusion 2011-04-02 12:57:25 +13:00
rshhh
27b0ebe8d6 Add nginx script support 2011-03-22 01:33:46 +09:00
Steven G. Harms
b4d04f36c5 Adds vimdoc linking for '<leader>' as '<Leader>'
* '<leader>' is not recognized by vimdoc
* '<Leader>' is!
* Binding this  in '|' keeps proper anchoring of the term to
  '<Leader>' or 'mapleader'
* Prevents questions like:
  https://github.com/scrooloose/nerdcommenter/issues/29
2011-03-04 02:51:17 -08:00
Keita Haga
3df2ca5285 add support for Fancy 2011-03-01 19:50:22 +09:00
Keita Haga
c8d8318257 add support for ooc 2011-03-01 00:17:31 +09:00
Martin Grenfell
94cce2cc54 make NERDRemoveExtraSpaces default to 0
this was causing problems with people who were using left aligned
comments without NERDSpaceDelims set as it was incorrectly stripping out
extra spaces
2011-02-22 11:28:35 +13:00
othree
63b252ad40 add support for less and scss 2011-02-15 14:52:37 +08:00
Martin Grenfell
2b60d872ba Merge remote branch 'zhon/master' 2011-02-08 17:36:58 +13:00
Martin Grenfell
5dcab6ec82 fix a type in the doc 2011-02-08 17:03:11 +13:00
Martin Grenfell
0bcdac6c38 use html delimiters as the alt delimiters for gsp 2011-02-08 10:59:53 +13:00
Tuncer Ayaz
5084aa7653 Add alternative ('%%') Erlang delimiter 2011-02-08 04:40:08 +08:00
ervandew
69a575e70a merge in upstream master 2011-02-05 14:24:10 -08:00
Martin Grenfell
197ce731be improve handling for compound filetypes
now we check each part of the compound filetype until we find a part we
know how to handle

e.g. if the filetype is foo.bar.php.java then delimiters will get set
for php
2011-02-06 09:35:14 +13:00
Martin Grenfell
f8be02f10a doc the new NERDCustomDelimiters option 2011-02-06 09:23:26 +13:00
Martin Grenfell
90cf828ac0 add NERDCustomDelimiters option
this allows users to override or specify delimiters for their own
filetypes outside of the script
2011-02-06 09:23:26 +13:00
Martin Grenfell
9f955640ee remove an unused option 2011-02-06 09:23:25 +13:00
Martin Grenfell
47d9833740 remove a stray macro that somehow got in the script ... 2011-02-06 09:23:25 +13:00
Martin Grenfell
1577f77ef4 make the script handle compound filetypes better 2011-02-06 09:23:25 +13:00
Martin Grenfell
17141e2244 rename the augroup to NERDCommenter 2011-02-06 09:23:25 +13:00
John Goulah
29f8ebc7f5 fixed commenting for perl scripts 2010-12-10 21:53:08 +00:00
John Goulah
ca6c791114 Merge branch 'master' of git://github.com/scrooloose/nerdcommenter 2010-12-10 21:50:06 +00:00
Anurag Priyam
760df35273 corrected comment delimiter for liquid filetype 2010-12-10 04:23:53 +08:00
marty
591dd3e1fd update version to 2.3.0 2010-12-08 09:39:07 +13:00
marty
4447e9e6e8 update the change log 2010-12-08 09:34:13 +13:00
marty
24c68a6852 complain if the user doesnt have filetype plugins enabled 2010-12-08 09:34:13 +13:00
marty
ecf20b005c use echom instead of echo so the user can check :messages 2010-12-08 09:34:13 +13:00
zhon
59094ae107 add support for scheme 2010-12-03 20:50:32 -07:00
John Goulah
dc55b10bd7 fixed commenting for bash scripts 2010-11-29 16:53:34 +00:00
ervandew
8ef3473c2e fix a couple typos 2010-11-06 17:52:50 -07:00
ervandew
8ed440ea20 add var for default align + add support for aligning at index 0 2010-11-06 17:42:06 -07:00
bryanv
930be32a23 Fix typeo in error message. 2010-09-24 12:57:21 +08:00
bryanv
d54bcbfc98 Fix bug when inverting sexy comments 2010-09-22 12:46:30 +08:00
Seth Woodworth
33e3ace742 updating 'last changed' field of header 2010-09-22 12:45:21 +08:00
marty
c0d7109c6b add gsp support 2010-09-11 10:49:19 +12:00
marty
5c9359d3cf update the doc
Add a note about installation. Remove the 'supported filetypes' section.
2010-08-02 22:45:02 +12:00
marty
02c726c6d1 make the mappings to being with <leader> 2010-08-02 22:45:02 +12:00
marty
d868eae71b refactor the GetLeft/GetRight methods
make their args an optional hash, and rename them to Left and Right
2010-08-02 22:45:02 +12:00
marty
e0191f2ce9 dont use b: vars to store the comment delim data, use a hash 2010-08-02 22:45:02 +12:00
marty
cea72da179 store all the comment delims in a hash, not a giant if statement 2010-08-02 22:45:02 +12:00
James Harris
9c8343c939 Added comment support for tmux.conf
tmux.conf has comments similar to bash, making the default C style
comments inappropriate.
2010-07-21 10:32:04 +08:00
Jon Fuller
a1b4c3b94a use rakefile from nerdtree 2010-07-21 10:31:49 +08:00
marty
4d933f01d6 gitignore the tags file 2010-06-15 10:39:50 +12:00
Tim-Smart
bca88e735b s:CommentLinesSexy - Re-added missing line which prefixes whitespace to top delimiter 2009-09-11 22:11:50 +12:00
Tim-Smart
5d42b2ec5c s:CommentLinesSexy - Fixed issue #2 . Tabs now respected in sexy comments. 2009-09-11 22:11:39 +12:00
Arthur Debert
ae430a62fc Added support for python comments.
Signed-off-by: Martin Grenfell <martin_grenfell@msn.com>
2009-09-11 16:49:19 +08:00
Martin Grenfell
e32c0b9675 switch to version 2.2.2 2009-03-30 18:47:25 +13:00
Martin Grenfell
58480d3d64 update changelog 2009-03-30 18:45:35 +13:00
Martin Grenfell
7239f85de1 add a note about the location of the plugin on github/vim.org 2009-03-30 18:44:06 +13:00
Martin Grenfell
8b712bee60 simplify the credits 2009-03-30 18:42:35 +13:00
Martin Grenfell
8176930f17 remove a useless comment 2009-03-30 18:34:08 +13:00
Martin Grenfell
88d6cc97a9 prefix all b: level vars with NERD 2009-03-30 18:33:15 +13:00
Martin Grenfell
7052ba60f4 remove spaces from delimiters when using &commentstring 2009-03-17 13:31:48 +13:00
Martin Grenfell
b32d2cfad2 remove all filetypes where the same &cms was set in vim 7.0 2009-03-11 15:55:02 +13:00
Martin Grenfell
437af04863 remove all "dummy support" filetypes 2009-03-11 14:55:13 +13:00
Martin Grenfell
eeb369e6be remove NERDShutup and the associated message 2009-03-11 14:51:29 +13:00
Martin Grenfell
b3d4476096 fix railslog filetype 2009-03-06 16:24:49 +13:00
Martin Grenfell
23aa888990 add support for pdf 2009-03-06 16:14:13 +13:00
Martin Grenfell
0bd4d5bbca fix sass delims 2009-03-06 16:12:29 +13:00
Martin Grenfell
11114745bd add support for cucumber 2009-03-06 15:01:02 +13:00
Martin Grenfell
81307ff269 fix the ruby filetype matching again 2009-01-30 15:22:41 +13:00
Martin Grenfell
f63b4f0987 use the ruby settings for all "sub-filetypes" of ruby 2009-01-30 13:20:52 +13:00
Martin Grenfell
4b680f34e9 add support for javascript.jquery 2009-01-15 13:05:49 +13:00
Martin Grenfell
19147a70cc make <%# %> the default for eruby 2009-01-15 12:07:33 +13:00
Martin Grenfell
caefbe56fd add support for javacc 2008-12-14 18:39:55 +13:00
Martin Grenfell
53d437a3c8 refactor out s:spaces 2008-12-09 21:58:48 +13:00
Martin Grenfell
a287b40a67 add support for htmlcheetah 2008-12-07 13:02:58 +13:00
Martin Grenfell
95c368779b add support for mp (metapost) filetype 2008-12-07 12:36:59 +13:00
Martin Grenfell
10c120478c fix alternative sass delimiters 2008-12-02 10:47:30 +13:00
Martin Grenfell
b7d141a3e6 bugfix to delimiter setup 2008-11-21 10:04:44 +13:00
Martin Grenfell
df299e7e22 match filetypes case insensitively 2008-11-17 22:07:41 +13:00
Martin Grenfell
40632f247f add support for dhcpd, limits, ntp, resolv, rgb, sysctl, udevconf, udevrules 2008-11-17 22:03:00 +13:00
Martin Grenfell
ee14557c87 switch to 2.2.1 2008-11-13 23:25:03 +13:00
Martin Grenfell
8098fea8d9 add support for objj 2008-11-13 23:23:48 +13:00
Martin Grenfell
7e3f47ed8d add support for sieve 2008-11-13 23:16:21 +13:00
Martin Grenfell
06683e3311 add support for SVNannotate 2008-11-13 22:57:08 +13:00
Martin Grenfell
dda8510e0c add support for conkyrc 2008-11-13 22:54:59 +13:00
Martin Grenfell
a0003bc926 add support for clojure 2008-11-13 22:40:00 +13:00
Martin Grenfell
ca94c70dba add support for genshi and mako 2008-11-13 22:37:02 +13:00
Martin Grenfell
44b4c26b86 add support for asciidoc, git, gitrebase and fix gitcommit 2008-11-13 22:31:37 +13:00
Martin Grenfell
5d8bb28113 add support for CVScommit 2008-11-06 20:45:46 +13:00
Martin Grenfell
f65d86fea3 add support for hostsaccess 2008-10-29 20:31:13 +13:00
Martin Grenfell
1d92203107 add support for ps1 2008-10-25 11:49:36 +13:00
Martin Grenfell
fe73c80dc8 update credits 2008-10-25 11:37:04 +13:00
Martin Grenfell
cc9f986514 add support for processing 2008-10-25 11:36:01 +13:00
Martin Grenfell
03d9562db8 add support for actionscript 2008-10-25 11:35:34 +13:00
Martin Grenfell
1301323179 make haml comments own more 2008-10-25 11:32:40 +13:00
Martin Grenfell
842055ae43 fix a bug in the doc 2008-10-12 22:14:01 +13:00
Martin Grenfell
68bf65fcd2 fix automake comments 2008-10-12 22:14:01 +13:00
Martin Grenfell
aaf2471da7 add support for newlisp 2008-10-12 22:14:01 +13:00
Martin Grenfell
e14bdb0735 fix to the credits 2008-10-07 09:08:39 +13:00
Martin Grenfell
8dda3f17e0 always use :normal! instead of :normal 2008-10-04 12:13:10 +13:00
Martin Grenfell
ddd235757b switch to version 2.2.0 2008-10-04 00:07:40 +13:00
Martin Grenfell
d6ca231ac9 update changelog 2008-10-04 00:07:31 +13:00
Martin Grenfell
fe71371c15 make the mappings start with comma (again) 2008-10-03 23:58:41 +13:00
Martin Grenfell
226063bfc1 add support for SVNinfo 2008-10-03 23:23:08 +13:00
Martin Grenfell
d6282ef7a3 add support for txt2tags 2008-10-03 23:19:31 +13:00
Martin Grenfell
c2a3f093ae remove prepend comments 2008-09-23 21:41:15 +12:00
Martin Grenfell
b8c5a4443c remove useless "align right" comments 2008-09-23 21:39:06 +12:00
Martin Grenfell
6bf14ce062 update the changelog 2008-09-23 21:29:33 +12:00
Martin Grenfell
e6a36fb8aa update the changelog 2008-09-21 20:07:56 +12:00
Martin Grenfell
5bf567d75e update the mapping section of the doc 2008-09-21 12:55:08 +12:00
Martin Grenfell
1ae6bd4870 various updates/corrections to the doc 2008-09-21 11:46:40 +12:00
Martin Grenfell
6835cfe090 wrap the help tags for options in quotes 2008-09-21 11:43:33 +12:00
Martin Grenfell
b54d3bbc92 rewrite the key mappings part of the script
internal <plug> mappings are now used for all the commenting operations.
Key mappings are no longer specified with options. Instead the user must
create their own mappings to the internal <plug> mappings.
2008-09-21 11:08:49 +12:00
Martin Grenfell
27e8727a35 add support for applescript 2008-09-09 22:51:57 +12:00
Martin Grenfell
e164c00246 add support for calibre 2008-09-09 22:49:30 +12:00
Martin Grenfell
134acc595e add support for man 2008-09-09 22:44:07 +12:00
Martin Grenfell
d3718d9d21 bugfix for haskell delimiters 2008-09-09 22:37:43 +12:00
Martin Grenfell
53558869a9 remove a redundant if statement 2008-09-01 00:16:58 +12:00
Martin Grenfell
0370366572 add support for SVNcommit 2008-08-02 14:51:45 +12:00
Martin Grenfell
a4453c01ee add support for potwiki 2008-07-28 22:52:34 +12:00
Martin Grenfell
377a04eeec add support for xquery 2008-07-27 22:11:34 +12:00
Martin Grenfell
709d01d074 add support for llvm 2008-07-27 22:09:45 +12:00
Martin Grenfell
2e9b7ca58e dont map the insert comment map if the key isnt set 2008-07-20 00:59:51 +12:00
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
5 changed files with 1853 additions and 2071 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
*~
*.swp
tags

159
README.md Normal file
View File

@@ -0,0 +1,159 @@
# NERD Commenter
Comment functions so powerful—no comment necessary.
## Installation
### Via Plugin Manager (Recommended)
#### [Vim-Plug](https://github.com/junegunn/vim-plug)
1. Add `Plug 'scrooloose/nerdcommenter'` to your vimrc file.
2. Reload your vimrc or restart
3. Run `:PlugInstall`
#### [Vundle](https://github.com/VundleVim/Vundle.vim) or similar
1. Add `Plugin 'scrooloose/nerdcommenter'` to your vimrc file.
2. Reload your vimrc or restart
3. Run `:BundleInstall`
#### [NeoBundle](https://github.com/Shougo/neobundle.vim)
1. Add `NeoBundle 'scrooloose/nerdcommenter'` to your vimrc file.
2. Reload your vimrc or restart
3. Run `:NeoUpdate`
#### [Pathogen](https://github.com/tpope/vim-pathogen)
```sh
cd ~/.vim/bundle
git clone https://github.com/scrooloose/nerdcommenter.git
```
### Manual Installation
#### Unix
(For Neovim, change `~/.vim/` to `~/.config/nvim/`.)
```sh
curl -fLo ~/.vim/plugin/NERD_Commenter.vim --create-dirs \
https://raw.githubusercontent.com/scrooloose/nerdcommenter/master/plugin/NERD_commenter.vim
curl -fLo ~/.vim/doc/NERD_Commenter.txt --create-dirs \
https://raw.githubusercontent.com/scrooloose/nerdcommenter/master/doc/NERD_commenter.txt
```
#### Windows (PowerShell)
```powershell
md ~\vimfiles\plugin
md ~\vimfiles\doc
$pluguri = 'https://raw.githubusercontent.com/scrooloose/nerdcommenter/master/plugin/NERD_commenter.vim'
$docsuri = 'https://raw.githubusercontent.com/scrooloose/nerdcommenter/master/doc/NERD_commenter.txt'
(New-Object Net.WebClient).DownloadFile($pluguri, $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("~\vimfiles\plugin\NERD_commenter.vim"))
(New-Object Net.WebClient).DownloadFile($docsuri, $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("~\vimfiles\doc\NERD_commenter.txt"))
```
### Post Installation
Make sure that you have filetype plugins enabled, as the plugin makes use of **|commentstring|** where possible (which is usually set in a filetype plugin). See **|filetype-plugin-on|** for details, but the short version is make sure this line appears in your vimrc:
```sh
filetype plugin on
```
## Usage
### Documentation
Please see the vim help system for full documentation of all options: `:help nerdcommenter`
### Settings
Several settings can be added to your vimrc to change the default behavior. Some examples:
```vim
" Add spaces after comment delimiters by default
let g:NERDSpaceDelims = 1
" Use compact syntax for prettified multi-line comments
let g:NERDCompactSexyComs = 1
" Align line-wise comment delimiters flush left instead of following code indentation
let g:NERDDefaultAlign = 'left'
" Set a language to use its alternate delimiters by default
let g:NERDAltDelims_java = 1
" Add your own custom formats or override the defaults
let g:NERDCustomDelimiters = { 'c': { 'left': '/**','right': '*/' } }
" Allow commenting and inverting empty lines (useful when commenting a region)
let g:NERDCommentEmptyLines = 1
" Enable trimming of trailing whitespace when uncommenting
let g:NERDTrimTrailingWhitespace = 1
" Enable NERDCommenterToggle to check all selected lines is commented or not
let g:NERDToggleCheckAllLines = 1
```
### Default mappings
The following key mappings are provided by default (there is also a menu provided that contains menu items corresponding to all the below mappings):
Most of the following mappings are for normal/visual mode only. The **|NERDComInsertComment|** mapping is for insert mode only.
* `[count]<leader>cc` **|NERDComComment|**
Comment out the current line or text selected in visual mode.
* `[count]<leader>cn` **|NERDComNestedComment|**
Same as <leader>cc but forces nesting.
* `[count]<leader>c<space>` **|NERDComToggleComment|**
Toggles the comment state of the selected line(s). If the topmost selected line is commented, all selected lines are uncommented and vice versa.
* `[count]<leader>cm` **|NERDComMinimalComment|**
Comments the given lines using only one set of multipart delimiters.
* `[count]<leader>ci` **|NERDComInvertComment|**
Toggles the comment state of the selected line(s) individually.
* `[count]<leader>cs` **|NERDComSexyComment|**
Comments out the selected lines with a pretty block formatted layout.
* `[count]<leader>cy` **|NERDComYankComment|**
Same as <leader>cc except that the commented line(s) are yanked first.
* `<leader>c$` **|NERDComEOLComment|**
Comments the current line from the cursor to the end of line.
* `<leader>cA` **|NERDComAppendComment|**
Adds comment delimiters to the end of line and goes into insert mode between them.
* **|NERDComInsertComment|**
Adds comment delimiters at the current cursor position and inserts between. Disabled by default.
* `<leader>ca` **|NERDComAltDelim|**
Switches to the alternative set of delimiters.
* `[count]<leader>cl`
`[count]<leader>cb` **|NERDComAlignedComment|**
Same as **|NERDComComment|** except that the delimiters are aligned down the left side (`<leader>cl`) or both sides (`<leader>cb`).
* `[count]<leader>cu` **|NERDComUncommentLine|**
Uncomments the selected line(s).

View File

@@ -1,18 +1,76 @@
desc "Copy the vim/doc files into ~/.vim"
task :deploy_local do
run "cp plugin/NERD_commenter.vim ~/.vim/plugin"
run "cp doc/NERD_commenter.txt ~/.vim/doc"
end
# written by travis jeffery <travisjeffery@gmail.com>
# contributions by scrooloose <github:scrooloose>
require 'rake'
require 'find'
require 'pathname'
desc "Create a zip archive for release to vim.org"
IGNORE = [/\.gitignore$/, /Rakefile$/]
files = `git ls-files`.split("\n")
files.reject! { |f| IGNORE.any? { |re| f.match(re) } }
desc 'Zip up the project files'
task :zip do
abort "NERD_commenter.zip already exists, aborting" if File.exist?("NERD_commenter.zip")
run "zip NERD_commenter.zip plugin/NERD_commenter.vim doc/NERD_commenter.txt"
zip_name = File.basename(File.dirname(__FILE__))
zip_name.gsub!(/ /, '_')
zip_name = "#{zip_name}.zip"
if File.exist?(zip_name)
abort("Zip file #{zip_name} already exists. Remove it first.")
end
puts "Creating zip file: #{zip_name}"
system("zip #{zip_name} #{files.join(" ")}")
end
def run(cmd)
puts "Executing: #{cmd}"
system cmd
desc 'Install plugin and documentation'
task :install do
vimfiles = if ENV['VIMFILES']
ENV['VIMFILES']
elsif RUBY_PLATFORM =~ /(win|w)32$/
File.expand_path("~/vimfiles")
else
File.expand_path("~/.vim")
end
files.each do |file|
target_file = File.join(vimfiles, file)
FileUtils.mkdir_p File.dirname(target_file)
FileUtils.cp file, target_file
puts "Installed #{file} to #{target_file}"
end
end
desc 'Pulls from origin'
task :pull do
puts "Updating local repo..."
system("cd " << Dir.new(File.dirname(__FILE__)).path << " && git pull")
end
desc 'Calls pull task and then install task'
task :update => ['pull', 'install'] do
puts "Update of vim script complete."
end
desc 'Uninstall plugin and documentation'
task :uninstall do
vimfiles = if ENV['VIMFILES']
ENV['VIMFILES']
elsif RUBY_PLATFORM =~ /(win|w)32$/
File.expand_path("~/vimfiles")
else
File.expand_path("~/.vim")
end
files.each do |file|
target_file = File.join(vimfiles, file)
FileUtils.rm target_file
puts "Uninstalled #{target_file}"
end
end
task :default => ['update']

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff