In short, can single bash commands in the terminal contain conditionals? If so, how?I have in my vimrc (shared across systems) the following command to open my current LaTeX document in .pdf form:map ,v :!gnome-open %<.pdf <CR> <CR> My question is, what is the best way to have ,v execute simply open %<.pdf when I'm at home on my OS X machine? Here is my pseudo-code guess:... if [$OSTYPE == darwin*] then open %<.pdf else gnome-open %<.pdf ...This is executed as a single BASH command. Are such conditionals possible? If so, could someone help me with the syntax? If not, can this be done via conditionals in the vimrc file? 
How to map one vim command to execute bash commands based on OS?
bash;vim