Gedit: the simple yet powerful text editor for Linux

Introduction

In the Linux ecosystem there are numerous text editors, ranging from minimal options like nano to powerful IDEs like VS Code or IntelliJ. Among them, Gedit stands out for its balance between ease of use and advanced functionality, making it an ideal tool for both beginners and experienced users seeking a lightweight and customizable environment.

What is Gedit?

Gedit is the official text editor of the GNOME desktop environment. Developed in GTK+, its design follows the principles of simplicity and integration with the desktop, offering a clean interface that adapts to the system theme. Although its appearance is minimal, under the hood it houses a powerful editing engine based on GtkSourceView, which allows syntax highlighting, advanced search and replace, and plugin support.

Main Features

  • Syntax highlighting for more than 200 programming languages.
  • Search and replace with regular expressions.
  • Support for editing remote files via GVFS (FTP, SFTP, WebDAV, etc.).
  • Bookmark viewer and session management.
  • Integration with the debugging tool GDB via plugins.
  • Ability to split the screen into two panes to compare files.
  • Print support and print preview.

Installation on Different Distributions

Due to its popularity, Gedit is available in the official repositories of almost all Linux distributions. Below are the most common commands:

  • Ubuntu / Debian: sudo apt update && sudo apt install gedit
  • Fedora: sudo dnf install gedit
  • Arch Linux: sudo pacman -S gedit
  • openSUSE: sudo zypper install gedit
  • Flatpak (universal): flatpak install flathub org.gnome.gedit

After installation, simply run gedit from the terminal or search for it in the application menu.

Basic Usage

When opening Gedit, a window appears with a traditional menu bar (File, Edit, Search, View, Tools, Help). The central area is where the file content is displayed. Some quick actions every user should know:

  • Ctrl + N: create a new document.
  • Ctrl + O: open an existing file.
  • Ctrl + S: save changes.
  • Ctrl + Shift + S: save as.
  • Ctrl + F: start the search bar.
  • Ctrl + H: open the replace dialog.
  • Ctrl + Z / Ctrl + Y: undo and redo.

The side panel, accessible via F9, shows the list of open files and allows quick switching between them.

Customization and Plugins

One of Gedit’s greatest advantages is its plugin system. From the menu