1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-06 15:06:00 +02:00

vim: update page (#9112)

This commit is contained in:
Dominique Köstler 2022-10-17 12:29:21 +02:00 committed by GitHub
parent 17c9c7c4d8
commit da56ffca68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
# vim
> Vim (Vi IMproved), a command-line text editor, provides several modes for different kinds of text manipulation.
> Pressing `i` enters insert mode. `<Esc>` enters normal mode, which enables the use of Vim commands.
> Pressing `i` in normal mode enters insert mode. Pressing `<Esc>` goes back to normal mode, which enables the use of Vim commands.
> More information: <https://www.vim.org>.
- Open a file:
@ -16,13 +16,13 @@
`:help<Enter>`
- Save and Quit:
- Save and quit the current buffer:
`:wq<Enter>`
- Undo the last operation:
- Enter normal mode and undo the last operation:
`u`
`<ESC>u`
- Search for a pattern in the file (press `n`/`N` to go to next/previous match):