Skip to content

Instantly share code, notes, and snippets.

@hidakatsuya
Created May 21, 2012 06:37
Show Gist options
  • Save hidakatsuya/2760826 to your computer and use it in GitHub Desktop.
Save hidakatsuya/2760826 to your computer and use it in GitHub Desktop.
String Replacement on Vim
最短マッチ
<.\{-}> #=> <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