vi/vim

可以去通过这个游戏:

PacVim - A CLI Game To Learn Vim Commands - OSTechNix

去学会常见快捷键操作。

vi/vim常用快捷键

vi常用快捷键-键盘图

cheat_sheet_vim

vi常用快捷键-表格

Key What it does
Quit related
q quit
wq write and quit == save and quit
q! quit without save changes
Move relative to current position
h move left
j move down
k move up
l move right
Move relative to Word
w Move to next word
W Move to next blank delimited word
b Move to the beginning of the word
B Move to the beginning of blank delimited word
e Move to the end of the word
E Move to the end of blank delimited word
Move relative to Current Line
^ Moves to the first non-blank character in the current line
0 or | Move to the begining of the line
$ Move to the end of the line
+ Moves to the first character in the next line
- Moves to the first non-blank character in the previous line
Move relative to Line of File
gg or 1G Move to the first line of the file
nG or :n Move to nth line of the file
G Move to the last line of the file

一些不错的整理:Vim cheatsheet

results matching ""

    No results matching ""