sudo apt-get install gedit -y
Type
gedit in Terminal or right click on a text doc and select Properties-Open With-gedit
Open the text doc and click Edit-Preferences & tick "Display line numbers" on the View tab
Remove auto made backups:
REFOpen a text doc w/ gedit and select Edit-Preferences-Editor (tab) and uncheck the option "Create a backup copy of files before saving"