improve vim
This commit is contained in:
parent
0e585796aa
commit
b6ae7a2fed
8
text/vim/completion.md
Normal file
8
text/vim/completion.md
Normal 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
39
text/vim/navigate.md
Normal 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
11
text/vim/screens.md
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
Make a horizontal split with:
|
||||
|
||||
> :sp
|
||||
|
||||
> C-w s
|
||||
|
||||
Or a vertical split with:
|
||||
|
||||
> :vsp
|
||||
> C-w v
|
@ -1,30 +1,2 @@
|
||||
|
||||
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 | +/- |
|
||||
|
||||
Describe what you want, then press as few keys as possible.
|
||||
|
||||
|
11
text/vim/windows.md
Normal file
11
text/vim/windows.md
Normal 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 |
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user