gvim cmdline OSX - macvim from the terminal
macvim doesn't seem to install a 'gvim' command. So opening files from the terminal with gvim doesn't work.
Add this to your .bash_profile
Then you'll need to source your shell, or open new shell tabs. Or paste that line into your current shell. Then you can open your files again with OSX gvim and the terminal.
aaaaaaah. Sigh of relief at being able to open files from the cmd line again :)
Add this to your .bash_profile
function gvim { /Applications/MacVim.app/Contents/MacOS/Vim -g $*; }
Then you'll need to source your shell, or open new shell tabs. Or paste that line into your current shell. Then you can open your files again with OSX gvim and the terminal.
aaaaaaah. Sigh of relief at being able to open files from the cmd line again :)
Comments
find /Applications/MacVim.app -name mvim
find /usr/local/ -name mvim
find /opt/ -name mvim
find /usr/bin/ -name mvim
function gvim { /Applications/MacVim.app/Contents/MacOS/Vim -g "$*"; }
to open files with spaces.