Quantcast
Viewing all articles
Browse latest Browse all 5712

Vimで特定の文字列を含む行を除去する

これでいけます

:g/tes/d

このようなテキストがある場合

hoge
test
hoge
test
hoge

このようになります

hoge
hoge
hoge

正規表現を駆使すれば複雑な行の削除もできますね


Viewing all articles
Browse latest Browse all 5712

Trending Articles