E31 Error happens for some reason
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 59/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- vim
- Domain
- tooling
Research direction
The report points to plug.vim around line 948 and includes a proposed change to the mapping cleanup. Read that section and check how PlugClean handles buffer mappings when a mapping is absent. Confirm the behavior with a minimal Vim setup that reproduces E31; done means PlugClean completes without E31 while retaining its mapping cleanup behavior.
Written by the indexing model from the issue text.
Description
Description
When running PlugClean I was getting these errors:
"[Plugins]" [Not edited] --No lines in buffer--
Error detected while processing VimEnter Autocommands for ""..function 7_clean[1]..7_prepare:
line 31:
E31: No such mapping
Error detected while processing VimEnter Autocommands for ""..function 7_clean[1]..7_prepare:
line 31:
E31: No such mapping
Error detected while processing VimEnter Autocommands for ""..function 7_clean[1]..7_prepare:
line 31:
E31: No such mapping
Error detected while processing VimEnter Autocommands for ""..function 7_clean[1]..7_prepare:
line 31:
E31: No such mapping
Error detected while processing VimEnter Autocommands for ""..function 7_clean[1]..7_prepare:
line 31:
E31: No such mapping
Error detected while processing VimEnter Autocommands for ""..function 7_clean[1]..7_prepare:
line 31:
E31: No such mapping
However, I can resolved the issue and request the application of this code change in plug.vim:
948c948,950
< execute 'silent! unmap <buffer>' k
---
> if !empty(maparg(k, '', 0, 1))
> execute 'silent! unmap <buffer> ' . k
> endif
This will resolve the issue absent the need to disband the intended functionality!
Plug block
:version
Type
- Bug
- Enhancement
- Feature Request
- Question
OS
- All/Other
- Linux
- macOS
- Windows
Vim
- Terminal Vim
- GVim
- Neovim
- Dominant language
- Vim Script
- Stars
- 35.8k
- Forks
- 1.9k
- Avg merge
- 13h 43m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from junegunn/vim-plug
-
New option `plug_disable_credential_helper` not mentioned in README.mdPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 74/100
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
windows
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
All issues in junegunn/vim-plug
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
bug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
LangerSword/gitone#7 ·
-
compatibility difficulty:easy prio:low
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
NatronGitHub/openfx-misc#384 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Pantheon-Security/medusa#24 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100