VSCodeVim / VSCodeVim/Vim

`y` key when combined with `f` or `t` doesn't copy correctly

Open
#7,688 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/question
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Expected behaviour:

I want to use the y and follow with the grammar f [target char] to copy from cursor to the target char.

I.e.

This sentence I don't want but I want to grab the whole parenthetical following: (this to be copied including the parentheses)

If you're starting at the first capital T in the foregoing sentence, you'd type f( to get to the parentheses, then in normal vim you'd type yf) to copy the whole parenthetical. This does nothing; and makes using the macro engine quite hard.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in VSCodeVim with the sequence f( followed by yf), comparing it with normal Vim behavior. Trace the normal-mode handling for y combined with f or t; done means the parenthetical text, including both parentheses, is copied and the sequence works in macro playback.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.