junegunn / junegunn/vim-peekaboo

Ctrl-R Insert Mode places register one char before last

Open
#86 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
1.2k
Forks
42
PR merge metrics
No merged PRs in 30d

Description

If I am in insert mode and have so far typed

"text"

I then type a to paste the contents of the a register ("AREG"), I get the a register pasted before the final t instead of after it

"texAREGt" instead of "textAREG"

This only occurs when I am at the last character of the line, not when in the middle. For example, if I am in the middle of following line, and enter Insert mode and type "texta", the put text is the correct position.

"This line of textAREG is here"

If I disable peekaboo, the issue is corrected.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in insert mode with peekaboo enabled by typing text followed by Ctrl-R a at the end of a line, then compare with peekaboo disabled. Inspect the plugin's insert-mode handling and verify that the register contents are inserted after the final character without changing behavior in the middle of a line.

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.