Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserting a comment in Insert mode #70

Closed
edanm opened this issue Apr 29, 2012 · 1 comment
Closed

Inserting a comment in Insert mode #70

edanm opened this issue Apr 29, 2012 · 1 comment

Comments

@edanm
Copy link

edanm commented Apr 29, 2012

Hi,

I downloaded the dev version of this script (to get Less support).

Now, my old mapping for inserting comments in insert mode doesn't work anymore.
It was: imap : NERDCommenterInInsert

So firstly, I understand that the name has changed to "NERDCommenterInsert" without the "in" part. Changing this didn't help.

I also looked at the docs, and it says there is a variable you can define to get the mapping. I couldn't get that to work, not with the mapping or my own custom one.

I tried several other tricks, nothing worked.

Eventually, I realized I could do this: imap :call NERDComment("n", "insert").

Now it works, but obviously it's not great that nothing else worked.

Thanks!

@scrooloose
Copy link
Collaborator

Cheers to @inkarkat for the fix :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants