LoginSignup
1
0

More than 5 years have passed since last update.

vim-Tips集

Posted at

目次

  1. 編集中のファイルの名前を確認する
  2. 文字列を置換する

(随時追加予定)

1.編集中のファイルの名前を確認する

編集中のファイルの名前を確認するには、<Ctrl>+gを押します。
それだけです。

2.文字列を置換する

コマンドモードで:%s/<置換対象文字列>/<置換後文字列>

ファイル中の全ての対象文字列を置換するには、コマンドの最後に/gをつけます。
:%s/<置換対象文字列>/<置換後文字列>/g

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