Matt Huntington 1 year ago
commit 3e04011b95

@ -34,13 +34,26 @@
## Navigation ## Navigation
### Cursor
- `hjkl` - move
- `w` - move to next word
- `b` - mve to previous word
- `H` move to top of screen
- `M` move to middle of screen
- `L` move to bottom of screen
### Screen
- `<ctrl-f>` page down - `<ctrl-f>` page down
- `<ctrl-b>` page up - `<ctrl-b>` page up
- `<ctrl-d>` half page down - `<ctrl-d>` half page down
- `<ctrl-u>` half page up - `<ctrl-u>` half page up
- `H` move to top of screen - `<ctrl + y>` to move the screen up one line.
- `M` move to middle of screen - `<ctrl + e>` to move the screen down one line.
- `L` move to bottom of screen - `zz` to move the current line I'm on to the center of the screen.
- `zt` to move the current line I'm on to the top of the screen.
- `zb` to move the current line I'm on to the bottom of the screen.
## Editing ## Editing
@ -52,8 +65,19 @@
- `dvb` delete backward to beginning of word including current char - `dvb` delete backward to beginning of word including current char
- `x` delete current char - `x` delete current char
- `X` delete previous char - `X` delete previous char
## Search
- `:vim a *.*` - search for 'a' in all files in dir
- `:copen` / `cclose` open quickfix list to view matches of `:vim`
- `/` find
- `n` find next match
- `N` find previous match
- `:noh` stop search highlight
- `:%s/wordtochange/changedvalue/gc` search/replace - `:%s/wordtochange/changedvalue/gc` search/replace
## Copying ## Copying
- `"+y` copys visual selection to clipboard - `"+y` copys visual selection to clipboard

Loading…
Cancel
Save