# \#vim

**URL:** https://discuss.ocaml.org/tag/vim/243.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [Using ocaml-lsp-server with opam switches in neovim](https://discuss.ocaml.org/t/using-ocaml-lsp-server-with-opam-switches-in-neovim/14428)

<div class="topic-metadata">

**Author:** [@andunie](https://discuss.ocaml.org/u/andunie)\
**Replies:** 10\
**Last updated:** [October 25, 2024, 2:43pm UTC](https://discuss.ocaml.org/t/using-ocaml-lsp-server-with-opam-switches-in-neovim/14428 "2024-10-25T14:43:07Z")

</div>

I was using a single global opam switch for multiple Ocaml projects and things were going well – but then suddenly when I installed some package a bunch of other packages were removed. So I decided to try creating a dif…

---

## [\[ANN\] New release of Merlin](https://discuss.ocaml.org/t/ann-new-release-of-merlin/15358)

<div class="topic-metadata">

**Author:** [@vds](https://discuss.ocaml.org/u/vds)\
**Replies:** 3\
**Last updated:** [September 30, 2024, 1:33pm UTC](https://discuss.ocaml.org/t/ann-new-release-of-merlin/15358 "2024-09-30T13:33:19Z")

</div>

I am very pleased to announce a new release of Merlin for OCaml 5.2, 5.1 and 4.14. This release brings a handful of fixes but also a handful of of new commands: signature\_help and inlay\_hint have been upstreamed from o…

---

## [\[ANN\] Advanced Code Navigation coming to OCaml-LSP](https://discuss.ocaml.org/t/ann-advanced-code-navigation-coming-to-ocaml-lsp/15266)

<div class="topic-metadata">

**Author:** [@PizieDust](https://discuss.ocaml.org/u/PizieDust)\
**Replies:** 3\
**Last updated:** [September 10, 2024, 8:16am UTC](https://discuss.ocaml.org/t/ann-advanced-code-navigation-coming-to-ocaml-lsp/15266 "2024-09-10T08:16:55Z")

</div>

Jump to Target Currently, the standard LSP protocol only allows for generalized code navigation (goto definition, goto declaration, goto implementation, goto type-definition), which is not very useful when it comes to pr…

---

## [Make LSP in Neovim work nicely with PPX's?](https://discuss.ocaml.org/t/make-lsp-in-neovim-work-nicely-with-ppxs/15112)

<div class="topic-metadata">

**Author:** [@espioka](https://discuss.ocaml.org/u/espioka)\
**Replies:** 1\
**Last updated:** [August 8, 2024, 9:10pm UTC](https://discuss.ocaml.org/t/make-lsp-in-neovim-work-nicely-with-ppxs/15112 "2024-08-08T21:10:10Z")

</div>

I have a basic neovim setup (very light on plugins), and I have ocamlformat and LSP for ocaml configured. The setup works pretty well, but when I started using a ppx (namely PGOcaml), I would get errors saying “something…

---

## [Vim unbound module error](https://discuss.ocaml.org/t/vim-unbound-module-error/11399)

<div class="topic-metadata">

**Author:** [@stevensonmt](https://discuss.ocaml.org/u/stevensonmt)\
**Replies:** 0\
**Last updated:** [February 11, 2023, 5:27pm UTC](https://discuss.ocaml.org/t/vim-unbound-module-error/11399 "2023-02-11T17:27:14Z")

</div>

I apologize for what I’m sure is a newb error but I can’t quite find an answer to this problem. I’m using vim 9.0 on Arch Linux with ocaml 5.0.0. I use ALE for linting and formatting with merlin set as the linter for ALE…

---

## [How to enable the editor action to switch between implementation and interface (ml/mli) files for neovim?](https://discuss.ocaml.org/t/how-to-enable-the-editor-action-to-switch-between-implementation-and-interface-ml-mli-files-for-neovim/10572)

<div class="topic-metadata">

**Author:** [@sshz](https://discuss.ocaml.org/u/sshz)\
**Replies:** 3\
**Last updated:** [October 27, 2022, 7:59pm UTC](https://discuss.ocaml.org/t/how-to-enable-the-editor-action-to-switch-between-implementation-and-interface-ml-mli-files-for-neovim/10572 "2022-10-27T19:59:46Z")

</div>

I have been using ocamllsp with neovim using neovim’s native LSP client. However, it lacks the functionality of switching between implementation and interface. The functionality is implemented in ocamllsp under the name o…

---

## [Running merlin from MacVim](https://discuss.ocaml.org/t/running-merlin-from-macvim/10256)

<div class="topic-metadata">

**Author:** [@lindig](https://discuss.ocaml.org/u/lindig)\
**Replies:** 4\
**Last updated:** [August 5, 2022, 4:55pm UTC](https://discuss.ocaml.org/t/running-merlin-from-macvim/10256 "2022-08-05T16:55:10Z")

</div>

I’m using MacVim on macOS and it has trouble executing merlin despite being set up as suggested. The same setup works on Linux where I’m using GVim. I suspect that MacVim, which is a macOS application bundle, does not pa…

---

## [Vim now highlights types, feedback welcome](https://discuss.ocaml.org/t/vim-now-highlights-types-feedback-welcome/10198)

<div class="topic-metadata">

**Author:** [@Maelan](https://discuss.ocaml.org/u/Maelan)\
**Replies:** 7\
**Last updated:** [July 23, 2022, 5:34am UTC](https://discuss.ocaml.org/t/vim-now-highlights-types-feedback-welcome/10198 "2022-07-23T05:34:01Z")

</div>

A patch just made its way to the community-maintained Vim files for OCaml (not propagated to the official Vim distribution, yet), that tries to highlight types. IMHO the patch is large and hacky so you may want to try it…

---

## [Using OCaml LSP and Vim with .mll and .mly files](https://discuss.ocaml.org/t/using-ocaml-lsp-and-vim-with-mll-and-mly-files/9733)

<div class="topic-metadata">

**Author:** [@JohnJ](https://discuss.ocaml.org/u/JohnJ)\
**Replies:** 3\
**Last updated:** [April 27, 2022, 5:18pm UTC](https://discuss.ocaml.org/t/using-ocaml-lsp-and-vim-with-mll-and-mly-files/9733 "2022-04-27T17:18:48Z")

</div>

I’m configuring my Vim for an OCaml project, and I’m having issues with .mll and .mly files. My setup uses ocaml-lsp-server with Vim’s coc plugin in addition to the vim-ocaml plugin. My OCaml project uses dune, ocamllex,…

---

## [Symbol type on hover?](https://discuss.ocaml.org/t/symbol-type-on-hover/9320)

<div class="topic-metadata">

**Author:** [@n4323](https://discuss.ocaml.org/u/n4323)\
**Replies:** 9\
**Last updated:** [February 18, 2022, 7:36pm UTC](https://discuss.ocaml.org/t/symbol-type-on-hover/9320 "2022-02-18T19:36:26Z")

</div>

Flipping the discussion from Symbol type via keyboard? around: Is there a good way to get the type on mouse hover in GUI Vim? Using plain Merlin / using some LSP plugin?

---

## [Jupyter -- a better UTop?](https://discuss.ocaml.org/t/jupyter-a-better-utop/2633)

<div class="topic-metadata">

**Author:** [@n4323](https://discuss.ocaml.org/u/n4323)\
**Replies:** 5\
**Last updated:** [January 12, 2022, 7:30am UTC](https://discuss.ocaml.org/t/jupyter-a-better-utop/2633 "2022-01-12T07:30:43Z")

</div>

I recently figured out how to get an alternative REPL which has some things that UTop doesn’t. It’s the Jupyter console, which runs in a terminal (and is less well-known than the Jupyter notebook). Here’s how to set it …

---

## [The recent evolution of utop, lambda-term, zed and underneath projects](https://discuss.ocaml.org/t/the-recent-evolution-of-utop-lambda-term-zed-and-underneath-projects/5687)

<div class="topic-metadata">

**Author:** [@kandu](https://discuss.ocaml.org/u/kandu)\
**Replies:** 0\
**Last updated:** [May 2, 2020, 1:20pm UTC](https://discuss.ocaml.org/t/the-recent-evolution-of-utop-lambda-term-zed-and-underneath-projects/5687 "2020-05-02T13:20:30Z")

</div>

Hi, dear OCaml guys! We’ve been keeping quiet for more than one year though utop, lambda-term, zed and some related projects were still evolving during the period of time. This is because of two reasons: The new featu…

---

## [\[ANN\] vim-ocaml - new home](https://discuss.ocaml.org/t/ann-vim-ocaml-new-home/4615)

<div class="topic-metadata">

**Author:** [@rgrinberg](https://discuss.ocaml.org/u/rgrinberg)\
**Replies:** 9\
**Last updated:** [November 21, 2019, 8:27am UTC](https://discuss.ocaml.org/t/ann-vim-ocaml-new-home/4615 "2019-11-21T08:27:58Z")

</div>

Dear Vim & Neovim users, I would like to announce that I’ve officially moved the vim-ocaml repository under the control of the OCaml organization on github. Please direct your bug reports and pull requests to this repos…

---

## [Using :make in Vim for OCaml](https://discuss.ocaml.org/t/using-make-in-vim-for-ocaml/2562)

<div class="topic-metadata">

**Author:** [@lindig](https://discuss.ocaml.org/u/lindig)\
**Replies:** 4\
**Last updated:** [September 16, 2018, 1:42pm UTC](https://discuss.ocaml.org/t/using-make-in-vim-for-ocaml/2562 "2018-09-16T13:42:22Z")

</div>

Vim’s OCaml mode supports compiling a project by calling :make and subsequently going trough errors using the quickfix list. My problem is: this only works when calling :make in the project’s top-level directory and when…

---

## [Vim: generate match statement with every constructor of a variant type](https://discuss.ocaml.org/t/vim-generate-match-statement-with-every-constructor-of-a-variant-type/2266)

<div class="topic-metadata">

**Author:** [@pretzels\_8](https://discuss.ocaml.org/u/pretzels_8)\
**Replies:** 3\
**Last updated:** [July 11, 2018, 12:27am UTC](https://discuss.ocaml.org/t/vim-generate-match-statement-with-every-constructor-of-a-variant-type/2266 "2018-07-11T00:27:24Z")

</div>

Hello, I’ve been often running into a pattern where I need to write out a match statement with every constructor of a variant type. It gets a bit annoying when there are a lot of constructors. I’m using vim with merlin,…
