prefer the GUI version to the terminal version because the GUI fires focus events. I use FocusLost to avoid typing :w every time I switch away and FocusGained to pulse the cursorline and have vim-gitgutter automatically update all the visible buffers when I switch back to MacVim.
http://howivim.com/2016/andy-stewart/