If you are looking for a good Gedit alternativre. Have a look at medit text editor as replacement for Gedit! I’m using xfce4 desktop manager and without gnome, gedit (GNOME text editor) doesn’t display correctly. In fact it’s pretty ugly. Simply remove gedit and replace with medit (pictured below). Also check out Sublime Text as a good alternative.
For Arch Linux simply do:
pacman -R gedit then pacman -S medit
For Debian/Ubuntu use:
apt install medit
Also see: Best Linux Distro, for Desktop