6
1
I have tried to put the following in my .vimrc file:
syn match parens /[(){}]/
hi parens ctermfg=red
to permanently color brackets, parentheses, braces etc, however it doesnt work. If I do it inline inside vim it does work.
Any ideas why?
Thanks
Perfect answer. In my copy I replaced
BufRead,BufNewFile
withVimEnter
and put the hi line in my colors file. Beeyouteefull. – lee8oi – 2018-12-15T21:15:58.273Maybe I should say,
VimEnter,BufWinEnter
. That's what finally got it working for me both when I opened vim and when using:e filename
. – lee8oi – 2018-12-15T22:58:12.010