ルートにて次のコマンド
#aptitude install git-core
#yum install git
vimに変更する
git config --global core.editor vim