2

I have just started using git and when I git commit it uses the VIM text editor to change write the commit message. Is this normal?

In the tutorials and examples I have read, nowhere has VIM been used.

Is it because I'm using windows 7 64 bit edition?

P P
  • 21
  • 1
  • 2
  • 1
    possible duplicate of [How can I set up an editor to work with Git on Windows?](http://stackoverflow.com/questions/10564/how-can-i-set-up-an-editor-to-work-with-git-on-windows) – Paul Tomblin Jan 02 '11 at 18:44
  • 1
    I do agree that the default use of VIM on windows (not only 64 bit) is disturbing. If you never used it before it is a real pain to only find out how to quit. Default should be as simple as possible. – Gauthier Jan 03 '11 at 22:26
  • ...and [Here](http://www.tuxfiles.org/linuxhelp/vimcheat.html)'s how to quit (and not only) VIM if you are a VIM n00b like myself – beon Aug 16 '11 at 23:18

3 Answers3

10

If you did not set an editor via the $GIT_EDITOR environment variable, core.editor configuration variable, the $VISUAL or $EDITOR environment variables, it will use vi.

Benjamin Bannier
  • 55,163
  • 11
  • 60
  • 80
0

How can I set up an editor to work with Git on Windows?

Community
  • 1
  • 1
machineghost
  • 33,529
  • 30
  • 159
  • 234
0

It is normal and it has nothing to do with the flavour of windows that you are using.

Adam Dymitruk
  • 124,556
  • 26
  • 146
  • 141