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

map TComment_gcc get E354: Invalid register name: '$' #306

Open
ruinb0w opened this issue May 9, 2023 · 3 comments
Open

map TComment_gcc get E354: Invalid register name: '$' #306

ruinb0w opened this issue May 9, 2023 · 3 comments

Comments

@ruinb0w
Copy link

ruinb0w commented May 9, 2023

I maped tcomment like below

vim.keymap.set('n', "<leader>c", '<plug>TComment_gcc')
vim.keymap.set('v', "<leader>c", '<plug>TComment_gc')

The second line works great, but the first one throws the error E354: Invalid register name: '$'

@ruinb0w ruinb0w changed the title map TComment_gcc get E354: Invalid register name: '$' map TComment_gcc get E354: Invalid register name: '$' May 9, 2023
@tomtom
Copy link
Owner

tomtom commented May 9, 2023 via email

@ruinb0w
Copy link
Author

ruinb0w commented May 10, 2023

I tried your code, but still same as before E354: Invalid register name: '$'. My vim is nvim 0.9
by the way, I'm using vim.g.tcomment_opleader1 = '<leader>c'" instead, and it works great.

Screenshot 2023-05-10 at 09 19 54 Screenshot 2023-05-10 at 09 20 36

@tomtom
Copy link
Owner

tomtom commented May 10, 2023 via email

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