I want to upper case words in vi (this is a verilog syntax file where I want to change the connectivity).
I want to upper case one whole string and just first letter of second string
My search pattern is:
and I need a replace pattern like
\2 is completely upper-cased and contents of buffer
\4 is titled-cased. How is this possible?
\u substitution modifiers:
From the Vim help:
`\u` next character made uppercase `\U` following characters made uppercase, until `\E` `\E` end of \u, \U, \l and \L
Note that the above substitution will use title case for the
\4 match as long as it only contains one word, i.e., the substitution only converts the first character in the