A text editor is one of the most used applications on any operating system. Whether you are writing some sophisticated code or editing the basic system configs, you will be using some sort of text editor. So it’s important that you choose a text editor that doesn’t slow you down in any way and maximizes productivity.
Top 4 Terminal Based Text Editors for Linux
Terminal-based text editors, do exactly that by removing the need of ever leaving your terminal and providing strong keyboard support, making the mouse redundant.
So now let’s look at the best terminal-based text editors Linux has to offer.
Vim is one of the most popular command-line text editors ever. If you have been using Linux for some time, you probably have come across jokes regarding how difficult it is to use Vim. It is certainly true that VIM has a steep learning curve due to its minimal mouse support and multiple modes but once you learn to use the extensive keyboard mappings and commands Vim offers, you can be more productive than you ever were. No scrolling down to the end of the document now, you can just press
These key mappings can be customized and extended too and the “recording macros” feature can also help you automate the sequence of keystrokes. Vim also has a lot of community plugins that add to the functionality or even beautify your working environment.
It also offers a fun interactive tutorial application called “vimtutor” which will take you through all its basic commands and features so that you can get started with your command line editing journey.
To get started with Vim, check out: Vim Tutorial
Emacs vs Vim has been one of the most heated discussions in the Linux community for years. But one thing that Emacs easily beats Vim is age. With its initial release in 1976, Emacs is one of the oldest pieces of software that is still being maintained. Emacs just like vim can be difficult at first but it will provide you with the fastest and most productive working environment ever.
Apart from being able to do everything Vim can, Emacs is insanely extensible. It even comes with its own fully-fledged package manager to download those extensions. With Emacs, you can browse the internet, check your mail, read pdf, listen to music, share files, watch movies, check IRC, play games, and much more INSIDE THE TEXT EDITOR ITSELF.
Emacs is without a doubt one of the most powerful text editors ever written. So powerful in fact, that it is often jokingly called an operating system instead of a text editor and it’s not hard to see why.
To get started with Emacs, check out: Basic Emacs guide
Another classic. Nano unlike Emacs and Vim is as a beginner as it can get. Nano comes pre-installed on most distros and is usually the first cli-text editor most people use. It is simple, minimal, intuitive, and perfect for casual config editing.
To get started with Vim, check out: Nano tutorial
If you want something with high-end features like the ones Vim has but at the same time want a more gradual learning curve, ne is just the thing for you. By default ne comes with syntax-highlighting, a macro scripting system for automating keystrokes, regex support and bracket matching which are all the things lacking in nano. However, it follows nano’s approach in its intuitive and simple key bindings.
ne was picked as the third-best terminal by LinuxVoice with Emacs and Vim taking up the first two spots. Sadly it doesn’t have a lot of community plugins and extensions.
These for command-line text editors fit just about everyone’s needs. Want a super-efficient work environment and don’t mind learning a bunch of keybindings? Vim it is! Want everything that Vim has but also better integration with other applications? Emacs is just the thing. Don’t want to spend hours learning commands but still want decent features? Look no forward than ne! But if all you want is to edit a few lines of code and don’t care about efficiency, Nano is always there for you 🙂