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

numbered register 0 is not updated in Y #1214

Closed
wjzhou opened this issue Jan 5, 2017 · 4 comments · Fixed by #1217 or #3087
Closed

numbered register 0 is not updated in Y #1214

wjzhou opened this issue Jan 5, 2017 · 4 comments · Fixed by #1217 or #3087
Labels

Comments

@wjzhou
Copy link

wjzhou commented Jan 5, 2017

What did you do?

yank a line with
Y instead of yy

What did you expect to happen?

The numbered register "0 is updated.

What happened instead?

The "0 is not updated.
Note: The "0 works for yy though.

Technical details:

  • VSCode Version: 1.8.1
  • VsCodeVim Version: 0.4.10
  • OS: Win-7 x64
@johnfn johnfn added the kind/bug label Jan 8, 2017
Platzer pushed a commit to Platzer/Vim that referenced this issue Jan 9, 2017
@Platzer Platzer mentioned this issue Jan 9, 2017
johnfn pushed a commit that referenced this issue Jan 10, 2017
@jdwuarin
Copy link

jdwuarin commented Jan 31, 2018

Hi - This is still not working for me btw:

Exact same problem.

Technical Details:

  • VSCode Version 1.19.3
  • VSCodeVim Version 0.10.13
  • OS: OSX High Sierra (10.13.2)

@jpoon
Copy link
Member

jpoon commented Jan 31, 2018

Works for me.

Please ensure you have the appropriate settings for:
https://github.com/VSCodeVim/Vim#vimoverridecopy
https://github.com/VSCodeVim/Vim#vimusesystemclipboard

You can use the :reg command to see whats in your registers.

@jdwuarin
Copy link

jdwuarin commented Feb 6, 2018

Right. So I identified what the issue is for me. It doesn't work if I am yanking from visual mode. All the others work. Essentially, If I want to yank, say, a block by doing: "V%y", my "0 reg won't be updated. However, if I do something like "yw" or "y$" or whatever, that works.

Basically, the issue is that yanking from visual mode does not update the "0 registry

@jpoon jpoon reopened this Feb 6, 2018
@jkillian
Copy link
Contributor

Also seems like it doesn't update with a command like 2yy. Perhaps multiline yanks aren't updating the register?

Either way though, I assume you'd be accepting PRs for this fix? If it's not too complex and nobody else has gotten to it, I'm willing to give it a go at fixing!

jkillian added a commit to jkillian/Vim that referenced this issue Oct 2, 2018
jkillian added a commit to jkillian/Vim that referenced this issue Oct 2, 2018
xconverge added a commit that referenced this issue Oct 6, 2018
Multiline yank writes to 0 register; fixes #1214
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants