Move out of the if as this should work with Vim < 7.3