0
1

More than 1 year has passed since last update.

viエディタの基本コマンドをまとめます

Last updated at Posted at 2022-07-04

viエディタの基本コマンドがなかなか覚えられず、何度も検索してしまうため
自身の備忘・メモを兼ねて初投稿したいと思います。

基本操作

    ・ファイルを開く  ⇨ vi ファイル名
    ・ファイルを閉じる ⇨ [esc] 押下後 :q
    ・ファイルを保存する⇨ [esc] 押下後 :w
    ・ファイルを保存して閉じる ⇨ [esc] 押下後 :wq
    ・コマンドモード⇆インサートモード ⇨ i :カーソル位置に入力
                       a :カーソルのある文字の後に入力
                       I :行の先頭に入力
                       A :行の最後に入力
                      [esc]:コマンドモードへ
    ・カーソルの移動 ⇨右:l 左:h 上:k 下:j
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