Update vim fucntion OpenCMD()