0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Vimの便利コマンド

Last updated at Posted at 2020-04-23

Vim 便利なコマンド
空行の削除
:v/./d

指定したテキストだけ置換処理をする。
:s/\%V置換前/置換後/g

, を改行へ置換
:%s/,/\r/g

行No + G で行No へ飛ぶ

単語の上で * で単語検索が可能

検索文字を含む行抽出
:v/検索文字/d

検索文字を含む行削除
:g/検索文字/d

反転解除
:noh

改行を削除する。
:%s/\n//g

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?