Skip to content

@cspell/filetypes: add a Vim file type (.vim, .vimrc) #9489

Description

@Jason3S

@cspell/filetypes has no Vim file type: findMatchingFileTypes('x.vim') and findMatchingFileTypes('.vimrc') both return [] (cspell 10.4.0).

So a dictionary can't turn on for Vim script by languageId; @cspell/dict-vim currently turns on nowhere (see the cspell-dicts issue). Vim script files are usually *.vim, .vimrc, _vimrc, vimrc and .gvimrc. (I haven't checked which language ID VS Code's Vim extensions use.)

A vim file type with those extensions and file names would let languageSettings with languageId: "vim" work.

Activity

  1. G26karthik commented on Nov 6, 2026

    @G26karthik
    Contributor

    Thank you for raising this. I can send a PR adding a vim file type for .vim, .vimrc and _vimrc. Is vim the language ID you want?

  2. Jason3S commented on Nov 6, 2026

    @Jason3S
    CollaboratorAuthor

    @G26karthik,

    Yes, that would be great.

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