【发布时间】:2019-04-22 16:29:51
【问题描述】:
我试图突出显示 .html 和 .vue 文件中的 CSS 语法,但它不起作用,如屏幕截图所示:https://i.ibb.co/XDFKwTx/Screenshot-from-2019-04-22-18-13-46.png
我尝试使用插件https://github.com/posva/vim-vue,但结果与原生 HTML 插件相同。
我的 ~/.vimrc :
syntax on
set number
filetype on
filetype plugin on
filetype indent on
set autoread
set encoding=utf-8
set fileencoding=utf-8
set fileformat=unix
set fileformats=unix,dos
autocmd BufNewFile,BufRead *.vue,*.ts: set filetype=html
call plug#begin('~/.vim/plugged')
Plug 'sgur/vim-editorconfig'
call plug#end()
【问题讨论】:
标签: html css vim syntax-highlighting nuxt.js