VSCodeVim / VSCodeVim/Vim

Support the expression register

Open
#4,383 3 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Is your feature request related to a problem? Please describe.
In vim it is possible to to basic calculations using intergs and float numbers

Describe the solution you'd like
This is the command in normal Vim(insert mode)
CTRL-R followed by = then, for example, 2+2 and press Enter.

The result 4 will be inserted into the document.

Thank you for providing an awesome extension

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

No files, tests, or entry points are named. Start by locating the normal-mode Ctrl-R handling and existing register-related behavior, then trace how insert-mode commands receive input. Done means Ctrl-R followed by =, an expression such as 2+2, and Enter inserts the evaluated result, including the requested integer and float cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.