Add ability to create a line of comment characters#161
Add ability to create a line of comment characters#161ElPiloto wants to merge 1 commit intopreservim:masterfrom
Conversation
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 (<Leader>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.
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 my horizontal-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.