I am trying to set up Vim so that I can compile C code directly from the editor itself:

`.vimrc`:

```
let $BASH_ENV = "$HOME/.bashrc"

autocmd FileType c map <F6> :!gcc -o "%:p:r.out" "%:." <bar> more<CR>
autocmd FileType c map <F7> :!%:p:r.out <CR>

```

`.bash_aliases`:

```
alias gcc="gcc -lm -ansi -Wall -g -O0 -Wwrite-strings -Wshadow -pedantic-errors -fstack-protector-all"

```

`.bash_aliases` is being sourced from `.bashrc`.

When I compile anything with `F6`, the `gcc` alias is not used. How can I get `vim` to use the alias?

This is a follow up question to my [previous question](https://superuser.com/q/646217/131224).