nerdcommenter icon indicating copy to clipboard operation
nerdcommenter copied to clipboard

NERD commenter commands are not available as Ex commands.

Open qazwsxpawel opened this issue 13 years ago • 4 comments

Being a Vim newb I do not imply that they should have been. The problem that brought me here is as follows: I would like to remap NERDComInvertComment functionality to say <C-/> but I do not know how to do this since there is no Ex command I can assign it to, as far as I know.

qazwsxpawel avatar Oct 30 '13 22:10 qazwsxpawel

+1 I would like to know this too.

bAmrish avatar Sep 16 '14 15:09 bAmrish

Would also help for debugging. Currently I don't know whether there is a wrong mapping or whether NERDComToggleComment does not work...

schnittchen avatar Nov 08 '14 21:11 schnittchen

:+1:

turboMaCk avatar Jan 08 '16 01:01 turboMaCk

Check out the end of the plugin source file for all the mappings that are created and the modes they run in. You can call the functions directly from ex mode like this:

:call NERDComment('n', "Invert")

You can use this way of calling functions to setup your own maps if you like.

alerque avatar May 24 '16 06:05 alerque