Skip to content

set commentstring in ftplugin #66

@dhduvall

Description

@dhduvall

Vim documents commentstring as

Currently only used to add markers for folding

which might explain why many filetype plugins don't set it; but I discovered that vim-commentary uses it, so I think it's helpful to have set usefully. I was surprised to find it prepending # to the commented-out lines, but that was probably because of some other plugin setting it globally instead of locally.

Easy workaround:

autocmd FileType cs setl commentstring=//%s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions