This is an old revision of the document!
Corning Community College
CSCS1730 UNIX/Linux Fundamentals
Course Wiki Page
I feel like there should be some beautiful words of knowledge contained on this page, so I have decided to do my best attempt at making it that way.
- Escape key leads to command mode.
- 'i' leads to insert mode at the current space.
- Navigation is accomplished through h (right), j (down), k (up), l (left).
- 'a' leads to insertion mode at the next space.
- 'I' leads to insert mode at the beginning of the line.
- 'A' leads to insert mode at the end of the line.
- 'o' leads to insert mode on a new line after the current line.
- 'O' leads to insert mode on a new line before the current line.
- 'w' is move forward a word (stop not just at spaces, but also / . , ? and more).
- 'b' is move back a word (same as above).
- 'W' and 'B' move forward and backward a word (only stop at spaces).
- '.' repeats the last command.
- '^' and '$' take you to the beginning and end of lines respectively without going into insert mode.
- '{' and '}' take you to the previous and next paragraphs. [Side Note: many of these commands can be prefixed with a number, which means you want the command to be executed that many times].
- 'x' deletes the next character.
- 'X' is cutting (acts like backspace).
- You can also do commands like dw, db, d^, d$, d{, d}, dd which do a delete operation related to the letter after the 'd' (dd deletes the current line).
- 'v' allows you to highlight text by moving around with the arrow keys.
- 'y' is yank (essentially just 'copy'). There must be text highlighted for this to work.
- 'p' pastes below and 'P' pastes above.