gitのエディタを変更した話

gitでcommitしたかったのに怒られた... 数日前まで問題なかったと思うのだけれど.

$ git commit
neocomplete does not work this version of Vim.
It requires "if_lua" enabled Vim(7.3.885 or above).
Press ENTER or type command to continue

commitコメントを入力.

error: There was a problem with the editor 'vi'.
Please supply the message using either -m or -F option.

結果的にはcommitができていない.

vim, MacVimを+luaオプション付きでインストール 問題点はこの方の通りなのだけれど,でもこれだけでは解決しない.

gitで使うエディタをこれにしないといけない.
ということで git config する.

$ git config --global core.editor /usr/local/bin/vim