On Wed, Oct 26, 2022 at 9:48 PM Rellot <[email protected]> wrote:
>
>
> Hello, I was setting up vim plug when this error occured:
>
> Error detected while processing .vimrc:
> line 5:
> E117: Unknown function: plug#begin
> line 7:
> E492: Not an editor command: Plug 'neoclide/coc.nvim'
> line 9:
> E117: Unknown function: plug#end
>
> here's the .vimrc file
>
> syntax on
> filetype plugin indent on
> set ts=2 sts=2 sw=2 et ai si
> set rnu
> call plug#begin()
> Plug 'neoclide/coc.nvim'
> call plug#end()
This means Vim is trying to load the function plug#begin() then the
function plug#end() from the script <something>/autoload/plug.vim
where <something> is any one of the directories mentioned in
'runtimepath', and either not finding that script, or not finding
these functions within it. It also doesn't find the user-command Plug
so the former (script not found) seems more likely.
Try adding the following at the top of your vimrc, it should give you
a warning message for not finding files to be sourced:
if &verbose < 2
set verbose=2
endif
Later you can manually :set vbs-=1 if you want to stop displaying all
those messages.
See :help autoload
Best regards,
Tony.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_use/CAJkCKXs4bZK8iWNQUN%2BZ--rLPu7xNG4rse%3DE_W%3DNUb%2BHYgpeXA%40mail.gmail.com.