Skip to content

Instantly share code, notes, and snippets.

@atkak
Last active January 2, 2016 06:29
Show Gist options
  • Select an option

  • Save atkak/8263874 to your computer and use it in GitHub Desktop.

Select an option

Save atkak/8263874 to your computer and use it in GitHub Desktop.
Install OCaml

##Install

$ brew install ocaml

##OPAM Package manager for OCaml.

$ brew install opam
$ omap init

##batteries Foundation library.

$ opam install batteries

##OMake Build tool.

$ opam install omake

##Vim ###Merlin Supports for auto complete and shows syntax error. (Depends on syntastics vim plugin.)

$ opam install merlin

Add following to ~/.vimrc

:set rtp+=~/.opam/4.01.0dev+trunk/share/ocamlmerlin/vim
:set rtp+=~/.opam/4.01.0dev+trunk/share/ocamlmerlin/vimbufsync
let g:syntastic_ocaml_checkers=['merlin']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment