Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

43
tldr/vim Normal file
View File

@@ -0,0 +1,43 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# vim
> Vim (Vi IMproved), a command-line text editor, provides several modes for different kinds of text manipulation.
> Pressing `i` in normal mode enters insert mode. Pressing `<Esc>` goes back to normal mode, which enables the use of Vim commands.
> See also: `vimdiff`, `vimtutor`, `nvim`.
> More information: <https://www.vim.org>.
- Open a file:
`vim {{path/to/file}}`
- Open a file at a specified line number:
`vim +{{line_number}} {{path/to/file}}`
- View Vim's help manual:
`:help<Enter>`
- Save and quit the current buffer:
`:wq<Enter>`
- Enter normal mode and undo the last operation:
`<Esc>u`
- Search for a pattern in the file (press `n`/`N` to go to next/previous match):
`/{{search_pattern}}<Enter>`
- Perform a regular expression substitution in the whole file:
`:%s/{{regular_expression}}/{{replacement}}/g<Enter>`
- Display the line numbers:
`:set nu<Enter>`