Thursday, August 25, 2016

Re: managing dotfiles and plugins on remote server

On Thursday, August 25, 2016 at 10:59:02 AM UTC-4, Christian Brabandt wrote:
> Hi Luis!
>
> On Do, 25 Aug 2016, Luis Henriquez-Perez wrote:
>
> > I'm setting up my dotfiles on github (https://github.com/Luis-Henriquez-Perez/dotfiles.git) so that i can clone them on any unix-based remote server with internet. http://blog.smalleycreative.com/tutorials/using-git-and-github-to-manage-your-dotfiles/
> >
> > I use vim-plug. When I cloned my files on a server I and started vim, vim-plug was not working. I would get error messages saying "Plug" is not a vim command. I thought maybe I'd need to use this command that's on the vim-plug github page:
> >
> > curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
> > https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
> >
> > but "curl" doesn't work on the remote server. Does anyone have an idea of how to get the plugins set up on a remote server?
>
> If curl isn't available, wget should also do it. It won't however create
> the directories.
> Also since you already cloned vim-plug, you should be able to simply
> copy the file to ~/.vim/autoload/plugin.vim manually.
>
>
> Best,
> Christian
> --
> Menschen, die immer daran denken, was andere von ihnen halten, wären
> sehr überrascht, wenn sie wüßten, wie wenig die anderen über sie
> nachdenken.
> -- Bertrand A. W. Russell
Hi!

I cloned the vim.plug file into ~/.vim/autoload/plugin.vim but I still keep getting things like:

line 24:
E492: Not an editor command: Plug 'tpope/vim-fugitive' " git manager
line 25:
E492: Not an editor command: Plug 'sirver/ultisnips' " snippet manager
line 26:
E492: Not an editor command: Plug 'sheerun/vim-polyglot' " language package

I though this meant I just need to run :PlugInstall in vim, but when I do that vim says:

E492: Not an editor command: PlugInstall.

This all happens when I'm cloning my dotfiles into a remote server. However when I try cloning on my local computer everything works fine.

Why isn't vim-plug being read by vim in the remote server?

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: