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

Add a string that marks inserted comments #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

idbrii
Copy link

@idbrii idbrii commented May 16, 2017

This marker is inserted immediately after the comment string. Useful if
commentary is only used to disable code (rather than inserting
explanatory comments).

For example,

  let g:commentary_marker = '~'

will comment

  f();

into

  //~ f();

I find this helps my temporarily disabled code stand out from normal comments.

This also modifies commentary's uncommenting behavior to only remove these blocks. I'm not sure that's a good thing. I don't expect you to take this PR as is, but more a question of whether something like this seems like a good inclusion.

This marker is inserted immediately after the comment string. Useful if
commentary is only used to disable code (rather than inserting
explanatory comments).

For example,
    let g:commentary_marker = '~'
will comment
    f();
into
    //~ f();
Acelya-9028 pushed a commit to Acelya-9028/vim-commentary that referenced this pull request Nov 23, 2020
Acelya-9028 pushed a commit to Acelya-9028/vim-commentary that referenced this pull request Nov 23, 2020
Acelya-9028 pushed a commit to Acelya-9028/vim-commentary that referenced this pull request Nov 23, 2020
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

Successfully merging this pull request may close these issues.

1 participant