Make sudo a function instead of an alias

Allows to only use user environment when running vim (which is what we
really want, usually).