You are not logged in.
Pages: 1
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
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
Thanks, that is a good solution.
Offline
Symlinks.
Offline
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
It is a very nice setup to use vim and neovim using symlinks. That will be helpful.
Thanks,
Miguel
Offline
Pages: 1