AMP – A Vi/Vim Inspired Text Editor for Linux Terminal

Amp is a lightweight, fully-featured Vi/Vim inspired text editor for your Linux terminal, written in Rust. It provides the core interaction model of Vi/Vim in a simplified way, and puts together the fundamental features required for a modern text editor.

It is a zero-configuration, no-plugins and terminal-based user interface that combines extremely well with terminal emulators such as tmux and Alacritty. Amp also supports a modal, keyboard-driven interface inspired by Vim that makes navigating and editing text fast.

AMP Features:

  • File Finder – Rapidly indexes and searches files using a easy, exact matching algorithm and Ignores git folders by default.
  • Easy Movement – Quick cursor motion without repetitive keystrokes.
  • Symbol Jump – Go to any class, form, or method definition within the current buffer.
  • Flexible Keymaps – Easy YAML-based key mappings with the capability to create multiple built-in commands into new, custom macros.

Requirements

  1. A Rust programming language must installed on the system.
  2. These dependencies libxcb, openssl, zlib, cmake and python3 packages must installed on the system.

How to Install Amp Text Editor in Linux

To install AMP Text Editor from source, you must first install the specified dependencies on your respective Linux distribution using following command.

$ sudo apt-get git libxcb1-dev libssl-dev zlib1g-dev cmake python3   [On Debian/Ubuntu]
# yum install git libxcb openssl-devel zlib-devel cmake python3      [On CentOS/RHEL]
# dnf install git libxcb openssl-devel zlib-devel cmake python3      [On Fedora]

Once all the required dependencies installed, you can now clone the AMP source code from its github repository and install it using the below commands.

$ git clone https://github.com/jmacdonald/amp.git
$ cd amp
$ ls
$ cargo install amp

On Arch Linux, you can install AMP from the AUR repository as shown.

$ git clone https://aur.archlinux.org/amp.git
$ cd amp
$ makepkg -isr

How to Use Amp Text Editor in Linux

Before starting Amp, it’s always a good practice to learn how to quit. Type Q or (Shift+q) to quit AMP when in normal mode.

Now you can open or create new files with AMP text editor as shown.

$ amp tecmint.txt

After opening a file using amp, press i to insert text and press Esc key followed by s to save changes to file.

AMP in Open Mode
AMP in Open Mode
AMP in Normal Mode
AMP in Normal Mode
AMP in Leave Open Mode
AMP in Leave Open Mode

For more information and usage as well configuration options, consult the amp documentation.

Amp is still in its early days, with certain features yet to be added. However, it is perfect for daily usage, with a number of exceptions. Try it out and share your thoughts about it via the comment section below.

Hey TecMint readers,

Exciting news! Every month, our top blog commenters will have the chance to win fantastic rewards, like free Linux eBooks such as RHCE, RHCSA, LFCS, Learn Linux, and Awk, each worth $20!

Learn more about the contest and stand a chance to win by sharing your thoughts below!

Aaron Kili
Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.