<commit_before>![merlin completion in gvim](http://88.191.77.33/~rks/merlin-complete.png)

Installing Merlin manually
==========================

Compilation
-----------

Needed: OCaml 4, ocamlfind, ocamlbuild, yojson, menhir

Merlin requires OCaml >=4.00.1 (may work with newer versions, but it is tightly
bound to compiler internals).  
Then ensures that "yojson" and "menhir" are installed and are registered in
ocamlfind.

    $ ./configure
    $ make


Installation
------------

If you don't get any error in step above:

    $ make install 

Installation from git
---------------------

Don't forget to checkout submodules after pulling/cloning:

    $ git submodule init
    $ git submodule update

Installing Merlin with opam
===========================

Needed: [opam](http://opam.ocamlpro.com/doc/Advanced_Install.html),
OCaml 4.00.1 (can be installed via opam typing `opam switch 4.00.1`).

Then, just do :

    $ opam install merlin

Setting-up vim
==============

Makes sure that ocamlmerlin binary can be found in PATH.

The only setup needed is to have the following directories in
vim runtime path (append this to your .vimrc):

    :set rtp+=$SHARE_DIR/ocamlmerlin/vim
    :set rtp+=$SHARE_DIR/ocamlmerlin/vimbufsync

The default configuration can be seen in:  

    $SHARE_DIR/ocamlmerlin/vim/plugin/merlin.vim  

Now you may be interested by *Features and interaction with other plugins*,
*Merlin project* and *Extensions* sections.

Using Vundle
------------

Alternatively you can install vim support using [Vundle](https://github.com/gmarik/vundle).
Add the following to your .vimrc

    Bundle 'def-lkb/merlin', {'rtp' : 'vim/'}
    Bundle 'def-lkb/vimbufsync'

Features and interaction with other plugins
--------------------------------------------

Omnicompletion should be available out-of-box.

The documentation is accessible through `:h merlin.txt` and should provide all
the necessary information on how to set-up merlin with other plugins (
[Supertab](https://github.com/ervandew/supertab), 
[neocomplcache](https://github.com/Shougo/neocomplcache),
[syntastic](https://github.com/scrooloose/syntastic)).<commit_msg>correct rtp for merlin plugin in README<commit_after>![merlin completion in gvim](http://8172.16.17.32/~rks/merlin-complete.png)

Installing Merlin manually
==========================

Compilation
-----------

Needed: OCaml 4, ocamlfind, ocamlbuild, yojson, menhir

Merlin requires OCaml >=4.00.1 (may work with newer versions, but it is tightly
bound to compiler internals).  
Then ensures that "yojson" and "menhir" are installed and are registered in
ocamlfind.

    $ ./configure
    $ make


Installation
------------

If you don't get any error in step above:

    $ make install 

Installation from git
---------------------

Don't forget to checkout submodules after pulling/cloning:

    $ git submodule init
    $ git submodule update

Installing Merlin with opam
===========================

Needed: [opam](http://opam.ocamlpro.com/doc/Advanced_Install.html),
OCaml 4.00.1 (can be installed via opam typing `opam switch 4.00.1`).

Then, just do :

    $ opam install merlin

Setting-up vim
==============

Makes sure that ocamlmerlin binary can be found in PATH.

The only setup needed is to have the following directories in
vim runtime path (append this to your .vimrc):

    :set rtp+=$SHARE_DIR/ocamlmerlin/vim
    :set rtp+=$SHARE_DIR/ocamlmerlin/vimbufsync

The default configuration can be seen in:  

    $SHARE_DIR/ocamlmerlin/vim/plugin/merlin.vim  

Now you may be interested by *Features and interaction with other plugins*,
*Merlin project* and *Extensions* sections.

Using Vundle
------------

Alternatively you can install vim support using [Vundle](https://github.com/gmarik/vundle).
Add the following to your .vimrc

    Bundle 'def-lkb/merlin', {'rtp': 'vim/merlin/'}
    Bundle 'def-lkb/vimbufsync'

Features and interaction with other plugins
--------------------------------------------

Omnicompletion should be available out-of-box.

The documentation is accessible through `:h merlin.txt` and should provide all
the necessary information on how to set-up merlin with other plugins (
[Supertab](https://github.com/ervandew/supertab), 
[neocomplcache](https://github.com/Shougo/neocomplcache),
[syntastic](https://github.com/scrooloose/syntastic)).
{'fraction_non_alphanumeric': 0.16047102285846224, 'fraction_numerical': 0.010390210113137843, 'mean_word_length': 3.4159021406727827, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2027321', 'n_tokens_mistral': 1385, 'n_tokens_neox': 1292, 'n_words': 437}