clean functions, files and change default editor to vim