-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Let vim-plug manage itself #69
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I personally don't like this much: the A comment on your example though:
|
@vheon put it very nicely. One of the primary motivations behind vim-plug is the ease of setup. I deliberately designed it to be in a single file so that it can be easily downloaded and put into I've noticed the pattern that the users of pathogen and vim-plug include the plugin manger file in their dotfiles repo (like @vheon does), which reduces a step in setting up their environment. And I encourage this practice. In fact the decision to not put plug.vim file inside autoload directory was made partly to discourage the "Vundle way" of managing it.
And lastly as @vheon mentioned, you probably won't need to upgrade vim-plug until you notice something's broken, especially at this point where I don't expect to introduce substantial changes to vim-plug itself. I hope this comment helps you understand the ideas behind the decisions that have made vim-plug the way it looks now. I'm closing this issue. Thanks for the suggestion! |
@vheon Oh right, I missed I understood what you said and I agreed. I'll just put But I still think it'll be good if |
Okay, well in my case I have plug.vim downloaded by the installer script. There are some tricky issues in relocating the file.
|
Oh, I understand. Relocating |
vim-plug has been commited to source, as encouraged by the developer (junegunn/vim-plug#69). This also greatly simplifies the install script. A global gitignore has been made, so that the dotfiles gitignore can be cleaned to project-specific entries.
This reverts commit b4040d6. From the creator: junegunn/vim-plug#69
Given that recent versions of vim-plug ship a help file that needs to be installed with call plug#begin()
Plug 'junegunn/vim-plug'
...
call plug#end() I wonder if it would be safe to do call plug#begin()
Plug 'junegunn/vim-plug', {'do': ':PlugUpgrade'}
...
call plug#end() so vim-plug will update itself whenever it notices new commits in the git repo, when I run Or is that sort of thing (replacing the code that is currently running in multiple threads in parallel to update various things) a Bad Idea? |
You can't use BTW, I can't find |
You can, if ~/.vim/autoload/plug.vim is a file and not a symlink.
It's documented in https://github.com/junegunn/vim-plug/wiki/tips#vim-help |
I used Vundle.vim and liked the way of they manages itself. I wondered if vim-plug is possible too, so I cloned vim-plug into
~/.vim/plugged/vim-plug
and tested with my .vimrc:Note that
plug.vim
is in root directory of vim-plug, so I moved it tovim-plug/autoload/plug.vim
and it works flawlessly.When this is done,
PlugUpdate
doesPlugUpgrade
too so it can be removed. But I think it can make some compatibility issue for pre-installed users.The text was updated successfully, but these errors were encountered: