jayli / jayli/vim-easycomplete

Outputting auto bracket function names when typing fast

Open
#191 2 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Vim Script
Stars
436
Forks
27
PR merge metrics
No merged PRs in 30d

Description

First off, this plugin is great, I wish I'd found this earlier! Anyway, I was using this alongside the [Auto-Pairs](https://github.com/jiangmiao/auto-pairs) plugin, and occasionally would get some strange output. After a while, I managed to work out how to reproduce this - if I type a letter, followed in quick succession by a space or backspace, I get the following output respectively:

`t=AutoPairsSpace()`
`t=AutoPairsDelete()`

It also added the equals sign. I hoped it was a problem with AutoPairs, so I switched to [lexima.vim](https://github.com/cohama/lexima.vim), but had the same issue:

`t=lexima#insmode#_map_impl('')`
`t=lexima#insmode#_map_impl('')`

I figure these are too similar not to be related. Have you any idea how I could prevent this from happening? Thanks, and thanks for this plugin too!

Edit: sorry, I forgot to mention I'm using Vim 8.2 in an msys2 terminal in Windows 10. I'm gonna boot up my Linux vm and see if it happens there too.

Edit 2 : Yeah, it's happening on my LInux boot too. Linux Mint 20.3, with vim 8.2

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue in Vim 8.2 with Auto-Pairs or lexima.vim, typing a letter followed quickly by Space or Backspace. Trace which completion or insert-mode mapping emits the function name and equals sign; done means those keystrokes insert only the expected space or deletion without plugin function text.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.