Ocaml implementation of vim