Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the expression register #4383

Open
odi89 opened this issue Dec 14, 2019 · 3 comments
Open

Support the expression register #4383

odi89 opened this issue Dec 14, 2019 · 3 comments
Milestone

Comments

@odi89
Copy link

odi89 commented Dec 14, 2019

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

@J-Fields
Copy link
Member

This is called the "expression register"

@J-Fields J-Fields changed the title Adding Basic calculations using integers and float numbers like in Vim Support the expression register Apr 15, 2020
@J-Fields J-Fields added this to the Backlog milestone Jun 8, 2021
J-Fields added a commit that referenced this issue Oct 21, 2021
This removes a lot of code duplication, creates a better abstraction,
makes testing easier, and lays the groundwork for some features like:
- `:s` and similar commands working with `hlsearch` (#4934)
- The expression register (#4383)
- Better `incsearch` support (#4837)

The central change here is to take various pieces of global state which
were scattered and throughout the project and bring them together,
localizing them where possible to an object (`CommandLine`) held by
`VimState` (this naturally fixes #7038).

This applies to both ex commands and the search command line, which
means we finally have a uniform interface for them!
@richardchey
Copy link

richardchey commented Oct 31, 2022

Have you solved this problem. @J-Fields @odi89

@odi89
Copy link
Author

odi89 commented Nov 2, 2022

I think it works partially with neovim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants