Vim polyglot语法高亮显示不覆盖默认值

2024-10-04 03:25:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经确保启用了syntax on,并且我可以看到vim从全灰色(无高亮显示)变为彩色版本,其中有一些基本语法高亮显示。因此,默认语法高亮显示可以工作

之后,我将https://github.com/sheerun/vim-polyglot插件安装到我的vim编辑器中。我的~/.vimrc文件的内容是这样读取的:

...

if has("syntax")
  syntax on
endif

...

call plug#begin('~/.vim/plugged')

Plug 'https://github.com/preservim/nerdtree.git'
Plug 'https://github.com/sheerun/vim-polyglot.git'

call plug#end()
...

在这之后,我没有看到任何变化。我仍然看到这个非常基本的语法高亮显示,但与我之前看到的没有任何不同。如何让polyglot覆盖这个非常基本的语法高亮显示


Tags: httpsgitgithubcomon语法vimcall