且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何创建所有文件类型通用的Vim语法突出显示规则?

更新时间:2022-06-18 10:12:59

以下是我自己对完全相同的问题的解决方案:

Here is my own solution to the exact same issue:

autocmd BufEnter,WinEnter * call matchadd("Error", "\\s\\+$", -1)

我从相同的语法"方法开始,但最终遇到了您现在面临的相同问题,没有简单的解决方案.

I started with the same "syntax" method but I ended up facing the same issues that you are facing right now with no simple solution.

这是它的样子: