improve vim

This commit is contained in:
Malin Freeborn 2020-01-14 02:29:59 +01:00
parent 0e585796aa
commit b6ae7a2fed
5 changed files with 70 additions and 29 deletions

8
text/vim/completion.md Normal file
View File

@ -0,0 +1,8 @@
Complete the word:
> C-n
Complete the full segment:
> C-x C-l

39
text/vim/navigate.md Normal file
View File

@ -0,0 +1,39 @@
| Move | Command |
|:-----|:-------------|
|Down page | C-f |
| Down half page | C-d |
| Up page | C-b |
| Up half page | C-u |
## Scroll
> C-e
> C-y
## Jumps
Go through your last jumps:
> C-I
> C-O
Go to the last and previous places you've changed:
> g;
> g,
# Project Structure
Make a 20 character 'visual split' in the current working directory ('`.`').
> :20vs .
Change the view for this:
> C-w x

11
text/vim/screens.md Normal file
View File

@ -0,0 +1,11 @@
Make a horizontal split with:
> :sp
> C-w s
Or a vertical split with:
> :vsp
> C-w v

View File

@ -1,30 +1,2 @@
Describe what you want, then press as few keys as possible.
To disable ignoring case enter:
> :set noic
To perform one case-insensitive search, enter:
> /keyword\c
# Split Screen
Make a horizontal split with:
> :sp
Or a vertical split with:
> :vsp
Then place window-commands with Ctrl+w.
|Command | Key |
|:-------|:---:|
|Down|j|
|Up|k|
|Quit current windows| q |
|Rotate window positions | r / R|
|Enlarge/ shrink window | +/- |

11
text/vim/windows.md Normal file
View File

@ -0,0 +1,11 @@
| Command | Keys |
|:-----|:----:|
| split window | C-w s |
| split window vertically | C-w v |
| close window | C-q |
| change window | C-w w |
| rotate windows | C-w r |
| split open new file | :sf path/file |