[vim/vim] Conflict with vim-plug (Issue #9580)

35 views
Skip to first unread message

xvim64

unread,
Jan 20, 2022, 7:29:50 PM1/20/22
to vim/vim, Subscribed

Steps to reproduce

run gvim.exe

Expected behaviour

Load vim-plug without conflict

Version of Vim

8.2.4167

Environment

Windows 10 64-bit 21H2

Logs and stack traces

Error detected while processing C:\home\.vimrc[2806]..C:\home\.vim\vim-plug\plug.vim:
line  709:
E129: Function name required
line  710:
E121: Undefined variable: a:0
line  711:
E133: :return not inside a function
Error detected while processing C:\home\.vimrc[2806]..C:\home\.vim\vim-plug\plug.vim[726]..C:\home\.vimrc[2806]..C:\home\.vim\vim-plug\plug.vim:
line  725:
E133: :return not inside a function


// .vimrc[2806]
2806: source ~/.vim/vim-plug/plug.vim
2807: call plug#begin('~/.vim/plugged')
2808:    Plug 'vim-airline/vim-airline'
2809:    Plug 'vim-airline/vim-airline-themes'
2810:    Plug 'neoclide/coc.nvim', {'branch': 'release'}
2811: call plug#end()


Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/9580@github.com>

lacygoill

unread,
Jan 20, 2022, 7:37:09 PM1/20/22
to vim/vim, Subscribed

This is a regression introduced in patch 8.2.4163. It will be fixed.

In the meantime, either downgrade your Vim to an older version, or apply this patch to your autoload/plug.vim script:

diff --git a/plug.vim b/plug.vim
index 8a195d3..91ba1a7 100644
--- a/plug.vim
+++ b/plug.vim
@@ -263,7 +263,7 @@ function! plug#begin(...)
 endfunction
 
 function! s:define_commands()
-  command! -nargs=+ -bar Plug call plug#(<args>)
+  command! -nargs=+ -bar Plug call plug#_(<args>)
   if !executable('git')
     return s:err('`git` executable not found. Most commands will not be available. To suppress this message, prepend `silent!` to `call plug#begin(...)`.')
   endif
@@ -706,7 +706,7 @@ function! s:lod_map(map, names, with_prefix, prefix)
   call feedkeys(substitute(a:map, '^<Plug>', "\<Plug>", '') . extra)
 endfunction
 
-function! plug#(repo, ...)
+function! plug#_(repo, ...)
   if a:0 > 1
     return s:err('Invalid number of arguments (1..2)')
   endif


Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/9580/1018051106@github.com>

Ni Va

unread,
Jan 21, 2022, 2:09:26 AM1/21/22
to vim_dev
Conflict confirmed with vimPlug,  [ Windows 10, build ming gvim 8.2 patch 4163

Capture.PNG

Bram Moolenaar

unread,
Jan 21, 2022, 5:41:21 AM1/21/22
to vim/vim, Subscribed

fixed with patch 8.2.4167. It also adds a test for using an empty name in legacy script.


Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/9580/1018388930@github.com>

Bram Moolenaar

unread,
Jan 21, 2022, 5:43:34 AM1/21/22
to vim/vim, Subscribed

Closed #9580.


Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/9580/issue_event/5931245322@github.com>

Ni Va

unread,
Jan 21, 2022, 6:02:26 AM1/21/22
to vim_dev
Thank you.

K.Takata

unread,
Jan 21, 2022, 9:58:38 AM1/21/22
to vim/vim, Subscribed

fixed with patch 8.2.4167.

Maybe a mistake of 8.2.4168?


Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/9580/1018585205@github.com>

lacygoill

unread,
Jan 21, 2022, 11:22:06 AM1/21/22
to vim/vim, Subscribed

Yes, indeed, the fix to restore autoload functions with no name was implemented in patch 8.2.4168.


Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/9580/1018658956@github.com>

Bram Moolenaar

unread,
Jan 21, 2022, 12:43:47 PM1/21/22
to vim/vim, Subscribed

Only off by 0.024 % :-)


Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/9580/1018726241@github.com>

Reply all
Reply to author
Forward
0 new messages