Gedit is a general purpose and powerful text editor for the GNOME desktop environment, Mac OS X, and Microsoft Windows.
Kate is an advanced text editor for programmers.
If vim seems too much by the moment i think that kate is better than gedit
C++ Code Autoformatting
You can customize kate and i think you will like it better than gedit
Ubuntu 16.04 set metadada failed gedit