I installed neovim on MacOS Big Sur via homebrew. Then created the init.vim using vim-bootstrap (the languages I picked were C, Go, Haskell, Ocaml, and Rust) and put it on ~/.config/nvim/init.vim.

Then I opened a C code file and neovim automatically pulled some C-related plugins. Overall seemed OK.

When opening another code files, nvim complained about "command not found" on init.vim. After some inspection, I guess because Haskell and Ocaml compilers hadn't been installed. So I wiped the entire nvim config directory, and created a new init.vim (without Haskell and Ocaml).

I ran nvim, then saw this errors. How to fix these?

enter image description here

  • 1
    Just remove everything inside init.vim.
    – jdhao
    Commented Nov 25, 2021 at 7:04
  • 2
    you have references to the vim-plug plugin inside your vimrc, but you haven't installed it. So either remove those Plug sections, or install vim-plug pluginmanager Commented Nov 25, 2021 at 10:48
  • Please don't post screenshots of your terminal - you can copy the text and edit your question to paste the text.
    – guntbert
    Commented Nov 26, 2021 at 23:08

1 Answer 1


Maybe you accidental removed the location of there vim should store plugins in your init.vim

Try replacing your line

call plug#begin


call plug#begin('~/.vim/plugged')

  • 2
    Welcome to vi.se! The messages Not an editor command related to plug#begin and Plug show that OP hasn't installed the plugin manager vim-plug (they need to download the file and install it as described in vim-plug's README) here your solution will still generate the same errors because without reinstalling vim-plug they will keep trying to call plug#begin which doesn't exists.
    – statox
    Commented Feb 25, 2022 at 9:21

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.