update vim syntax

This commit is contained in:
2025-03-26 14:07:27 +01:00
parent a6b8420c26
commit 641b8fb825
6 changed files with 37 additions and 49 deletions

View File

@@ -1,34 +1,21 @@
---
title: "vim navigation"
tags: [ "vim" ]
tags: [ "vim", "navigation" ]
---
| 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,
| Move | Command |
|:------------------------|:-------------|
| Down page | Ctl-f |
| Down half page | Ctl-d |
| Up page | Ctl-b |
| Up half page | Ctl-u |
| Scroll down | Ctl-e |
| Scroll up | Ctl-y |
| Jump to previous place | Ctl-i |
| Jump to back | Ctl-o |
| Jump to last change | g; |
| Jump to next change | g, |
| Go to current filename | gf |
Go to a filename, and type `gf` (Go-to-File).
For example, if you put your cursor over the `~/.vimrc` in this line, you can edit your vim configuration file.
@@ -39,10 +26,10 @@ For example, if you put your cursor over the `~/.vimrc` in this line, you can ed
Make a 20 character 'visual split' in the current working directory ('`.`').
> :20vs .
`:20vs .`
Change the view for this:
Swap buffer positions:
> C-w x
`C-w x`