Merlin is an assistant for editing OCaml code. It aims to provide the features available in modern IDEs: error reporting, auto completion, source browsing and much more.
Merlin is editor independent, but support already exists for vim and emacs. See the following pages for information on how to setup merlin in these editors:
Merlin is controlled by a
.merlin file, which is documented in project-configuration.