Install Gedit on Ubuntu 22.10 and Make it Default Text Editor

Newer versions of Ubuntu have replaced Gedit with the new GNOME Text Editor. Here's how to install Gedit and make it the default text editor.
Warp Terminal

GNOME has a brand new text editor to replace the good old Gedit editor.

While it was already available with GNOME 42, Ubuntu 22.04 relied on Gedit.

This is changing in Ubuntu 22.10. GNOME Text Editor is the default here and Gedit is not even installed.

text editor ubuntu
Searching for text editor only brings GNOME Text Editor

While the new editor is good enough, not everyone would like it. This is especially if you use Gedit extensively with additional plugins.

If you are among those people, let me show you how to install Gedit on Ubuntu. I’ll also share how you can make it the default text editor.

Install Gedit on Ubuntu

This is actually a no-brainer. While Gedit is not installed by default, it is still available in Ubuntu repositories.

So, all you have to do is to use the apt command to install it:

sudo apt install gedit

Gedit is also available in the software center but it is the snap package. You could install that if you want.

install gedit from ubuntu software center
Gedit is also available in Ubuntu’s Snap Store

Install Gedit Plugins (optional)

By default, Gedit gives you the option to access a few plugins. You can enable or disable the plugins from the menu->preference->plugins.

access plugins in gedit
Accessing plugins in Gedit

You should see the available plugins here. The installed or in-use plugins are checked.

plugins in gedit
See the available and installed plugins in Gedit

However, you can take the plugin selection to the next level by installing the gedit-plugins meta package.

sudo apt install gedit-plugins

This will give you access to additional plugins like bookmarks, bracket completion, Python console and more.

additional plugins gedit
Additional Gedit plugins
🏋️
If you notice that Gedit looks a bit out of place for the lack of around bottom corners, you can install a GNOME extension called Round Bottom Corner. This will force round bottom corners for all applications, including Gedit.

Make Gedit the default text editor

Alright! So you have installed Gedit but the text files still open in GNOME Text Editor with double click action. To open a file with Gedit, you need to right click and then select the ‘open with’ option.

If you want Gedit to open text files all the time, you can set it as default.

Right click on a text file and go with “open with” option. Select Gedit here and enable the “Always use for this file type” option from the bottom.

set gedit default
Set Gedit as the default text editor

Remove Gedit

Don’t feel Gedit is up to the mark? That’s rare, but I am not judging you. To remove Gedit from Ubuntu, use the following command:

sudo apt remove gedit

You may also try uninstalling it from the software center.

Conclusion

GNOME Text Editor is the next-gen, created-from-scratch editor that blends well with the new GNOME.

It’s good enough for simple text editing. However, Gedit has a plugin ecosystem that gives it more features.

For those who use it extensively for coding and other stuff, installing Gedit is still an option in Ubuntu.

What about you? Will you stick with the default new text editor or will you return to the good old Gedit?

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries 🕵️‍♂️

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.