- What is AI networking? How it automates your infrastructure (but faces challenges)
- I traveled with a solar panel that's lighter than a MacBook, and it's my new backpack essential (and now get 23% off for Black Friday)
- Windows 11 24H2 hit by a brand new bug, but there's a workaround
- This Samsung OLED spoiled every other TV for me, and it's $1,400 off for Black Friday
- How to Protect Your Social Media Passwords with Multi-factor Verification | McAfee Blog
5 top Linux text editors that aren't vi or Emacs (and why they are my favorite)
Linux has always had text editors. Back in the early days, the infamous editor wars that pitted Emacs against vi and those on either side of the fence were fiercely loyal to their choice. Both of those text editors are not only very powerful but aren’t exactly the user-friendly sort. Consider this: To save a file in vi, you have to hit Shift+: and then type wq (for write/quit) to save. Those types of keyboard shortcuts are necessary to function within vi and most users (especially those new to Linux) don’t need the added confusion.
Also: 10 Linux apps I can’t do without – and why
The modern text editor has become something quite different. It’s no longer only for configuring Linux or writing code. Although text editors are still used for these tasks, they can also be used for note-taking, journals, and even writing a novel. Although I’ve never used a text editor to write a full-length book, I have used them for short stories and flash fiction.
I expect to catch flack for this, but neither vi nor Emacs is included on this list. Why you ask?
Although both of those editors are exceptionally powerful, I’ve always found them to get in the way more than help. Emacs and vi aren’t for the average user or everyday use — and that’s what I’m focused on here. If you’re a serious admin, power user, or developer, vi or Emacs will serve you very well. So, if you find the editors listed here too simple or not flexible enough, you can always turn to those two powerhouse tools to help you code, configure, and administer.
For those who appreciate tools that are easier to use (but still effective), read on.
1. nano
The nano editor has been my go-to for decades. Yes, it’s basic, but it gets the job done. Nano includes all the features I need in an editor (and not much more). With nano, you can write simple flat text files (meaning that they have no formatting), and enjoy features like interactive search-and-replace, undo/redo, syntax coloring, smooth scrolling, auto-indentation, go-to-line-and-column-number, feature toggles, file locking, and internationalization support.
Also: 5 Linux file and folder management commands you need to know
One thing to note: Nano is a terminal application, which means it doesn’t have a GUI app. You open the terminal and issue the command nano filename (where filename is the file you want to either edit or create). There are several options you can use, such as –backup (which creates a backup of the previous version of the file), –tabstospaces (which converts typed tabs to spaces), –locking (which locks the file when editing), –smooth (for smooth scrolling), and many more.
Nano is free and comes pre-installed with most Linux distributions.
2. Gedit
Gedit, the default text editor for the GNOME desktop, is a basic but effective GUI application. With Gedit you’ll find features like tabs, support for internationalized text (UTF-8), syntax highlighting, markdown support, configurable fonts and colors, print support, auto-save, create auto backup, keyboard shortcuts, theming, full-screen mode, and more.
The thing that sells me on Gedit is its simplicity. Although I almost always default to nano, when I need a GUI text editor, it’s usually Gedit. Ultimately, however, one of the main reasons I keep Gedit around is that the nano editor has to be opened from the terminal window, which means you can’t simply double-click a file in your file manager to open it in a terminal. Ergo, Gedit. There is, however, another reason why I sometimes will opt for Gedit. You can use this text editor in fullscreen mode, so when I want to edit a text file without distraction, I can go fullscreen and chase everything else away.
Also: The top 5 GNOME extensions I install first (and what they can do for you)
Gedit is free and ships with most GNOME-based desktop distributions.
3. COSMIC Text Editor
COSMIC Text Editor will be the default text editor for System76’s COSMIC desktop (once it’s finally released). However, the COSMIC Text Editor is already showing great progress and promises to be the Gedit equivalent of COSMIC. COSMIC will include a fairly typical feature set, such as syntax highlighting, standard keyboard shortcuts, find, spellcheck, project support, revert changes, document statistics, and even Git management support.
Also: Linux distro hopping is a fun way to find the perfect desktop operating system
It’s a rare occasion that I find a dark theme preferable, but with COSMIC Text Editor, it just seems fitting. Like Gedit, COSMIC Text Editor is very simple to use and can be employed for basic or even more complicated tasks (such as writing code). If you use Pop!_OS, you can get an idea of what COSMIC Text Editor will look and feel like by installing it from the Pop Shop.
COSMIC Text Editor is free and will be officially available when the COSMIC Desktop OS ships.
4. Kate
Kate is to KDE Plasma what Gedit is to GNOME. The difference between the two is that Kate offers a few more features, such as multi-cursor and multi-cursor selection (which allows you to select multiple strings of text at once or even manipulate multiple strings at the same time).
Kate also features project support, syntax highlighting, standard keyboard shortcuts, and even plugins. With the plugins feature, you can add SQL query support, GDB debugging, one-click project build, and more. Think of Kate as a supercharged version of Gedit that can also be used for creating and editing simple text files.
Also: My top 5 user-friendly GUI backup tools for the Linux desktop (and why you need one)
Kate is free and ships as the default text editor for the KDE Plasma desktop.
5. Sublime Text
Sublime Text is the only proprietary editor on the list and is the most powerful (by far) of those listed. One thing to understand about Sublime is that it is geared toward programmers and that is clear with with features like GPU rendering support, tab multi-select, context-aware auto-complete, powerful syntax highlighting engine, in-editor code building, snippets, command palette (to launch specific commands with keyboard shortcuts), simultaneous editing, and more. Yes, Sublime can also be used for creating and editing basic text files, but that would be like going to the grocery store in a Ferrari.
Also: Gemini Live is rolling out to all Android users – for free. Here’s how to access it
Sublime can be tested for free on Linux (as well as MacOS and Windows), but to continue using this powerful text editor, it will cost you a one-time payment of $99.00.
If you’re just looking to create and edit simple text files (or edit Linux configuration files), stick with Nano. If you prefer a GUI, any one of these tools will work for you. If you like the idea of Sublime Text (which is a fantastic tool), just remember it’s probably more power than you’ll ever need for simple text editing.