Skip to content

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.

idbrii added 2 commits August 8, 2025 12:43
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();

Support a b: version because some filetypes (like dosbatch or python's
black) require whitespace after their commentstring.
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