added vim and misc functions