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

vim: remove <ESC> from beginning of commands

This commit is contained in:
Ryan Olson 2020-01-22 20:39:06 -07:00 committed by Starbeamrainbowlabs
parent 2c40178eb1
commit e80c67e791

View file

@ -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>`