diff --git a/pages/common/ex.md b/pages/common/ex.md new file mode 100644 index 0000000000..ad177e7174 --- /dev/null +++ b/pages/common/ex.md @@ -0,0 +1,33 @@ +# ex + +> Command-line text editor. +> See also: `vim`. +> More information: . + +- Open a file: + +`ex {{path/to/file}}` + +- Save and Quit: + +`wq` + +- Undo the last operation: + +`undo` + +- Search for a pattern in the file: + +`/{{search_pattern}}` + +- Perform a regular expression substitution in the whole file: + +`%s/{{regular_expression}}/{{replacement}}/g` + +- Insert text: + +`i{{text}}` + +- Switch to Vim: + +`visual`