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 5 years have passed since last update.

vi便利コマンド

0
Posted at

・文字コードを指定して表示
:e ++enc=文字コード

・ファイルエンコードを指定して保存しなおす
:set fenc=文字コード

・開いているファイルの文字コードの確認
:set enc?

・開いてるファイルエンコードの確認
:set fenc?

・タブ関連
新規タブを開く:tabnew
次のタブに切り替え:gt
前のタブに切り替え:gT
ウィンドウを閉じる:q
バッファを閉じる:bd

・次の画面に進む
:Ctr+f

・前の画面に進む
:Ctr+b

・入力補完
入力中にCtr+pを押す

・ビジュアルモード
通常モードでvを押す

・矩形選択+挿入
1.Ctr+v
2.カーソルで範囲を選択
3.Shift+iまたはShift+a
4.文字を入力後、escキー

・矩形選択+削除+挿入
1.Ctr+v
2.カーソルlを押す
3.カーソルで範囲を選択
4.カーソルのcを押してインサートモード
5.文字を入力後、escキー

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?