search
HomeSystem TutorialLINUXA more modern and intuitive Linux text editor than Vim
A more modern and intuitive Linux text editor than VimFeb 05, 2024 pm 02:00 PM
linuxlinux tutoriallinux systemlinux commandshell scriptoverflowembeddedlinuxgood promiseGetting started with linuxlinux 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

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

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

Micro 的常见文件操作

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

⚡ micro rumenz.txt

这将创建一个名为 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

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

sudo snap remove micro

在命令行上编辑不再困难

如果您因为害怕而推迟使用命令行文本编辑器,那就试试 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
This article is reproduced at:良许Linux教程网. If there is any infringement, please contact admin@php.cn delete
什么是linux设备节点什么是linux设备节点Apr 18, 2022 pm 08:10 PM

linux设备节点是应用程序和设备驱动程序沟通的一个桥梁;设备节点被创建在“/dev”,是连接内核与用户层的枢纽,相当于硬盘的inode一样的东西,记录了硬件设备的位置和信息。设备节点使用户可以与内核进行硬件的沟通,读写设备以及其他的操作。

Linux中open和fopen的区别有哪些Linux中open和fopen的区别有哪些Apr 29, 2022 pm 06:57 PM

区别:1、open是UNIX系统调用函数,而fopen是ANSIC标准中的C语言库函数;2、open的移植性没fopen好;3、fopen只能操纵普通正规文件,而open可以操作普通文件、网络套接字等;4、open无缓冲,fopen有缓冲。

linux中什么叫端口映射linux中什么叫端口映射May 09, 2022 pm 01:49 PM

端口映射又称端口转发,是指将外部主机的IP地址的端口映射到Intranet中的一台计算机,当用户访问外网IP的这个端口时,服务器自动将请求映射到对应局域网内部的机器上;可以通过使用动态或固定的公共网络IP路由ADSL宽带路由器来实现。

linux中eof是什么linux中eof是什么May 07, 2022 pm 04:26 PM

在linux中,eof是自定义终止符,是“END Of File”的缩写;因为是自定义的终止符,所以eof就不是固定的,可以随意的设置别名,linux中按“ctrl+d”就代表eof,eof一般会配合cat命令用于多行文本输出,指文件末尾。

linux怎么判断pcre是否安装linux怎么判断pcre是否安装May 09, 2022 pm 04:14 PM

在linux中,可以利用“rpm -qa pcre”命令判断pcre是否安装;rpm命令专门用于管理各项套件,使用该命令后,若结果中出现pcre的版本信息,则表示pcre已经安装,若没有出现版本信息,则表示没有安装pcre。

linux怎么查询mac地址linux怎么查询mac地址Apr 24, 2022 pm 08:01 PM

linux查询mac地址的方法:1、打开系统,在桌面中点击鼠标右键,选择“打开终端”;2、在终端中,执行“ifconfig”命令,查看输出结果,在输出信息第四行中紧跟“ether”单词后的字符串就是mac地址。

手机远程linux工具有哪些手机远程linux工具有哪些Apr 29, 2022 pm 05:30 PM

手机远程linux工具有:1、JuiceSSH,是一款功能强大的安卓SSH客户端应用,可直接对linux服务进行管理;2、Termius,可以利用手机来连接Linux服务器;3、Termux,一个强大的远程终端工具;4、向日葵远程控制等等。

linux中rpc是什么意思linux中rpc是什么意思May 07, 2022 pm 04:48 PM

在linux中,rpc是远程过程调用的意思,是Reomote Procedure Call的缩写,特指一种隐藏了过程调用时实际通信细节的IPC方法;linux中通过RPC可以充分利用非共享内存的多处理器环境,提高系统资源的利用率。

See all articles

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.