Ubuntu 14.04 LTS provides a Gedit editor for users to work with files and folders. However, if you want to use Open with Gedit, you must first add it to the right click menu in Ubuntu.
To start off, we will need to open a terminal window and type in the following command, which will create a new script file in our nautilus scripts directory
Paste in the following script, found on the G-Scripts site, which is a great resource for finding scripts.
Save and close the gedit window, and then execute the following command to make the script executable:
Note that tab completion really helps here =)
Now when you right click a file, you should see this:
Tested on: Ubuntu Dapper, Ubuntu Edgy Eft