0
0

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 1 year has passed since last update.

Vim cheat sheet

Last updated at Posted at 2024-02-25

Vimの基本的なコマンド

  • i : カーソルの前に挿入モードに入ります。
  • a : カーソルの後に挿入モードに入ります。
  • v : 文字単位のビジュアルモードに入ります。
  • V : 行単位のビジュアルモードに入ります。
  • :w : ファイルを保存します。
  • :q : Vimを終了します。
  • :wq : ファイルを保存してVimを終了します。

削除に関するコマンド

  • x : カーソルがある位置の文字を削除します。

  • dd : カーソルがある行を削除します。

  • 2dd : カーソルから始まる2行を削除します。(数字は任意の行数を指定できます)

  • :%d : 全部の行を削除します。

  • :[n],[n]d : n行目からn行目を削除します。

  • set number : 行番号を表示させます。

Vimを使い倒す

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?