【发布时间】:2013-08-15 16:17:14
【问题描述】:
我目前在我的 vimrc 中有以下行来突出显示宽度超过 80 个字符的行。
match ErrorMsg '\%>80v.\+
我希望在编辑 SQL 文件时禁用此规则,因此我尝试根据我在帮助中阅读的内容添加此行。
autocmd BufNew,BufRead *.sql :match ErrorMsg none
但是,每当我加载 sql 文件时,都会引发以下错误。
Error detected while processing BufRead Auto commands for "*.sql":
E488: Trailing characters: :match ErrorMsg none
Press ENTER or type command to continue
我怎样才能让它工作而不抛出错误?
【问题讨论】:
-
我遇到了类似的问题,这对我有用:stackoverflow.com/a/1702770/42388
标签: vim