# Help set gvim bash

This is a discussion on Help set gvim bash within the Tech Board forums, part of the Community Boards category; Hi. I'm trying to learn vim. Is it possible to change gvim's shell from the default cmd.exe to my lovely ...

1. ## Help set gvim bash

Hi.
I'm trying to learn vim.

Is it possible to change gvim's shell from the default cmd.exe to my lovely msys sh?
I want to be able to run make or execute a newly compiled program from within gvim, and preferably hotkey these actions.

Thanks!

2. Originally Posted by glo
Hi.
I'm trying to learn vim.

Is it possible to change gvim's shell from the default cmd.exe to my lovely msys sh?
I want to be able to run make or execute a newly compiled program from within gvim, and preferably hotkey these actions.

Thanks!
Add this to your .vimrc (or whatever the equivalent is for gvim on Windows):

set shell=/path/to/shell

3. How can I configure the path to point to sh.exe if it needs the following arguments: "--login -i" ?
I tried both:
next edit msys's ~/.profile configuration and comment out the last part where it autoexecs a cd to $(HOME) : #cd "$HOME"