Last Updated: February 25, 2016
·
427
· jayuen

Case-convert backreferences in VIM regex

Use \U (for upper) or \L (for lower) before a backreference

For example:

:%s/\(cases\)/\U\1/g

...turns 'cases' into 'CASES'

http://vim.wikia.com/wiki/Changing_case_with_regular_expressions