dunstontc / viml

Syntax highlighting for .vim files in VS Code.
MIT License
11 stars 3 forks source link

Support vimrc files without leading dot #5

Open davidde opened 3 years ago

davidde commented 3 years ago

This extension would be a lot more useful if it was capable of also recognizing vimrc and nvimrc without the leading dot.

Neither does it recognize the vim or rc file types, if the previous entries are added with the files.associations setting in settings.json:

"files.associations": {
    "vimrc": "vim",
    "nvimrc": "vim",
  },

Either of these would be a great addition.

GitMensch commented 3 years ago

The language id used is viml, not vim. Does it work if you fix your file associations that way? If not then this is a vscode issue as this is the one that "recognizes" and activates the matching extension. As I'm no VIM-expert: are those files common and listed in the VIM-docs?

davidde commented 3 years ago

Does not seem to work with viml either. .vimrc with leading dot is clearly more common, but I wouldn't say ~/.vim/vimrc is uncommon.

nvimrc probably is not required after all, since nvim uses ~/.config/nvim/init.vim by default, and can source anything required from there.