Force Terminal to Use Gedit for any Text Editing - not vim I'm learning to program. While following this mission, I typed git commit, which opened up vim. I don't know or want to know vim (no offense to vim lovers). I'd like to have:


terminal open gedit ever time it try to do text editing from the
terminal; and 
gedit release the terminal for further use.


How do I do that?

UPDATE: 

Ok. I'm close, but I must be missing something. 

Added /Applications/gedit.app/Contents/MacOS/
to /etc/paths

Because I wasn't root, I had to save it to my desktop. Then I had to move it to /etc, so, terminal handled that. 

sudo mv paths /etc


Then I changed the editor. 

git config --global core.editor "gedit"


after typing 

git commit


I received. 

error: cannot run gedit: No such file or directory
error: There was a problem with the editor 'gedit'.
Please supply the message using either -m or -F option.


UPDATED 2: 
Relaunching terminal fixed the problem. 

Thanks everyone.
You should edit your git configuration file regarding which editor to use. 

As noted here How do I make git use the editor of my choice for commits?


  From man git-commit:
  
  
    ENVIRONMENT AND CONFIGURATION VARIABLES
    
    The editor used to edit the commit log message will be chosen from the GIT_EDITOR environment variable, the core.editor configuration variable, the VISUAL environment variable, or the EDITOR environment variable (in that order).