One of my problems when creating a portable .vimrc is with locales. Let's say I always want to use English language for messages. Depending on OS and Vim version, the command needed may be lang messages en, lang messages en_US, lang messages English_US, etc. Now, I can do this:
try
lang messages en
catch
try
lang messages en_US
catch
try
lang messages English_US
catch
...
endtry
endtry
endtry
but is there a simpler way?