mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 08:02:08 +02:00
ex: add page (#6595)
This commit is contained in:
parent
64d6a8ebfb
commit
c37ef173f5
1 changed files with 33 additions and 0 deletions
33
pages/common/ex.md
Normal file
33
pages/common/ex.md
Normal file
|
@ -0,0 +1,33 @@
|
|||
# ex
|
||||
|
||||
> Command-line text editor.
|
||||
> See also: `vim`.
|
||||
> More information: <https://www.vim.org>.
|
||||
|
||||
- Open a file:
|
||||
|
||||
`ex {{path/to/file}}`
|
||||
|
||||
- Save and Quit:
|
||||
|
||||
`wq<Enter>`
|
||||
|
||||
- Undo the last operation:
|
||||
|
||||
`undo<Enter>`
|
||||
|
||||
- Search for a pattern in the file:
|
||||
|
||||
`/{{search_pattern}}<Enter>`
|
||||
|
||||
- Perform a regular expression substitution in the whole file:
|
||||
|
||||
`%s/{{regular_expression}}/{{replacement}}/g<Enter>`
|
||||
|
||||
- Insert text:
|
||||
|
||||
`i<Enter>{{text}}<C-c>`
|
||||
|
||||
- Switch to Vim:
|
||||
|
||||
`visual<Enter>`
|
Loading…
Add table
Reference in a new issue