You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote the vim config, but without experience in the matter, I'd welcome reviews from Vim gurus around here. In particular, it doesn't seem to work well when running from another switch without ocp-indent installed.
Here is the generated config:
" ## added by OPAM user-setup for vim / base ## 8a3125e39f347f6b9a1b167d8e564281 ## you can edit, but keep this linelets:opam_share_dir=system("opam config var share")
lets:opam_share_dir=substitute(s:opam_share_dir, '[\r\n]*$', '', '')
lets:opam_configuration= {}
function!OpamConfOcpIndent()
letl:file=s:opam_share_dir . "/vim/syntax/ocp-indent.vim"execute"source " . l:fileendfunctionlets:opam_configuration['ocp-indent'] =function('OpamConfOcpIndent')
function!OpamConfOcpIndex()
letl:file=s:opam_share_dir . "/vim/syntax/ocpindex.vim"execute"source " . l:fileendfunctionlets:opam_configuration['ocp-index'] =function('OpamConfOcpIndex')
function!OpamConfMerlin()
letl:dir=s:opam_share_dir . "/merlin/vim"execute"set rtp+=" . l:direndfunctionlets:opam_configuration['merlin'] =function('OpamConfMerlin')
lets:opam_packages= ["ocp-indent", "ocp-index", "merlin"]
lets:opam_check_cmdline= ["opam list --installed --short --safe --color=never"] +s:opam_packageslets:opam_available_tools=split(system(join(s:opam_check_cmdline, '')))
for tool ins:opam_available_toolscalls:opam_configuration[tool]()
endfor" ## end of OPAM user-setup addition for vim / base ## keep this line" ## added by OPAM user-setup for vim / ocp-indent ## 5d6d99a031a6705f9cc2e11f1f82dfc1 ## you can edit, but keep this lineifcount(s:opam_available_tools,"ocp-indent") ==0source"/home/lg/.opam/4.02.1/share/vim/syntax/ocp-indent.vim"endif" ## end of OPAM user-setup addition for vim / ocp-indent ## keep this line" ## added by OPAM user-setup for vim / ocp-index ## 59d5c954776e5ce4ab11f142f76e9cf1 ## you can edit, but keep this lineifcount(s:opam_available_tools,"ocp-index") ==0source"/home/lg/.opam/4.02.1/share/vim/syntax/ocpindex.vim"endif" ## end of OPAM user-setup addition for vim / ocp-index ## keep this line
The first chunk is static, the two last, obviously, dynamic, they serve as fallback when you run vim from a switch that doesn't have ocp-indent while your original switch had it.
Besides, does merlin/vim rely on python ? If yes, no reason not to do so for ocp-indent so I'd rather use the better version of the ocp-indent/vim plugin.
The text was updated successfully, but these errors were encountered:
I wrote the vim config, but without experience in the matter, I'd welcome reviews from Vim gurus around here. In particular, it doesn't seem to work well when running from another switch without ocp-indent installed.
Here is the generated config:
The first chunk is static, the two last, obviously, dynamic, they serve as fallback when you run vim from a switch that doesn't have ocp-indent while your original switch had it.
Besides, does merlin/vim rely on python ? If yes, no reason not to do so for ocp-indent so I'd rather use the better version of the ocp-indent/vim plugin.
The text was updated successfully, but these errors were encountered: