Questions tagged [plugin-nerdcommenter]

Vim plugin for intensely orgasmic commenting

Filter by
Sorted by
Tagged with
0 votes
0 answers

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

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

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

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

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

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

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

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

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

Configure custom key mapping for plugin actions

I am using 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

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

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

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