Questions tagged [plugin-nerdcommenter]

Vim plugin for intensely orgasmic commenting

Filter by
Sorted by
Tagged with
0 votes
0 answers
32 views

How to map a kebind to a operator?

I am using nerd-commenter which uses the operator series gcc to toggle comment. I would like to map Ctrl/ to gcc because I prefer the VsCode mapping. So is there any way to map Ctrl/ to gcc?
muppi090909's user avatar
2 votes
1 answer
391 views

Changing default comment characters in NERDCommenter

I've asked a similar question in the past but haven't been able to solve it in too nice a manner. the only way I've been able to figure out how to change the delimiter is by modifying the ...
David542's user avatar
  • 2,415
3 votes
3 answers
391 views

Pretty python comments

I comment sections in python via a centered title surrounded by #. What I would like is to make a command so that I can automatically generate such headers. For example, to generate a line like the ...
Throckmorton's user avatar
5 votes
1 answer
1k views

Binding toggle comment to <C-/>

I installed NERDCommenter plugin and its default bindings unfortunately conflict with my own. For instance I use <Leader>-c and <Leader>-v to emulate CTRL-c and CTRL-v. And since IDEs ...
St.Antario's user avatar
  • 1,107
0 votes
1 answer
389 views

How to set a shortcut for multiple leader commands

I'm using the nerdcommenter to comment and uncomment my c++ code. Basically I use \cc to comment one line, \cu to uncomment, \ca to switch the delimiters (switch // to /**/ or switch back). Now I ...
Yves's user avatar
  • 1,013
1 vote
1 answer
350 views

Using NerdCommenter to comment/uncomment blocks with old-style C comments

I'm using the NerdCommenters leader c<space> to toggle comments on blocks of C code, but when those blocks already contain C comments, they get replaced, by default with [> and <], and ...
Petr Skocik's user avatar
2 votes
1 answer
1k views

change default comment in nerd commenter

In nerdcommenter, the default comment is /* */. I tried to change it to # for plain text as: "NerdCommenter {{{ " Add spaces after comment delimiters by default let g:NERDSpaceDelims = 1 " Use ...
BaRud's user avatar
  • 481
5 votes
1 answer
638 views

Map NERDComToggleComment to a keyboard shortcut

To use NERDComToggleComment, I need to type <Leader>c<Space> (in my case, Leader is ,). I would like to map this to a Ctrl+C (or Ctrl+any key if Ctrl+C is reserved/unavailable for any ...
Jérôme's user avatar
  • 153
5 votes
1 answer
2k views

Uncomment multiline block with NERDCommenter

Is it possible using NERD-commenter to uncomment a multiline block under the cursor without selecting the entire block visually first? If no, are there any better plugins, that can do the job? Here ...
Boris Brodski's user avatar
6 votes
2 answers
2k views

Configure custom key mapping for plugin actions

I am using https://github.com/scrooloose/nerdcommenter/ plugin to comment the code. It's working fine, but I would like to do a modification. Currently these are the default mappings: <leader>...
mtk's user avatar
  • 243
0 votes
2 answers
2k views

How can I change/delete comments easily?

For commenting and uncommenting I now use the vim-commentary plugin, also the NERD commenter can be used as mentioned in: How to comment out a set of lines which are selected in visual mode? I would ...
agold's user avatar
  • 225
2 votes
1 answer
738 views

Plugin config settings: Newline "\n" returns ^@ control character?

I'm trying to configure the NERDCommenter plugin to handle multiline ruby comments (i.e., nested inside =begin and =end). The relevant setting is something like this: let g:NERDCustomDelimiters = { ...
Ryan Lue's user avatar
  • 891
7 votes
2 answers
4k views

What does [count]<leader> mean?

I found a command in NERDCommenter like this: [count]<leader>cc |NERDComComment| I have installed the plugin. But, I don't know how to make it work. So what's the meaning of that command? How ...
Mas Bagol's user avatar
  • 527