vim文件类型中的Vim语法突出显示组错误

问题描述

向所有Vim用户问好,

我遇到了语法颜色问题,我无法解决:由于我无法理解的原因,vimrc中的Plugin单词突然停止突出显示(着色)(参见屏幕截图)。我在另一台语法着色正常的计算机上拥有此vimrc。

我的配置

  • MacOS Mojave
  • 我的shell模拟器是ZSH
  • 我使用从MacVim安装的Vim(请注意,我没有使用MacVim提供的GUI,而是在终端中使用vim)
  • $VIMRUNTIME = /usr/local/Cellar/macvim/8.2-166_1/MacVim.app/Contents/Resources/vim/runtime
  • colorscheme设置为默认
  • $VIMRUNTIME/syntax/vim.vimMacVim最新更新的8.0-41版本,我没有手动编辑。
  • vim版本
VIM - Vi IMproved 8.2 (2019 Dec 12,compiled Oct  7 2020 19:37:01)
macOS version
Included patches: 1-1719
Compiled by Homebrew
Huge version with MacVim GUI.  Features included (+) or not (-):
+acl               +cursorshape       +ipv6              -mouse_sysmouse    +ruby              +toolbar
+arabic            +dialog_con_gui    +job               +mouse_urxvt       +scrollbind        +transparency
+autocmd           +diff              +jumplist          +mouse_xterm       +signs             +user_commands
+autochdir         +digraphs          +keymap            +multi_byte        +smartindent       +vartabs
-autoservername    +dnd               +lambda            +multi_lang        -sound             +vertsplit
+balloon_eval      -ebcdic            +langmap           -mzscheme          +spell             +virtualedit
+balloon_eval_term +emacs_tags        +libcall           +netbeans_intg     +startuptime       +visual
+browse            +eval              +linebreak         +num64             +statusline        +visualextra
++builtin_terms    +ex_extra          +lispindent        +odbeditor         -sun_workshop      +viminfo
+byte_offset       +extra_search      +listcmds          +packages          +syntax            +vreplace
+channel           -farsi             +localmap          +path_extra        +tag_binary        +wildignore
+cindent           +file_in_path      +lua               +perl              -tag_old_static    +wildmenu
+clientserver      +find_in_path      +menu              +persistent_undo   -tag_any_white     +windows
+clipboard         +float             +mksession         +popupwin          +tcl               +writebackup
+cmdline_compl     +folding           +modify_fname      +postscript        +termguicolors     -X11
+cmdline_hist      -footer            +mouse             +printer           +terminal          -xfontset
+cmdline_info      +fork()            +mouseshape        +profile           +terminfo          +xim
+comments          +fullscreen        +mouse_dec         -python            +termresponse      -xpm
+conceal           +gettext           -mouse_gpm         +python3           +textobjects       -xsmp
+cryptv            -hangul_input      -mouse_jsbterm     +quickfix          +textprop          -xterm_clipboard
+cscope            +iconv             +mouse_netterm     +reltime           +timers            -xterm_save
+cursorbind        +insert_expand     +mouse_sgr         +rightleft         +title
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X -DMACOS
_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang   -L. -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl@1.
1/lib -L/usr/local/opt/readline/lib -L. -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/l
ocal/opt/openssl@1.1/lib -L/usr/local/opt/readline/lib  -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon
  -lm  -lncurses -liconv /usr/local/lib/libintl.a -framework AppKit  -L/usr/local/opt/lua/lib -llua5.3 -fstack-protecto
r  -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl  -L/usr/local/opt/python@3.9/Frameworks/Python.fr
amework/Versions/3.9/lib/python3.9/config-3.9-darwin -lpython3.9 -framework CoreFoundation -F/System/Library/Frameworks
 -framework Tcl -framework CoreFoundation -lruby.2.7

有人可以帮我吗?

非常感谢您,

约安

enter image description here

编辑:这是我要实现的突出语法。

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...