| Action | Command |
|---|---|
| Cut (delete) word(s) | d#w d#e |
| Copy (yank) | y |
| Paste | p: after cursor P: before cursor |
| Cursor Movement | h: left j: down k: up l: right |
| Goto line | #G: go to line # gg: start of file G: end of file |
| Goto matching paranthesis | % |
| Goto | 0: beginning of line $: end of line |
| Find character | #fx: find the #th occurence of x |
| Find text | /[text] n: next occurence N: previous occurence |
| Insert new line | o: below cursor O: above cursor |
| Insert repeated text | #iText: insert Text # times |
| Word movement | #w: next word e: end of word b: beginning of word |
| Replace character | r |
| Delete character | x or X |
| Repeat previous command | . |
| Visual mode | v |
| Undo | u |
| Redo | ctrl+r |
| Save (Write) | :w |
| Quit | :q :q! : quit without saving |
| Help | :help |
Last active
June 16, 2020 06:28
-
-
Save ahsan/bea362c9f5a1a0b5983528dd81136fc1 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment