One wants support from his editor for these reasons:
- better presentation via syntax highlighting/folding
- better automatic indentation
- spot errors earlier via background compilation, syntax highlighting (again) or by any other mean
- inline debugging
- introspection to list available names/methods, see an object type, and so on.
For 1 and 2, the default should be good enough, although there is this ocp-indent plugin that try to do a better job.
For 3 I resort on syntax highlighting, and do not know anything better for vim.
With regard to inline debugging, I never managed to make use of ocamldebug from the command line so never tried from the editor.
Regarding introspection, I can't recommend enough the annot program, that can be installed as a vim plugin as explained in the README.
Once installed you can get the type of anything under the cursor with only two keystrokes, which is very convenient for a language capable of inferring the most complex types.