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

[help] Vim-plug canot be loaded #1192

Open
3 of 11 tasks
Henrai opened this issue Jul 23, 2022 · 6 comments
Open
3 of 11 tasks

[help] Vim-plug canot be loaded #1192

Henrai opened this issue Jul 23, 2022 · 6 comments

Comments

@Henrai
Copy link

Henrai commented Jul 23, 2022

I get this when set up the vim plugin :

line   15:
E117: Unknown function: plugin#begin
line   16:
E492: Not an editor command: Plug 'vim-airline/vim-airline'
line   17:
E117: Unknown function: plugin#end
Press ENTER or type command to continue

And the result for :scriptname is this:

  1: /usr/share/vim/vimrc
  2: ~/.vimrc
  3: /usr/share/vim/vim82/filetype.vim
  4: /usr/share/vim/vim82/ftplugin.vim
  5: /usr/share/vim/vim82/indent.vim
  6: /usr/share/vim/vim82/syntax/syntax.vim
  7: /usr/share/vim/vim82/syntax/synload.vim
  8: /usr/share/vim/vim82/syntax/syncolor.vim
  9: /usr/share/vim/vim82/plugin/getscriptPlugin.vim
 10: /usr/share/vim/vim82/plugin/gzip.vim
 11: /usr/share/vim/vim82/plugin/logiPat.vim
 12: /usr/share/vim/vim82/plugin/manpager.vim
 13: /usr/share/vim/vim82/plugin/matchparen.vim
 14: /usr/share/vim/vim82/plugin/netrwPlugin.vim
 15: /usr/share/vim/vim82/plugin/rrhelper.vim
 16: /usr/share/vim/vim82/plugin/spellfile.vim
 17: /usr/share/vim/vim82/plugin/tarPlugin.vim
 18: /usr/share/vim/vim82/plugin/tohtml.vim
 19: /usr/share/vim/vim82/plugin/vimballPlugin.vim
 20: /usr/share/vim/vim82/plugin/zipPlugin.vim

It seems that the vim-plugin is not loaded at all. I apply chmod 777 to both .vim and .vim/autoload folder. Do we have any suggestions to manually load the plugin?

Thanks!

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 12 2022 04:26:50)
  • Type:
    • Bug
    • Enhancement
    • Feature Request
    • Question
  • OS:
    • All/Other
    • Linux
    • OS X
    • Windows
  • Vim:
    • Terminal Vim
    • GVim
    • Neovim
@Stephan-MC
Copy link

had the same problem but later found the solution. check this out

@junegunn
Copy link
Owner

Did you follow this instruction to install vim-plug?

@Stephan-MC
Copy link

Did you follow this instruction to install vim-plug?

Yes. But it has a little bug with vim 8+ and I found a possible solution

@junegunn
Copy link
Owner

it has a little bug

There is no bug. If you put plug.vim file in the right autoload directory, Vim will automatically load it when you run plug#begin, and that's the whole point of autoload. No manual sourcing is required.

@Stephan-MC
Copy link

Stephan-MC commented Oct 11, 2022 via email

@azak-azkaran
Copy link

I needed to set
set runtimepath+=~/.vim
in my vimrc before plug#begin because the autoload folder was not loaded

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

4 participants