|Posted by Laurent Tréguier|
in reply to lili
On Tuesday, 15 October 2019 at 11:41:47 UTC, lili wrote:
> Is there anybody use vim, can you shared your vim config.
You can use a Language Server plugin  with a D Language Server  to get D support in Vim.
If you haven't heard of the Language Server Protocol (LSP), in a nutshell: it's a specification implemented by some editors (or editor plugins), and external programs (the "servers"). Editors use the servers to do linting, formatting, completion, etc. Any editor (or LSP plugin) can be used with any server (in theory).
To get started, you can intall one of the Vim LSP plugins (maybe you already have one of the popular ones such as COC  or ALE ).
Then, install a D language server; there are 2 available: Serve-D  (maintained by WebFreak) and DLS  (that I maintain).
The Vim plugin you choose to use should have a README explaining how to connect them to a language server.
I've only tested DLS with LanguageClient-neovim , but using any other plugins and Serve-D instead of DLS should work just as well.