aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorodave <aryadevchavali1@gmail.com>2020-04-05 02:31:09 +0100
committerodave <aryadevchavali1@gmail.com>2020-04-05 02:31:09 +0100
commit6baa9a8165c800b51877c60a4c3cdee333ecbf16 (patch)
tree49ab79e0b50c5b82151395e8f2ce2232d71c3eb6
parent22a2742271a04e90497e01a59a04450f832efec5 (diff)
downloaddotfiles-6baa9a8165c800b51877c60a4c3cdee333ecbf16.tar.gz
dotfiles-6baa9a8165c800b51877c60a4c3cdee333ecbf16.tar.bz2
dotfiles-6baa9a8165c800b51877c60a4c3cdee333ecbf16.zip
-opam config in vim
-rw-r--r--vimrc32
1 files changed, 0 insertions, 32 deletions
diff --git a/vimrc b/vimrc
index 86b9309..896caf2 100644
--- a/vimrc
+++ b/vimrc
@@ -101,35 +101,3 @@ nnoremap <leader>pg :!ctags-exuberant -R --exclude=Makefile .
"" Tags
nnoremap <leader>tt :Tags<CR>
-" ## added by OPAM user-setup for vim / base ## 93ee63e278bdfc07d1139a748ed3fff2 ## you can edit, but keep this line
-let s:opam_share_dir = system("opam config var share")
-let s:opam_share_dir = substitute(s:opam_share_dir, '[\r\n]*$', '', '')
-
-let s:opam_configuration = {}
-
-function! OpamConfOcpIndent()
- execute "set rtp^=" . s:opam_share_dir . "/ocp-indent/vim"
-endfunction
-let s:opam_configuration['ocp-indent'] = function('OpamConfOcpIndent')
-
-function! OpamConfOcpIndex()
- execute "set rtp+=" . s:opam_share_dir . "/ocp-index/vim"
-endfunction
-let s:opam_configuration['ocp-index'] = function('OpamConfOcpIndex')
-
-function! OpamConfMerlin()
- let l:dir = s:opam_share_dir . "/merlin/vim"
- execute "set rtp+=" . l:dir
-endfunction
-let s:opam_configuration['merlin'] = function('OpamConfMerlin')
-
-let s:opam_packages = ["ocp-indent", "ocp-index", "merlin"]
-let s:opam_check_cmdline = ["opam list --installed --short --safe --color=never"] + s:opam_packages
-let s:opam_available_tools = split(system(join(s:opam_check_cmdline)))
-for tool in s:opam_packages
- " Respect package order (merlin should be after ocp-index)
- if count(s:opam_available_tools, tool) > 0
- call s:opam_configuration[tool]()
- endif
-endfor
-" ## end of OPAM user-setup addition for vim / base ## keep this line