Unable to install Nvim-R.vmb

554 views
Skip to first unread message

fivem...@gmail.com

unread,
Aug 4, 2016, 9:08:18 PM8/4/16
to Vim-R-plugin
Hi,

I just installed neovim, and tried to install Nvim-R.vmb using :so % as in the instructions on github.

I get this error "line 2: ... Not an editor command: UseVimball"

I'm unfamiliar with neovim, but I think this error has something to do with the latest changes to neovim? (After some searching http://stackoverflow.com/questions/10399186/trying-to-install-a-vimball-having-vimballplugin-installed)

I looked at the neovim repository and noticed there's been some shuffling of Vimball related items:

https://github.com/neovim/neovim/blob/master/runtime/pack/dist/opt/vimball/plugin/vimballPlugin.vim

Is there a quick fix, or another way to install Nvim-R besides the :so % approach? I am not familiar with neovim package managers.

Thanks in advance for any advice.

Jakson Alves de Aquino

unread,
Aug 5, 2016, 8:28:11 PM8/5/16
to Vim-R-plugin
I tested on Linux and Windows, and the problem only happens on Windows.

I cannot fix the issue because Windows is not officially supported by Neovim yet. The workaround is to use Vim to install the vimball:

:UseVimball ~\AppData\Local\nvim

fivem...@gmail.com

unread,
Aug 8, 2016, 11:53:16 AM8/8/16
to Vim-R-plugin
I should have mentioned, that I am running neovim on linux (ubuntu 14.04) and I used sudo apt-get install neovim to get the latest version of neovim.

I am not using windows.

The problem seems to be that UseVimball isn't recognised on my neovim version (the latest version) at least. 

I've found this issue to occur on two different linux machines I am running now.

An earlier version of neovim did recognise UseVimball and installed nvim-R no problems with :so %.  But as soon as I upgraded to the latest neovim version, I can no longer install Nvim-R :so %.

Have you used the latest version of neovim to install Nvim-R with UseVimball?   I still think the problem may lie with Neovim not recognising the UseVimball function call anymore... without some sort of adjustment (but my understanding of nvim/vim is very limited).

Jakson Alves de Aquino

unread,
Aug 8, 2016, 1:40:20 PM8/8/16
to Vim-R-plugin
I tested now with the development version of Neovim, and the command ":so %" installed the vimball at ~/local/share/nvim/site

Jakson Alves de Aquino

unread,
Aug 8, 2016, 1:41:03 PM8/8/16
to Vim-R-plugin
The correct path was ~/.local/share/nvim/site

fivem...@gmail.com

unread,
Aug 8, 2016, 4:17:39 PM8/8/16
to Vim-R-plugin
I came up with a solution.  As this took a non-trivial amount of time to resolve, ill post here how I fixed this problem, in case anyone else deals with it when trying to install nvim under more recent versions of neovim.

The problem was that vimballPlugin.vim was not loading when neovim started up.   (It was not in the list given by :scriptnames)

Neovim now appears to keep the related vimballPlugin.vim files in nvim/runtime/pack/dist/opt/vimball  (you need to source 2 files from within this folder)

So I found where neovim installed, and manually sourced the necessary files for the vimballPlugin from within vim

These steps let me install nvim-R

nvim Nvim-R.vmb
:so /usr/share/nvim/runtime/pack/dist/opt/vimball/autoload/vimball.vim
:so /usr/share/nvim/runtime/pack/dist/opt/vimball/plugin/vimballPlugin.vim
:so %

Now Nvim-R appears to have installed just fine now.  Although unless I physically copy those two vim files from /usr/share/nvim/runtime/pack/dist/opt/vimball/ into the /usr/share/nvim/runtime/plugin folder, it looks like I will have to keep manually sourcing them each time I want to install a vimball with neovim.


Jakson Alves de Aquino

unread,
Aug 8, 2016, 4:33:59 PM8/8/16
to Vim-R-plugin
I deleted the directory /usr/local/share/nvim and reinstalled neovim, and now I can see the issue.
The command
:packadd vimball
should do the trick, but it seems that it is not working well.

Jakson Alves de Aquino

unread,
Aug 8, 2016, 9:33:54 PM8/8/16
to Vim-R-plugin
The packadd bug is fixed now: https://github.com/neovim/neovim/issues/5193

bona...@gmail.com

unread,
Jun 21, 2017, 5:27:56 AM6/21/17
to Nvim-R
I still needs to run :packadd vimball
NVIM v0.2.1-dev
linux built from code
with
vim 8.0.596 local build from code
Reply all
Reply to author
Forward
0 new messages