Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override filetypes that already exist in filetype.vim #1

Open
wants to merge 4 commits into
base: ocaml_interface
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ Plugin 'ocaml/vim-ocaml'
NeoBundleInstall ocaml/vim-ocaml'

" or use NeoBundleLazy
NeoBundleLazy 'rgrinberg/vim-ocaml', {'autoload' : {'filetypes' :
\ ['ocaml', '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
Expand Down
1 change: 1 addition & 0 deletions ftdetect/menhir.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
au BufNewFile,BufRead *.mly set ft=menhir
2 changes: 1 addition & 1 deletion ftdetect/ocaml.vim
Original file line number Diff line number Diff line change
@@ -1 +1 @@
au BufNewFile,BufRead *.ml,*.mli,*.mll,*.mly,.ocamlinit,*.mlt,*.mlp,*.mlip,*.mli.cppo,*.ml.cppo setf ocaml
au BufNewFile,BufRead *.ml,.ocamlinit,*.mlt,*.mlp,*.ml.cppo setf ocaml
1 change: 1 addition & 0 deletions ftdetect/ocamlinterface.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
au BufNewFile,BufRead *.mli,*.mlip,*.mli.cppo set ft=ocamlinterface
1 change: 1 addition & 0 deletions ftdetect/ocamllex.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
au BufNewFile,BufRead *.mll set ft=ocamllex
12 changes: 12 additions & 0 deletions ftplugin/menhir.vim
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions ftplugin/ocamlinterface.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
" Language: OCaml Interface
" 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
12 changes: 12 additions & 0 deletions ftplugin/ocamllex.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
" Language: OCamlLex
" 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