GitHub
vim
.
js
:) Please Click me! # Features ## 1. general mode | Command | Description | | ----- | ----------------------- | | Esc | switch to general mode | | u | returned to the previous operation | | Move the cursor : | | h or ← | move left one character | | j or ↓ | move down one line | | k or ↑ | move up one line | | l or → | move right one character | | supported nh,nj,nk,nl | | 0 or [HOME]| move to head of line | | $ or [End] | move to end of line | | G | go to end | | gg | go to first line | | delete, copy and paste: | | x or [Delete] | delete single character | | nx or n[Delete] | delete `n` characters | | yy | copy current line | | nyy | copy `n` lines | | dd | delete current line | | ndd | delete `n` lines | | p,P | `p` paste after,`P` paste before| | w or W | move to next word | | supported nw and nW | | yw | copy one word | | nyw | copy `n` words | | dw | delete one word | | ndw | delete `n` words |
## 2. edit mode | Command | Description | | ----- | ----------------------- | | i | insert | | a | append | | o | open line below and enter edit mode | | O | open line after and enter edit mode | | r | replace one character | ## 3. visual mode | Command | Description | | ----- | ----------------------- | | v or V | switch ot visual mode | | y | copy the selected text | | x or d | delete the selected text|
Note:
Please use the vim instructions in the English input method!
by
Top lan
Fork me
Star me