Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highlight all upper case words in VIM

Tags:

vim

In my .vimrc file, I added

match Title /EXAMPLE/

so when I type EXAMPLE, this word is highlighted, it works fine, and my question is, how do I highlight all upper case letter? not just EXAMPLE, but everything else too.

--> THIS IS AN EXAMPLE
--> SECOND EXAMPLE
--> ETC

I want to highlight something like the sentences above.

like image 461
Qin Avatar asked Dec 17 '22 01:12

Qin


1 Answers

Do something like this

match Title /[A-Z]/

This will highlight all uppercase letters

like image 85
Pavan Manjunath Avatar answered Dec 21 '22 11:12

Pavan Manjunath