Vim以醒目的配色方案突出显示
发布时间:2020-12-16 01:16:07 所属栏目:安全 来源:网络整理
导读:我有一个 vim高亮显示代码中的空白错误: " Highlight redundant whitespaces and tabs.highlight RedundantSpaces ctermbg=redmatch RedundantSpaces /s+$| +zet|t/ 这显示了像这样的尾随空白问题: 但是,我最近开始使用solarized配色方案,我无法显
我有一个
vim高亮显示代码中的空白错误:
" Highlight redundant whitespaces and tabs. highlight RedundantSpaces ctermbg=red match RedundantSpaces /s+$| +zet|t/ 这显示了像这样的尾随空白问题: 但是,我最近开始使用solarized配色方案,我无法显示这些亮点. 我试过更改颜色名称无济于事.我(简单).vimrc的相关部分说: syntax enable set background=dark colorscheme solarized
移动:突出显示:colorscheme在Vim会话中切换colorschemes时仍无法帮助您.
为此,请通过ColorScheme事件重新定义突出显示: autocmd ColorScheme * highlight RedundantSpaces ctermbg=red 顺便说一句,您的简约解决方案还有其他问题: >它不会在分割窗口中突出显示. 有几个插件以更好的方式提供此功能.我叫做ShowTrailingWhitespace;插件页面包含替代品的链接. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |