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 / register #3542

Closed
sobjornstad opened this issue Mar 1, 2019 · 2 comments · Fixed by #3728
Closed

Support the / register #3542

sobjornstad opened this issue Mar 1, 2019 · 2 comments · Fixed by #3728

Comments

@sobjornstad
Copy link

Describe the solution you'd like

In standard Vim, the most recently searched-for string is stored in the / register. This makes it easy to paste it into a regex or reverse the direction of your search (e.g., if searching forwards and you really want to search backwards, you can just use ?<C-r>/).

Describe alternatives you've considered

The only current solution I've found is to retype the search expression, as you cannot even copy out of the status bar entry in VSCodeVim.

Additional context
Add any other context or screenshots about the feature request here.

@jpoon
Copy link
Member

jpoon commented Mar 11, 2019

https://github.com/VSCodeVim/Vim/blob/master/src/register/register.ts if anybody wants to take a gander at adding this.

@J-Fields
Copy link
Member

I plan on tackling #3604, #3605, and #3606 (all problems with registers). I can do this in the same PR.

jpoon pushed a commit that referenced this issue May 6, 2019
* Implement / (search) register

Fixes #3542

* Implement read-only registers

Fixes #3604

* Implement % (file name) register

Refs #3605

* Implement : (command) register

Fixes #3605

* Do not display _ (black hole) register in :reg output

Fixes #3606

* :reg can take multiple arguments

When it does, it lists only the registers given as an argument.
Fixes #3610

* Allow the : (command) register to be used as a macro to repeat the command

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

Successfully merging a pull request may close this issue.

3 participants