Table of Contents
How does Micro compare to other editors" >How does Micro compare to other editors
Features of Micro Text Editor" >Features of Micro Text Editor
Universal but customizable keybindings" >Universal but customizable keybindings
Full mouse support" >Full mouse support
Color and syntax highlighting" >Color and syntax highlighting
Multiple cursors" >Multiple cursors
Special plug-in system" >Special plug-in system
Built-in terminal emulator" >Built-in terminal emulator
How to install Micro on Linux" >How to install Micro on Linux
Micro 的常见文件操作" >Micro 的常见文件操作
卸载 Micro" >卸载 Micro
在命令行上编辑不再困难" >在命令行上编辑不再困难
Home System Tutorial LINUX A more modern and intuitive Linux text editor than Vim

A more modern and intuitive Linux text editor than Vim

Feb 05, 2024 pm 02:00 PM
linux linux tutorial linux system linux command shell script overflow embeddedlinux good promise Getting started with linux linux learning

If you are tired of Vi and Vim's strange interface and cumbersome key bindings, why not try the Micro editor?

The command line text editor proves the usefulness of the Linux terminal, allowing you to edit files without leaving the terminal. These editors use fewer resources and are very fast, making them perfect for some quick edits.

Some popular command line text editors include Vi, Vim, and Nano. They come pre-installed on most Linux distributions. However, for beginners, learning Vi or Vim's curves and keybindings can be somewhat difficult. At this time, Micro text editor becomes an easier choice.

比 Vim 更现代直观的 Linux 文本编辑器

How does Micro compare to other editors

Micro claims to be a modern and intuitive terminal-based text editor, and rightly so. Micro's main advantage over the likes of Vi or Vim is simplicity. Vim is not for the faint of heart and requires you to learn all the different modes and keybindings.

Although Vim is worth learning and mastering, it can be overwhelming for beginners. The Nano is relatively simple to use, but still falls short of the simplicity of the Micro. Take saving a file as an example. With Nano, you need to press Ctrl/Cmd O, which is usually a shortcut for opening files in popular word processors like Microsoft Word. Not very intuitive!

With Micro, saving a file is as easy as pressing Ctrl/Cmd S, a keyboard shortcut you're probably already used to. Even if you've never used a terminal-based text editor, you'll feel right at home using Micro. However, that's not all. It has its own set of features that further enrich the user experience.

比 Vim 更现代直观的 Linux 文本编辑器

Features of Micro Text Editor

In addition to being simple and easy to use, Micro is not shy about adding some useful features. Let's look at these in detail.

Universal but customizable keybindings

比 Vim 更现代直观的 Linux 文本编辑器

By default, Micro comes with some key bindings similar to those on popular word processors. But as an advanced user, you can customize these bindings to your liking and configure them the way you want.

比 Vim 更现代直观的 Linux 文本编辑器

Full mouse support

One of the features missing from most command line text editors is mouse and trackpad support. With Micro, you don't have to worry. You can click and drag to select text, double-click to select words, and triple-click to select lines.

Color and syntax highlighting

比 Vim 更现代直观的 Linux 文本编辑器

Micro supports syntax highlighting for more than 130 programming languages, including popular languages ​​such as JavaScript, Python, and C. In addition to this, you can choose your theme from seven available default color schemes.

Don't like the existing themes? You can even make your own theme to use with Micro.

Multiple cursors

比 Vim 更现代直观的 Linux 文本编辑器

Similar to Sublime Text’s multi-cursor functionality, you can also use Micro to edit multiple instances of the same word. Additionally, you can split the editor horizontally and vertically to view and edit multiple files at once.

Special plug-in system

比 Vim 更现代直观的 Linux 文本编辑器

To go further, you can add plugins to Micro and enhance the editor. You can view all available plug-ins from the Plugins page of the Micro Text Editor website. It comes with six default plugins for automatically closing brackets and quotes, inspecting code, and more.

Built-in terminal emulator

比 Vim 更现代直观的 Linux 文本编辑器

With Micro, you can run an interactive shell within the editor itself. This is especially useful when you want to split the editor in half, with the code on one side and the shell's output display on the other.

How to install Micro on Linux

Installing the Micro editor is simple and straightforward. You can choose any of several installation methods depending on the Linux distribution you are running. You can download the latest pre-built binaries for all distributions using:

rumenz.com@rumenz.com /home/rumenz.com/www.rumenz.com.com
⚡curl https://getmic.ro | bash
Copy after login

For distributions such as Ubuntu that support snap packages, you can install Micro's snap variant using the following command:

rumenz.com@rumenz.com /home/rumenz.com/www.rumenz.com.com
⚡ snap install micro --classic
Copy after login

If you don't like snap or curl, you can download the pre-built DEB binaries from the releases page and install them on Debian-based Linux on the release version.

To get clipboard support, you need to install the xclip and xsel packages. In Ubuntu and other Ubuntu-based Linux distributions, you can install it using the following command:

rumenz.com@rumenz.com /home/rumenz.com/www.rumenz.com.com                                                 
⚡ sudo apt install xclip
Copy after login

Micro 的常见文件操作

现在您已经安装了 Micro,是时候熟悉它的使用了。为此,您可以尝试使用 Micro 创建一个新的文本文件,编辑它,找到一个词,并在完成后保存文件。要启动 Micro,请运行以下命令:

⚡ micro rumenz.txt
Copy after login

这将创建一个名为 rumenz的新文本文件,扩展名为TXT。要打开现有文件而不是创建新文件,你可以将命令中的rumenz.txt 替换为你需要的文件名和扩展名。

运行命令时,Micro 将使用传统的文本编辑器界面迎接您。由于您创建了一个新文件,因此该文件的内容将为空白。继续添加一两句话以熟悉界面。

您可以分别使用 Ctrl/Cmd + ZCtrl/Cmd+ Y 撤消和重做您的操作 ,就像您在文字处理器中所做的那样。要查找单词,您可以使用 Ctrl + F 快捷键。

最后,您可以使用 Ctrl/Cmd+ S 快捷方式 保存文本文件, 并使用Ctrl/Cmd+ Q 快捷方式退出 Micro。

卸载 Micro

如果 Micro 不是您想要的并且您不再需要它,您可以通过 从**/usr/bin** 目录中删除micro 可执行文件来 轻松卸载它。

sudo rm /usr/bin/micro
Copy after login

但是,如果您使用 snap 安装 Micro,则必须使用以下命令将其卸载:

sudo snap remove micro
Copy after login

在命令行上编辑不再困难

如果您因为害怕而推迟使用命令行文本编辑器,那就试试 Micro。这是一个很好的工具,可以让您熟悉终端并在使用过程中获得更高效的体验。

The above is the detailed content of A more modern and intuitive Linux text editor than Vim. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Linux Architecture: Unveiling the 5 Basic Components Linux Architecture: Unveiling the 5 Basic Components Apr 20, 2025 am 12:04 AM

The five basic components of the Linux system are: 1. Kernel, 2. System library, 3. System utilities, 4. Graphical user interface, 5. Applications. The kernel manages hardware resources, the system library provides precompiled functions, system utilities are used for system management, the GUI provides visual interaction, and applications use these components to implement functions.

vscode terminal usage tutorial vscode terminal usage tutorial Apr 15, 2025 pm 10:09 PM

vscode built-in terminal is a development tool that allows running commands and scripts within the editor to simplify the development process. How to use vscode terminal: Open the terminal with the shortcut key (Ctrl/Cmd). Enter a command or run the script. Use hotkeys (such as Ctrl L to clear the terminal). Change the working directory (such as the cd command). Advanced features include debug mode, automatic code snippet completion, and interactive command history.

How to check the warehouse address of git How to check the warehouse address of git Apr 17, 2025 pm 01:54 PM

To view the Git repository address, perform the following steps: 1. Open the command line and navigate to the repository directory; 2. Run the "git remote -v" command; 3. View the repository name in the output and its corresponding address.

Where to write code in vscode Where to write code in vscode Apr 15, 2025 pm 09:54 PM

Writing code in Visual Studio Code (VSCode) is simple and easy to use. Just install VSCode, create a project, select a language, create a file, write code, save and run it. The advantages of VSCode include cross-platform, free and open source, powerful features, rich extensions, and lightweight and fast.

How to run java code in notepad How to run java code in notepad Apr 16, 2025 pm 07:39 PM

Although Notepad cannot run Java code directly, it can be achieved by using other tools: using the command line compiler (javac) to generate a bytecode file (filename.class). Use the Java interpreter (java) to interpret bytecode, execute the code, and output the result.

What is the main purpose of Linux? What is the main purpose of Linux? Apr 16, 2025 am 12:19 AM

The main uses of Linux include: 1. Server operating system, 2. Embedded system, 3. Desktop operating system, 4. Development and testing environment. Linux excels in these areas, providing stability, security and efficient development tools.

How to run sublime after writing the code How to run sublime after writing the code Apr 16, 2025 am 08:51 AM

There are six ways to run code in Sublime: through hotkeys, menus, build systems, command lines, set default build systems, and custom build commands, and run individual files/projects by right-clicking on projects/files. The build system availability depends on the installation of Sublime Text.

vscode terminal command cannot be used vscode terminal command cannot be used Apr 15, 2025 pm 10:03 PM

Causes and solutions for the VS Code terminal commands not available: The necessary tools are not installed (Windows: WSL; macOS: Xcode command line tools) Path configuration is wrong (add executable files to PATH environment variables) Permission issues (run VS Code as administrator) Firewall or proxy restrictions (check settings, unrestrictions) Terminal settings are incorrect (enable use of external terminals) VS Code installation is corrupt (reinstall or update) Terminal configuration is incompatible (try different terminal types or commands) Specific environment variables are missing (set necessary environment variables)

See all articles