Fix vim/gvim functions, have vim pulse on focusgained