Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
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. –  mkomitee May 29 '11 at 18:19

1 Answer 1

up vote 4 down vote accepted

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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