LoginSignup
18
14

More than 5 years have passed since last update.

Vimで複数のファイルを開く

Last updated at Posted at 2014-07-14

Vim初心者に向けてあれこれ・・・
詳しくはここを参照

複数のファイルを開く

# vi ファイル名1 ファイル名2 ... ファイル名n

ディレクトリ内の全てのテキストファイルを開く

# vi ディレクトリ名/*.txt

ウィンドウを水平分割して開く

# vi ファイル名1 ファイル名2 ... ファイル名n -o

ウィンドウを垂直分割して開く

# vi ファイル名1 ファイル名2 ... ファイル名n -O

タブを分割して開く

# vi ファイル名1 ファイル名2 ... ファイル名n -p

ファイルを移動する

次のファイル

:n

前のファイル

:N

次のタブ

:gt

前のタブ

:gT
18
14
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
18
14