GIT_EDITOR not working with macvim

前端 未结 4 946
一生所求
一生所求 2021-02-01 01:25

This is what I have in my ~/.bashrc

export GIT_EDITOR=\'/Applications/MacVim.app/Contents/MacOS/Vim -g \'

When I issue

git comm         


        
4条回答
  •  北恋
    北恋 (楼主)
    2021-02-01 02:15

    This worked great for me.
    git config --global core.editor 'mvim -f --nomru -c "au VimLeave * !open -a iTerm"'
    If you are using Terminal.app instead of iTerm.app you can just switch it out. Source: https://github.com/b4winckler/macvim/wiki/FAQ (though they are using the EDITOR env variable instead of the gitconfig)

提交回复
热议问题