Closed Stephan-MC closed 2 years ago
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()
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