diff --git a/pages/common/mg.md b/pages/common/mg.md new file mode 100644 index 000000000..e4c998813 --- /dev/null +++ b/pages/common/mg.md @@ -0,0 +1,20 @@ +# mg + +> A small, fast, and portable text editor based on `emacs`. +> More information: . + +- Open a file for editing: + +`mg {{path/to/file}}` + +- Open a file at a specified line number: + +`mg +{{line_number}} {{path/to/file}}` + +- Open files in a read-only mode: + +`mg -R {{path/to/file1 path/to/file2 ...}}` + +- Disable `~` backup files while editing: + +`mg -n {{path/to/file}}`