# Setting up Vim autocompletion: issues with getting Neovim compatibility layer working

**URL:** https://discourse.julialang.org/t/setting-up-vim-autocompletion-issues-with-getting-neovim-compatibility-layer-working/17690
**Category:** New to Julia
**Tags:** editors
**Created:** [November 18, 2018, 7:48pm UTC](https://discourse.julialang.org/t/setting-up-vim-autocompletion-issues-with-getting-neovim-compatibility-layer-working/17690 "2018-11-18T19:48:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![fusion809](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fusion809/32/6080_2.png) [@fusion809](https://discourse.julialang.org/u/fusion809)
#### Post date: [November 18, 2018, 7:48pm UTC](https://discourse.julialang.org/t/setting-up-vim-autocompletion-issues-with-getting-neovim-compatibility-layer-working/17690/1 "2018-11-18T19:48:15Z")

</div>

I’ve spent the past hour trying to get Vim to offer autocompletions for Julia code. Here is my vimrc so far: [.vimrc · GitHub](https://gist.github.com/99dda545f045e3dc4a1b8e6e5fa200d9). I’ve tried following [Vim and Neovim · julia-vscode/LanguageServer.jl Wiki · GitHub](https://github.com/JuliaEditorSupport/LanguageServer.jl/wiki/Vim-and-Neovim), although it quickly became apparent it was really only written for Neovim, as on Vim the editor complained that `neovim_rpc` command was not found. So, to remedy that I added the `roxma/vim-hug-neovim-rpc` plugin, again with Plug and after tinkering with its Python settings I manage to get `:python3 import neovim` to finally run successfully, but now when I start Vim I briefly see this error:

 ![Screenshot_20181119_051947](https://global.discourse-cdn.com/julialang/original/3X/6/1/61689e6f34293c94f9704ce984c4ff7896d73905.png)

(which, in case you cannot see it, is:

```plaintext
Error detected while processing function neovim_rpc#_on_stderr[4]..<SNR>109_on_core_channel_error:
line	1:
Traceback (most recent call last):^@ File "/home/fusion809/.vim/plugged/nvim-completion-manager/pythonx/cm_start.py, line 10, in <module>^@	from cm import getLogger, start_and_run_channel^@ File "/data/.vim/plugged/nvim-completion-manager/pythonx/cm.py, line151^@	self.nvim.call('cm#complete', name, ctx, startcol, matches, refresh, async=True)^@

```

). I’ve searched the issues of the nvim-completion-manager and vim-huge-neovim-rpc repos for a match and found none and I’m wondering whether this is my own set up that is at fault (my OS is Arch Linux, if relevant) or whether this is a bug and where, if this is a bug, I should report it. I also know that now nvim-completion-manager is now deprecated and I’m just getting more and more confused. I decided to alter my vimrc to [.vimrc · GitHub](https://gist.github.com/8b7300f0474736168c510b689a873ea0) and with it things seemed a little better, as now I receive no errors and I see:

 ![Screenshot_20181119_054228](https://global.discourse-cdn.com/julialang/original/3X/5/3/53135218ab9f4b85b0270280704c071636426d24.png)

It does not offer and completion suggestions after I type the `.` after `Pkg` (with suggestions I was expecting being `add`, `clone`, `rm`, _etc._) and I must admit I’m not sure what I’m meant to do with the completion I’m given, like how I’m meant to tell Vim to use the selected completion.

---

<div class="post-metadata">

### Author: ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)
#### Post date: [November 18, 2018, 9:57pm UTC](https://discourse.julialang.org/t/setting-up-vim-autocompletion-issues-with-getting-neovim-compatibility-layer-working/17690/2 "2018-11-18T21:57:48Z")

</div>

Hi there, `vim` user here as well (not neovim). I opened up an issue a while back related to this

[https://github.com/JuliaEditorSupport/LanguageServer.jl/issues/265](https://github.com/JuliaEditorSupport/LanguageServer.jl/issues/265)

This is what I have in my `.vimrc` for this using `supertab` completion manager,

> <https://github.com/chakravala/dotfiles/blob/19d4548ba777c3bb0883f56e8132f1412da49494/.vimrc#L36-L52>

However, I currently have it commented out and didn’t experiment with it much.
