Setting Up OCaml Indentation in Vim with ocp-indent
Vim’s default OCaml indentation is mediocre at best. The ocp-indent tool provides intelligent, syntax-aware indentation that respects OCaml conventions and integrates cleanly with Vim and Neovim. Installing ocp-indent Install via opam: opam install ocp-indent This installs the indentation engine and Vim plugin support. Verify the installation: which ocp-indent Configuring Vim Add this to your ~/.vimrc…
