Regular Expression
VIM
Delete All Lines Pattern
- Delete all lines matching a pattern
:g/<pattern>/d
Copy all lines
- Copy all lines matching a pattern to end of file
:g/<pattern>/t$
:g/<pattern>/d
:g/<pattern>/t$
MyWiki: RegularExpression (last edited 2009-09-06 02:49:27 by localhost)