Editing text at the command line with micro
Changing Your Keybindings
Maybe you're moving to micro from another text editor – one that uses a different set of keystrokes to access commands. You can change micro's keybindings by editing a file named bindings.json
in the folder config/micro/
in your /home
directory.
As with micro's configuration options, you use a set of attribute/value pairs to change the editor's keybindings. In this case, the attribute is the keystroke combination that you want to change, and the value is the name of the command for that keystroke.
Let's say you're used to pressing Ctrl+Y to paste text (remember that out of the box, micro does that when you press Ctrl+V). To change the command, add this to the file bindings.json
:
"Ctrl-y": "Paste"
Final Thoughts
Editing text at the Linux command line doesn't need to be intimidating. It doesn't need to involve using arcane keystroke combinations to access the editor's commands. Micro brings the ease of using a desktop text editor to the command line.
Micro not only packs a solid set of features, it wraps those features in a small package. It's one of the fastest and easiest-to-use command-line text editors that I've used over the years.
Micro lives up to its billing as an intuitive terminal-based text editor. It's definitely worth having around for those times when you need to edit text files at the command line.
Infos
- micro: https://micro-editor.github.io
- GitHub repository: https://github.com/zyedidia/micro
- micro plugins: https://micro-editor.github.io/plugins.html
- Developing plugins for micro: https://github.com/zyedidia/micro/blob/master/runtime/help/plugins.md
« Previous 1 2 3
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.
News
-
Rocky Linux 9.3 is Available for Download
The latest version of the RHEL alternative is now available and brings back cloud and container images for ppc64le along with plenty of new features and fixes.
-
Ubuntu Budgie Shifts How to Tackle Wayland
Ubuntu Budgie has yet to make the switch to Wayland but with a change in approaches, they're finally on track to making it happen.
-
TUXEDO's New Ultraportable Linux Workstation Released
The TUXEDO Pulse 14 blends portability with power, thanks to the AMD Ryzen 7 7840HS CPU.
-
AlmaLinux Will No Longer Be "Just Another RHEL Clone"
With the release of AlmaLinux 9.3, the distribution will be built entirely from upstream sources.
-
elementary OS 8 Has a Big Surprise in Store
When elementary OS 8 finally arrives, it will not only be based on Ubuntu 24.04 but it will also default to Wayland for better performance and security.
-
OpenELA Releases Enterprise Linux Source Code
With Red Hat restricting the source for RHEL, it was only a matter of time before those who depended on that source struck out on their own.
-
StripedFly Malware Hiding in Plain Sight as a Cryptocurrency Miner
A rather deceptive piece of malware has infected 1 million Windows and Linux hosts since 2017.
-
Experimental Wayland Support Planned for Linux Mint 21.3
As with most Linux distributions, the migration to Wayland is in full force. While some distributions have already made the move, Linux Mint has been a bit slower to do so.
-
Window Maker Live 0.96.0-0 Released
If you're a fan of the Window Maker window manager, there's a new official release of the Linux distribution that champions the old-school user interface.
-
KDE Plasma 6 Sets Release Date
If you've been anxiously awaiting the release of the next big KDE Plasma milestone, you can rest assured it's sooner than you think.