Simplify function vimopen()