better vim function

this functino either opens vim in the directory, or at the file provided