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
Written by Jason Yuen
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#