1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 10:35:23 +02:00
tldr/pages/common/ex.md
Managor 4b1e0196d1
common/*: reduce usage of "command-line" (part 3) (#16951)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <wiktor@perskawiec.cc>
2025-06-28 13:12:44 +00:00

460 B

ex

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}}<Ctrl c>

  • Switch to Vim:

visual<Enter>