Created
May 21, 2012 06:37
-
-
Save hidakatsuya/2760826 to your computer and use it in GitHub Desktop.
String Replacement on Vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
最短マッチ | |
<.\{-}> #=> <a><b> = "<a>" | |
改行を含む任意の一文字 | |
\_.* #=> foo\nbar\nhoge = "foo\nbar\nhoge" | |
CAUTION: | |
注意すべきは、"\"は「円(¥)」ではなく「バックスラッシュ」であること | |
MEMO: | |
:%s/^.\{-}WARNING - Property.\{-}never defined\_.\{-}^//gc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment