working version (but rough) of using vim as editor