skip to main
|
skip to sidebar
Chaotic
堆積各式雜物
June 17, 2010
vim 比對 pattern 刪除
:g/pattern/d 刪除所有pattern所在的行
:g!/pattern/d 刪除所有pattern以外的行
Reference:
http://vim.wikia.com/wiki/Delete_all_lines_containing_a_pattern
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
yyhuang
View my complete profile
Blog Archive
►
2019
(1)
►
March
(1)
►
2017
(2)
►
June
(1)
►
May
(1)
►
2016
(3)
►
December
(2)
►
January
(1)
►
2015
(9)
►
November
(2)
►
October
(1)
►
July
(1)
►
June
(5)
►
2014
(5)
►
September
(2)
►
August
(2)
►
July
(1)
►
2013
(11)
►
August
(1)
►
June
(1)
►
May
(2)
►
April
(2)
►
March
(1)
►
February
(2)
►
January
(2)
►
2012
(3)
►
July
(1)
►
January
(2)
►
2011
(19)
►
October
(1)
►
September
(1)
►
August
(3)
►
July
(1)
►
June
(3)
►
May
(3)
►
April
(4)
►
March
(1)
►
February
(1)
►
January
(1)
▼
2010
(13)
►
December
(1)
►
November
(1)
►
October
(1)
►
September
(2)
►
August
(3)
▼
June
(3)
初衷
vim 指令備忘 #1
vim 比對 pattern 刪除
►
May
(1)
►
April
(1)
►
2009
(12)
►
December
(2)
►
November
(1)
►
September
(1)
►
June
(2)
►
April
(1)
►
March
(4)
►
January
(1)
►
2008
(19)
►
December
(5)
►
November
(3)
►
October
(1)
►
August
(2)
►
July
(2)
►
June
(2)
►
May
(2)
►
March
(1)
►
January
(1)
►
2007
(26)
►
December
(4)
►
November
(3)
►
October
(1)
►
August
(1)
►
July
(4)
►
June
(4)
►
May
(2)
►
April
(7)
Search This Blog
Recent Comments
Loading...
Labels
android
(2)
bang
(2)
bank
(1)
baseball
(1)
bash
(3)
boardgame
(2)
book
(1)
browser
(4)
docker
(1)
drama
(1)
erlang
(1)
food
(8)
game
(1)
git
(11)
google
(1)
hsinchu
(4)
japandrama
(1)
kindle
(2)
leverage
(1)
life
(5)
Mac
(1)
mongodb
(2)
movie
(6)
murmur
(18)
node.js
(1)
Notes
(50)
npm
(1)
Perl
(1)
python
(1)
QT
(1)
software
(1)
ssh
(3)
taipei
(2)
tea
(1)
travel
(10)
unity
(3)
vim
(16)
VirtualBox
(2)
xbox360
(1)
Subscribe To
Posts
Atom
Posts
Comments
Atom
Comments
No comments:
Post a Comment