macos - vim 文件类型中错误的 Vim 语法高亮组
问题描述
你好所有的 Vim 用户,
我遇到了一个我无法解决的语法颜色问题:Plugin
由于我无法理解的原因,我的 vimrc 中的单词突然停止突出显示(着色)(见屏幕截图)。我在另一台语法着色工作正常的计算机上有这个确切的 vimrc。
我的配置
- MacOS 莫哈韦沙漠
- 我的 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.vim
是最新更新的 8.0-41 版本MacVim
,我没有手动编辑。- 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
有人可以帮我吗?
非常感谢,
约安
解决方案
推荐阅读
- c# - C#:如果我只有它的名称,如何使用按钮(fe,甚至其他对象)?
- azure-active-directory - Webview2 SPA SSO
- corda - Corda 节点连接到 Oracle 数据库时无法启动
- java - 如何在片段重新创建中从firebase恢复已在recyclerview中获取的数据
- pytorch - 如何通过访问 pytorch 中 2 X 2 张量的给定索引处的特定值来创建张量?
- c++ - C++ 通用回调实现
- javascript - 如何触发同时点击画布对象和放置在对象顶部的DOM元素?
- c++ - 将每一行解析为数组中的变量
- python - 如何根据上传的带有 Flask 包的 csv 文件进行输出?
- r - 使用 R,如何获取传递给函数的所有参数及其值?