[英]Syn Match Regex Expression for all lines ending with a colon, but not beginning with a dash
[英]syn match in vimrc but highlight not ok
我有一个 vimrc 文件
" activates filetype detection
filetype plugin indent on
" activates syntax highlighting among other things
syntax on
set autoindent
colorscheme default
highlight Comment ctermfg=DarkGreen
syntax match dollar "/\$\w*"
highlight dollar ctermfg=magenta
我想要所有带有洋红色$
的单词......但是当我打开一个文件时,所有带有$
的单词都是黄色的......当我尝试只用:/\$\w*
测试正则表达式时,所有$word
被选中...所以我不明白为什么突出显示不行...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.