Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork445
Add ability to create a line of comment characters#161
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Add functionality to insert a line from comment characters and to toggleback to a blank line.This requires the following modifications:Simple function to insert the line of comment characters.Modify UncommentNormalLine() to detect a line of pure comment charactersand remove all of them (i.e. toggle).Create default mapping (<Leader>c_)Add option NERDNumCommentCharsHR to specify the width of the line madefrom comment characters.Update help documentation for new functionality, default key mapping,and new option.
Add ability to create a line of comment characters
Thanks for taking the time to contribute@ElPiloto. I've recently been added as a maintainer to this project and am going through the backlog of contributions. This is a neat idea but it's a bit rough around the edges and I don't think I can merge it at this time. I played around with it a little bit including fixing the merge conflicts then cleaning up the variable names. You can see the result in myhorizontal-rules branch. If you'd like to keep working on this I'd invite you to start from that code, but there are still some things missing:
I'd like to see something more like the sexy comment format that figures out and intermediary character and fills with that rather than just repetition of the opening delimiter. Would it be possible for you to work on these things.? |
Add functionality to insert a line from comment characters and to toggle
back to a blank line.
This requires the following modifications:
Simple function to insert the line of comment characters.
Modify UncommentNormalLine() to detect a line of pure comment characters
and remove all of them (i.e. toggle).
Create default mapping (c_)
Add option NERDNumCommentCharsHR to specify the width of the line made
from comment characters.
Update help documentation for new functionality, default key mapping,
and new option.