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

Insert macro with { don't work #847

Open
yannick818 opened this issue Feb 14, 2022 · 2 comments
Open

Insert macro with { don't work #847

yannick818 opened this issue Feb 14, 2022 · 2 comments

Comments

@yannick818
Copy link

yannick818 commented Feb 14, 2022

I would like to write a macro with inserting { in it.
Example record macro to a:
qa i { ESC q

If I run this macro I got the following output:
<A-C-{>

Is there something wrong with any key settings?

@albertdev
Copy link
Member

albertdev commented Feb 14, 2022

Hello,

Is it possible that you are using a non-US keyboard layout where you need to press AltGr + some other key to type a curly bracket?
The reason I'm asking is that AltGr gets detected as Ctrl+Alt by Eclipse, and it seems Vrapper doesn't know to discard these extra modifiers when a succesful keypress happened. I'm not sure if this can get a permanent fix without breaking other stuff...

As a workaround you could paste a macro into a file and edit, then yank it again. After all, macros are just a bunch of Vrapper instractions held in a register.

Alternatively, if you have simple macros then you could also define them on the commandline:

let @a=i { <ESC>

(The <ESC> is literally typed like that, and after you typed all that you should obviously press Enter to execute the command)

@yannick818
Copy link
Author

You're absolutely right. I'm using a non-US keyboard with AltGr.
I think Eclipse detects this quite right, since: AltGr is the same like Ctrl + Alt. In combination with 7, they both print {
With both variants I get the same output.

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

2 participants