Well, actually Vim can execute scripts with
vim -s scriptname.vim. Those scripts have nothing to do with
bash though. They are written in
Vimscript. It's a full-blown scripting language with conditionals and printing commands among others. For an example of such a script, see your
/etc/vimrc or
/etc/vim/vimrc (different distros have different conventions as to where they put system-wide Vim configuration).
Or just start Vim like this:
Code:
vim -c 'let arg=1|if arg==1|echo "january"|endif'
and watch the last screen line after start.