Here is the tutorial I am trying to follow

Here is the init.vim file I have written.

enter image description here

I just don't understand why I am getting the error

Cannot find colorscheme 'dracula'

This error is occurring in the last line. Can someone please help me out? I am really stuck now.

I searched online a lot but couldn't find anything useful. I am working on WSL in windows 10. I don't have much knowledge about vim plugins. I have used vim only for basic c++ work earlier .

  • 1
    Did you do PlugInstall? (May be obvious but I gotta ask.)
    – B Layer
    Commented Dec 30, 2020 at 7:26
  • No, I didn't , since colorscheme was not recognised, I thought its useless to run it. Commented Dec 30, 2020 at 7:28
  • 1
    Er, that command actually downloads and installs the colorscheme.
    – B Layer
    Commented Dec 30, 2020 at 7:31
  • 1
    LOL. Don't worry about it! Not sure, though, whether I should actually post an answer for it. :)
    – B Layer
    Commented Dec 30, 2020 at 7:36
  • 2
    :). Okay. I guess I might as well. Surely, you're not the first person to not realize it.
    – B Layer
    Commented Dec 30, 2020 at 7:38

1 Answer 1


A brief word on how vim-plug works...

The main part of a plugin config is a path on GitHub. In your case dracula/vim refers to https://github.com/dracula/vim. What vim-plug needs to do, then, is download/install (using git) the plugin code from that address. But it doesn't happen automatically. It's up to you to run the command :PlugInstall. (And do so each time you add a new plugin(s).)

So once you've updated your vimrc just run :PlugInstall from an instance of Vim that sees the changed vimrc. You'll get some feedback on what happens from there.

Beyond installs there are a number of other commands related to maintaining plugins (:PlugUpdate, :PlugClean, etc.) that you'll need to keep in mind and run as needed. (The automatic part of vim-plug is primarily the management of runtime paths. The location of each configured plugin is added to that behind the scenes.)

  • 2
    Welcome to Vi&Vim SE, btw. :)
    – B Layer
    Commented Dec 30, 2020 at 7:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.