Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
161 views
in Technique[技术] by (71.8m points)

Unable to download plugins for vim on windows10

I am trying to download plugins for vim on my windows 10 and I having an issue where vim is not recognizing the functions "call plug#begin()" and "call plug#end()"

my _vimrc file is in the following directory: C:Usersomarh

I searched this issue and it seems like the reason is the location of the file "plug.vim"

I downloaded this file into: C:UsersomarhVimvim82autoload

I even copied the file into another directory: C:UsersomarhVimautoload

However the program still doesn't recognize these functions or some commands, such as, "PlugInstall"

question from:https://stackoverflow.com/questions/65892226/unable-to-download-plugins-for-vim-on-windows10

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

All your Vim configuration is supposed to happen in a vimfiles directory located at the root of your $HOME:

C:Usersomarhvimfiles

That plug.vim file you downloaded should be here:

C:Usersomarhvimfilesautoloadplug.vim

And it is recommended to also move your _vimrc there (note the name change: _vimrc becomes vimrc, without the leading underscore):

C:Usersomarhvimfilesvimrc

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...