HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mg — A small, fast, and portable text editor based on `emacs`. More information: <https://manned.org/mg>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandtextandmgclismallfastportable

Problem

How to use the mg command: A small, fast, and portable text editor based on emacs. More information: <https://manned.org/mg>.

Solution

mg — A small, fast, and portable text editor based on emacs. More information: <https://manned.org/mg>.

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

Code Snippets

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

Context

tldr-pages: common/mg

Revisions (0)

No revisions yet.