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.

vimコマンド(自分用)

0
Posted at

使い始めた理由

仮想環境(GCEとか・・・)でファイル共有面倒すぎてvim使いになることを決心

vim導入(ubuntu/linux)

sudo apt-get install vim

コマンド一覧

コマンド 内容
vim ~~ ~~にファイルパスでvimが使えるようになる

escを押した状態で使うコマンド(最初開いたときはこの状態)

コマンド 内容
vim ~~ ~~にファイルパスでvimが使えるようになる
:wq 保存
:q! 保存しないで終了
gg 先頭にいく
G 最後の行に行く
2G 2行目に行く(数字変えると何行目にもいける)
dd 行削除
2dd 2行削除(数字変えると何行でも削除できる)
w 単語移動
$ 行末に移動
i 挿入モード(戻るときはesc)
v ビジュアルモード(戻るときは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?