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

Chapter 33: @@ is not the unnamed register #97

Open
colwem opened this issue Apr 30, 2016 · 2 comments
Open

Chapter 33: @@ is not the unnamed register #97

colwem opened this issue Apr 30, 2016 · 2 comments

Comments

@colwem
Copy link

colwem commented Apr 30, 2016

The final line of the function echoes the variable @@. Remember that variables starting with an @ are registers. @@ is the "unnamed" register: the one that Vim places text into when you yank or delete without specify a particular register.

Pretty sure this isn't correct. The unnamed register is @". Not sure what you call @@ but it's like the "repeat last register" register.

@colwem
Copy link
Author

colwem commented Apr 30, 2016

Actually looking it up I guess @@ is also the unnamed register when used as an expression. That being said I think maybe an explanation of this is needed. Though I guess you might have explained this earlier but I just skimmed through some of the earlier chapters because I already knew almost all of it.

@colwem
Copy link
Author

colwem commented Apr 30, 2016

Also I made this mistake because I looked up :h @@ and :h :@@ and :h registers etc. and I couldn't find anything mentioning @@ being the unnamed register. It turns out it's in :h expr-register. Maybe put :h expr-register in the exercises section?

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

No branches or pull requests

1 participant