vim中match命令指定的多个pattern的覆盖问题

来源:互联网 发布:财贸研究怎么样知乎 编辑:程序博客网 时间:2024/05/16 08:50

Q:

~/.vimrc中的片段:

    "规定的第1个pattern:

    match Title /=== .* ===/

    “规定的第2个pattern:

    match Comment /\/\/ .*$/

重新打开编辑的文件发现只有第二个pattern有效。


A:

使用syntax match或2match & 3match命令。


Reference:

http://stackoverflow.com/questions/8116563/vim-match-remove-other-match

原创粉丝点击