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

[‘

n

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.

n

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.

n

AMP Features:

n

    n

  • File Finder – Rapidly indexes and searches files using a easy, exact matching algorithm and Ignores git folders by default.
  • n

  • Easy Movement – Quick cursor motion without repetitive keystrokes.
  • n

  • Symbol Jump – Go to any class, form, or method definition within the current buffer.
  • n

  • Flexible Keymaps – Easy YAML-based key mappings with the capability to create multiple built-in commands into new, custom macros.
  • n

n

Requirements

n

    n

  1. A Rust programming language must installed on the system.
  2. n

  3. These dependencies libxcb, openssl, zlib, cmake and python3 packages must installed on the system.
  4. n

n

How to Install Amp Text Editor in Linux

n

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

n

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

n

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.

n

$ git clone https://github.com/jmacdonald/amp.gitrn$ cd amprn$ lsrn$ cargo install amprn

n

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

n

$ git clone https://aur.archlinux.org/amp.gitrn$ cd amprn$ makepkg -isrrn

n

How to Use Amp Text Editor in Linux

n

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.

n

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

n

$ amp tecmint.txtrn

n

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

n

AMP in Open Mode
AMP in Open Mode

n

AMP in Normal Mode
AMP in Normal Mode

n

AMP in Leave Open Mode
AMP in Leave Open Mode

n

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

n

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.

n

‘]