iloginow / vim-stylus

A better vim plugin for stylus, including proper and up-to-date syntax highligting, indentation and autocomplete
MIT License
52 stars 9 forks source link

No syntax highlighting for .stylus files (.styl works) #4

Open loudmouth opened 5 years ago

loudmouth commented 5 years ago

Hey there,

wanted to check out your plugin, so I installed it with Vundle, unfortunately after properly installing and starting a fresh vim session with .stylus files, no syntax highlighting was available at all for me. It appears that .styl files work. any ideas what the issue could be?

loudmouth commented 5 years ago

adding the following lines to my .vimrc fixes the issue:

autocmd BufNewFile,BufRead *.styl setlocal filetype=stylus
autocmd BufNewFile,BufRead *.stylus setlocal filetype=stylus