lk/vim/navigate.md

49 lines
672 B
Markdown
Raw Permalink Normal View History

2022-01-16 18:20:39 +00:00
---
2022-02-03 19:10:35 +00:00
title: "vim navigation"
2022-01-16 18:20:39 +00:00
tags: [ "Documentation", "vim" ]
---
2020-01-14 01:29:59 +00:00
| 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,
2023-04-16 12:49:47 +00:00
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.
`source ~/.vimrc`
2020-01-14 01:29:59 +00:00
# Project Structure
Make a 20 character 'visual split' in the current working directory ('`.`').
> :20vs .
Change the view for this:
> C-w x