skip to main
|
skip to sidebar
yelin's family
Friday, June 9, 2017
vim tip
Changing case with regular expressions
For example, assume a line with the text "This is a test".
:s/\(test\)/\U\1 file/
produces: This is a TEST FILE
:s/\(test\)/\U\1\e file/
produces: This is a TEST file
http://vim.wikia.com/wiki/Changing_case_with_regular_expressions
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
▼
2017
(9)
►
October
(1)
►
September
(1)
►
August
(1)
▼
June
(2)
spec link
vim tip
►
May
(1)
►
February
(3)
►
2016
(3)
►
September
(2)
►
June
(1)
►
2015
(3)
►
June
(1)
►
March
(1)
►
February
(1)
►
2014
(14)
►
December
(2)
►
October
(1)
►
August
(2)
►
June
(2)
►
May
(2)
►
April
(5)
►
2013
(7)
►
November
(2)
►
October
(5)
►
2012
(17)
►
July
(4)
►
May
(7)
►
April
(3)
►
March
(1)
►
February
(1)
►
January
(1)
►
2011
(10)
►
August
(1)
►
May
(8)
►
April
(1)
About Me
sunnyfamily
View my complete profile
No comments:
Post a Comment