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

【Vim】基本コマンドの使い方まとめ①

Last updated at Posted at 2022-02-16

はじめに

こんにちは。
こちらの記事では、Vim の基本コマンドについて記しています。
誤っている点がございましたらコメントいただけると幸いです。

基本コマンド

キー 動作
esc コマンド(標準)モード切り替え
i 挿入モード切り替え
A 末尾に移動して、挿入モード切り替え
:w 編集しているファイルの保存
:wq 編集しているファイルを保存して閉じる
:q 編集を加えていないファイルを閉じる
:q! 編集を保存せずに強制的に閉じる
x 1文字削除
de 1単語削除
d$ カーソルにのった文字を含んだ末尾までの行を削除
0 先頭行まで移動
dd 行削除
2dd 2行削除(数字で複数行選択可能)
u 直前に実行したコマンドのやり直し
U 直前に実行したコマンドを行ごとやり直し
control + r コマンドのやり直しの取り消し

おわりに

ここまで基本コマンドの一部についてまとめました。
引き続きチュートリアルに取り組んでいきます!

以上、最後まで読んでいただきありがとうございました!

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?