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

Unkown function plug#begin #1206

Closed
4 of 11 tasks
Stephan-MC opened this issue Aug 25, 2022 · 1 comment
Closed
4 of 11 tasks

Unkown function plug#begin #1206

Stephan-MC opened this issue Aug 25, 2022 · 1 comment

Comments

@Stephan-MC
Copy link

Explain the problem here ...
I get the following error everytime i start vim from terminal or gvim. It also cause my plugins not to launch on vim start up

image


This is my vim version on Windows 10

image

  • Type:
    • Bug
    • Enhancement
    • Feature Request
    • Question
  • OS:
    • All/Other
    • Linux
    • OS X
    • Windows
  • Vim:
    • Terminal Vim
    • GVim
    • Neovim
@Stephan-MC
Copy link
Author

Stephan-MC commented Aug 25, 2022

after very very long research and tweaks, i came out with the definnite solution for this problem.

This problem is cause because the plug#begin is called before being in declared in our Plug.vim file. so i copied all my plugins decalration to the bottom of the file and instead sourced the plug.vim from my .vimrc and it worked for me

call plug#begin('~/vimfiles/plugged')
 Plug 'tpope/vim-vinegar'

 " Add a color cool side bar to view currently working files
 Plug 'preservim/nerdtree'

"Adds EditorConfig support to vim 
 Plug 'editorconfig/editorconfig-vim'

"Adds Ctrp functionality to vim 
 Plug 'ctrlpvim/ctrlp.vim'

 "Add one dark colorscheme to vim
 Plug 'joshdick/onedark.vim'

 "Add PaperColor colorscheme to vim
 Plug 'nlknguyen/papercolor-theme'

 "Vim one-dark colorscheme
 Plug 'vim-airline/vim-airline-themes'

 "Vim one-dark colorscheme
 Plug 'vim-airline/vim-airline'

 "Adds cool tabs to vim
 Plug 'webdevel/tabulous'

 "Adds cool tabs to vim
 Plug 'sheerun/vim-polyglot'

"   " Make sure you use single quotes
"
"   " Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
"   Plug 'junegunn/vim-easy-align'
"
"   " Any valid git URL is allowed
"   Plug 'https://github.com/junegunn/vim-github-dashboard.git'
"
"   " Multiple Plug commands can be written in a single line using | separators
"   Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
"
"   " On-demand loading
"   Plug 'scrooloose/nerdtree', { 'on':  'NERDTreeToggle' }
"   Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
"
"   " Using a non-default branch
"   Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' }
"
"   " Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
"   Plug 'fatih/vim-go', { 'tag': '*' }
"
"   " Plugin options
"   Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
"
"   " Plugin outside ~/.vim/plugged with post-update hook
"   Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
"
"   " Unmanaged plugin (manually installed and updated)
"   Plug '~/my-prototype-plugin'
"
"   " Initialize plugin system
 call plug#end()

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

1 participant