You are not logged in.

#1 2015-11-16 03:01:35

migueldvb
Member
Registered: 2013-12-05
Posts: 13
Website

vim-plug plugin manager for neovim

I have installed the neovim package and vim-plug from the AUR. When I add the vim-plug configuration lines in
init.nvim

call plug#begin()
...
call plug#end()

it seems that vim-plug is not found by neovim under the standard /usr/share/vim/vimfiles/ directory, how could I make vim-plug
work with neovim?

Last edited by migueldvb (2015-11-16 03:03:22)

Offline

#2 2015-11-16 11:26:52

parchd
Member
Registered: 2014-03-08
Posts: 421

Re: vim-plug plugin manager for neovim

I don't know the answer to your problem, but just install vim-plug manually to resolve. There seems to be little benefit in installing from the AUR, since vim-plug can check and update it's own version.

Offline

#3 2015-11-16 14:02:44

migueldvb
Member
Registered: 2013-12-05
Posts: 13
Website

Re: vim-plug plugin manager for neovim

Thanks, that is a good solution.

Offline

#4 2015-11-16 17:16:57

Awebb
Member
Registered: 2010-05-06
Posts: 6,298

Re: vim-plug plugin manager for neovim

Symlinks.

Offline

#5 2015-11-18 20:07:26

joejoejoe
Banned
Registered: 2015-08-14
Posts: 32

Re: vim-plug plugin manager for neovim

Yep, just clone it locally (for example, put clone it to ~/.config/nvim/bundle) then source that path in your init.vim file (~/.config/nvim/init.vim). This will cause Plug to be available when you start Neovim, and then you can add packages to your init.vim file, and run PlugInstall, etc.

You can see right here how I configured vim-plug in my vimrc: https://gist.github.com/trusktr/6956110 … rc-L46-L51

I still store everything in ~/.vim (not ~/.config/nvim), since that's what I was using before neovim (you can use whatever folder you want). I set that up here: https://gist.github.com/trusktr/6956110 … rc-L46-L51

And then I automatically clone vim-plug into ~/.vim/bundle/vim-plug if the git command is available: https://gist.github.com/trusktr/6956110 … rc-L28-L42

Lastly, I make (neo)vim store backup, swap, and undo files inside of ~/.vim/backup, ~/.vim/swap, and ~/.vim/undo, respectively: https://gist.github.com/trusktr/6956110 … -L510-L517

So, when I'm on a new machine, I don't have to install anything manually. All I have to do is download my vimrc (and link init.vim to it if neovim is available). Then, if git is available, my vimrc will clone vim-plug and get everything all working automatically.

My init.vim is symlinked to ~/.vimrc, which is symlinked to my local-clone of the above gist. I link to ~/.vimrc because I use a single config for both vim and neovim, so it just works with whichever program is available.

Last edited by joejoejoe (2015-11-18 20:09:45)

Offline

#6 2015-11-18 20:20:16

migueldvb
Member
Registered: 2013-12-05
Posts: 13
Website

Re: vim-plug plugin manager for neovim

It is a very nice setup to use vim and neovim using symlinks. That will be helpful.

Thanks,
Miguel

Offline

Board footer

Powered by FluxBB