Can I specify my shell for vim? I'm running OS X and have zsh installed via Homebrew and am using MacVim. When I type shell in MacVim, the shell opens up as bash. How can I have it open as zsh?

link|improve this question

40% accept rate
2  
vim will by default use your system configured shell. I suspect you're running zsh somewhere in your profile or your bash profile. Try running chsh to change your shell on your mac. – Dyslexic Tangent May 29 '11 at 18:19
feedback

1 Answer

up vote 4 down vote accepted

Add or change the following line in ~/.vimrc:

set shell=/path/to/zsh
link|improve this answer
Great, thanks!! – neezer May 24 '11 at 16:34
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.