LoginSignup
43
41

More than 5 years have passed since last update.

vimで正規表現に一致した行を消す

Last updated at Posted at 2013-08-02

一致した行を消す

:%g/^.*Port.*$/d

一致しない行を消す

:%v/^.*Port.*$/d

空白行を削除

:g/^$/d
43
41
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
43
41