mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 17:26:02 +02:00
vim: remove <ESC> from beginning of commands
This commit is contained in:
parent
2c40178eb1
commit
e80c67e791
1 changed files with 7 additions and 7 deletions
|
@ -10,28 +10,28 @@
|
||||||
|
|
||||||
- Save a file:
|
- Save a file:
|
||||||
|
|
||||||
`:write`
|
`:write<Enter>`
|
||||||
|
|
||||||
- Quit without saving:
|
- Quit without saving:
|
||||||
|
|
||||||
`<Esc>:quit!<Enter>`
|
`:quit!<Enter>`
|
||||||
|
|
||||||
- Open a file at a specified line number:
|
- Open a file at a specified line number:
|
||||||
|
|
||||||
`vim +{{line_number}} {{path/to/file}}`
|
`vim +{{line_number}} {{path/to/file}}`
|
||||||
|
|
||||||
- View help for setting (such as {{set number}}):
|
- View Vim's help manual:
|
||||||
|
|
||||||
`<Esc>:help '{{setting_name}}'`
|
`:help<Enter>`
|
||||||
|
|
||||||
- Undo the last operation:
|
- Undo the last operation:
|
||||||
|
|
||||||
`<Esc>u`
|
`u`
|
||||||
|
|
||||||
- Search for a pattern in the file (press `n`/`N` to go to next/previous match):
|
- Search for a pattern in the file (press `n`/`N` to go to next/previous match):
|
||||||
|
|
||||||
`<Esc>/{{search_pattern}}<Enter>`
|
`/{{search_pattern}}<Enter>`
|
||||||
|
|
||||||
- Perform a regex substitution in the whole file:
|
- Perform a regex substitution in the whole file:
|
||||||
|
|
||||||
`<Esc>:%s/{{pattern}}/{{replacement}}/g<Enter>`
|
`:%s/{{pattern}}/{{replacement}}/g<Enter>`
|
||||||
|
|
Loading…
Add table
Reference in a new issue