sheerun / vim-polyglot

A solid language pack for Vim.
5.6k stars 297 forks source link

VB.NET syntax highlighting not activated by default #243

Closed notcaring42 closed 6 years ago

notcaring42 commented 7 years ago

I know, it's VB. But I decided to test it and it doesn't look like polyglot activates the VB.NET plugin automatically; the plugin uses vbnet as the syntax option, but when you open a .vb file, vim is still using the vb syntax option.

ftdetect/polyglot.vim is not setting any syntax option:

augroup filetypedetect
" vbnet:vim-scripts/vbnet.vim
augroup END

I believe (not knowing much vim-script) that this should be:

augroup filetypedetect
" vbnet:vim-scripts/vbnet.vim
au BufRead,BufNewFile *.vb set filetype=vbnet
augroup END
sheerun commented 6 years ago

I've added it manually but ideally you could try to add it to the upstream project :)