Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no indication in docs or error messages that Git not installed is causing error "PlugInstall is not an editor command" #1292

Open
6 tasks
ManBearPigg opened this issue Jul 30, 2024 · 1 comment

Comments

@ManBearPigg
Copy link

Explain the problem here ...

Error: PlugInstall is not an editor command is the error you get when Git is not installed. Not an intuitive error message wrt the problem. Every time I download this program I forget my container doesn't have git installed and I lose half an hour because I forget how I fixed it last time. I think this is a pretty common problem judging by my own experience and the list of issues. Could also put it in the docs at the top of the installation section. Put yourself in the user's shoes, you just copy the install link at the top, copy your dotfiles, and go. Even if we look at the vimrc, the plugin list doesn't explicitly say the word git anywhere.




  • Type:
    • Bug
    • [ x ] Enhancement
    • Feature Request
    • Question
  • OS:
    • [ x ] All/Other
    • Linux
    • macOS
    • Windows
  • Vim:
    • [ x ] Terminal Vim
    • [ x ] GVim
    • [ x ] Neovim
@junegunn
Copy link
Owner

image

vim-plug prints the above message on startup if git is not found on the $PATH.

vim-plug/plug.vim

Lines 235 to 237 in d80f495

if !executable('git')
return s:err('`git` executable not found. Most commands will not be available. To suppress this message, prepend `silent!` to `call plug#begin(...)`.')
endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants