diff --git a/README.md b/README.md index ecb3512..9d34e83 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,9 @@ Plugin 'ocaml/vim-ocaml' NeoBundleInstall ocaml/vim-ocaml' " or use NeoBundleLazy -NeoBundleLazy 'rgrinberg/vim-ocaml', {'autoload' : {'filetypes' : - \ ['ocaml', 'ocamlinterface', 'ocamllex', 'dune', 'opam', 'oasis', 'omake', 'ocamlbuild_tags', 'sexplib']}} +NeoBundleLazy 'ocaml/vim-ocaml', {'autoload' : {'filetypes' : [ + \ 'ocaml', 'ocamlinterface', 'ocamllex', 'menhir', 'dune', 'opam', + \ 'oasis', 'omake', 'ocamlbuild_tags', 'sexplib']}} ``` ## History diff --git a/ftdetect/menhir.vim b/ftdetect/menhir.vim new file mode 100644 index 0000000..46f5a1c --- /dev/null +++ b/ftdetect/menhir.vim @@ -0,0 +1 @@ +au BufNewFile,BufRead *.mly setf menhir diff --git a/ftdetect/ocaml.vim b/ftdetect/ocaml.vim index 002f6f0..e7c9490 100644 --- a/ftdetect/ocaml.vim +++ b/ftdetect/ocaml.vim @@ -1 +1 @@ -au BufNewFile,BufRead *.ml,*.mly,.ocamlinit,*.mlt,*.mlp,*.ml.cppo setf ocaml +au BufNewFile,BufRead *.ml,.ocamlinit,*.mlt,*.mlp,*.ml.cppo setf ocaml diff --git a/ftplugin/menhir.vim b/ftplugin/menhir.vim new file mode 100644 index 0000000..e1b9e8f --- /dev/null +++ b/ftplugin/menhir.vim @@ -0,0 +1,12 @@ +" Language: Menhir +" Maintainer: vim-ocaml maintainers +" URL: http://www.github.com/ocaml/vim-ocaml + +if exists("b:did_ftplugin") + finish +endif + +runtime! ftplugin/ocaml.vim +runtime! ftplugin/ocaml_*.vim ftplugin/ocaml/*.vim + +" vim:sw=2 fdm=indent