vim: remove <ESC> from beginning of commands

client-spec/clarity
Ryan Olson 2020-01-22 20:39:06 -07:00 committed by Starbeamrainbowlabs
parent 2c40178eb1
commit e80c67e791
1 changed files with 7 additions and 7 deletions

View File

@ -10,28 +10,28 @@
- Save a file:
`:write`
`:write<Enter>`
- Quit without saving:
`<Esc>:quit!<Enter>`
`:quit!<Enter>`
- Open a file at a specified line number:
`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:
`<Esc>u`
`u`
- 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:
`<Esc>:%s/{{pattern}}/{{replacement}}/g<Enter>`
`:%s/{{pattern}}/{{replacement}}/g<Enter>`