Skip to content

'comments' support? #4

Open
Open

Description

@BenoitZugmeyer

I'm wondering if this plugin could also support the VIM 'comments' option?

My usecase is: I work with HTML files containing script and style tags. vim-context-commentstring allows me to use easily comment stuff with vim-commentary. I'd love to be able to use the VIM 'formatoptions' to format comments with gq and J etc, but it doesn't work because the 'comments' option stays to HTML comments for the whole file.

Since the option to be configured follows the same logic as 'commentstring', and in my opinion it could support both options. Or maybe there is already a plugin supporting the 'comments' option? Thoughts?

Activity

  1. JoosepAlviste commented on Sep 15, 2020

    @JoosepAlviste
    Contributor

    Hey! Just to let you know that I added a PR which does exactly this (although I only added the options for Vue files): #7.

  2. suy commented on Jun 15, 2021

    @suy
    Owner

    Merged Joosep's PR. I will see if I can update for HTML as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions