vim : Highlight tab with one color and spaces with another ? -
how can highlight tabs 1 color , spaces in vim ?
i know how highlight tabs or spaces. , don't know how select colors separately both spaces , tabs.
a simple solution like:
:match error /\t/ :2match todo / / where error , todo highlight groups :highlight. going take 2 of 3 matches , temporary.
theoretically use matchadd() or combination of highlight groups , :syntax match commands in .vimrc make more permanent question doesn't specify if that's want.
Comments
Post a Comment