Skip to content

Some org syntaxes are not highlighted if markdown syntax file has not been loaded #19933

@agguser

Description

@agguser

Some org syntaxes use hi def link to markdown… (e.g. hi def link orgBold markdownBold), so if markdown syntax file has not yet been loaded, they are not highlighted.

For this simple t.org file:

* h1

formatting: *bold*, /italic/

, when opening it with

vim t.org

, * h1 is highlighted, but not *bold* and /italic/.

A workaround is to use :setl ft=markdown ft=org.

A fix would be adding runtime! syntax/markdown.vim (before let b:current_syntax = 'org') in syntax/org.vim.

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