vim-stylus icon indicating copy to clipboard operation
vim-stylus copied to clipboard

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

Open loudmouth opened this issue 6 years ago • 1 comments

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 avatar Feb 01 '19 08:02 loudmouth

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

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

loudmouth avatar Feb 01 '19 11:02 loudmouth