这是我的 darkerdesert.vim:
hi Cursor guibg=#b3b3df guifg=grey30 gui=bold
hi VertSplit guibg=#505050 guifg=grey50 gui=none
hi Folded guibg=#252525 guifg=gold3
hi FoldColumn guibg=#252525 guifg=gold3
hi IncSearch guifg=slategrey dark guibg=ghost white
hi LineNr guifg=grey30
hi ModeMsg guifg=goldenrod3
hi MoreMsg guifg=SeaGreen Dark
hi NonText guifg=LightBlue guibg=#252525
hi Question guifg=#28a45c
我需要提取用英文命名的颜色,例如“LightBlue”、“slategrey dark”。我的解决方案如下:
while (<DATA>) {
print $1,"\n" while /(?:[bf]g\=\K(?!\#)(.*)(?=gui))/g;
}
有了这个模式/[bf]g\=\K(?!\#)(.*)(?=gui)/
,我只能得到之间的项目gui[bf]g=
。
所以我的问题是:如何匹配所有英文颜色名称?(goldenrod3,SeaGreen....等)