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 操作方法

Posted at

vimインストール・起動・バージョン確認

# バージョン確認
vim --version
# インストール
sudo apt install vim
# 起動
vim ファイル名

vimは基本的にキーで操作する。

カーソル移動

移動キー 説明
k 上移動
j 下移動
l 右移動
h 左移動

コマンド

キー 説明
a 挿入
a > Insert 置換
dd 1行削除
行の末尾へ $
行の先頭へ ^
ファイルの先頭へ gg
ファイルの末尾へ Shift + g
Ctrl + Insert コピー
Shift + Insert 貼り付け
:wq 保存、終了
:q! 保存せずに終了
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?