Skip to content

Instantly share code, notes, and snippets.

@goddoe
Last active February 14, 2019 05:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goddoe/f5bf9e512dca6ae0a8dad8fbdefa81e0 to your computer and use it in GitHub Desktop.
Save goddoe/f5bf9e512dca6ae0a8dad8fbdefa81e0 to your computer and use it in GitHub Desktop.
How to change default editor of git
git config --global core.editor "vim"

if you want to set the editor for Git and also other programs, set the standardized VISUAL and EDITOR environment variables*:

export VISUAL=vim
export EDITOR="$VISUAL"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment