tomtom / tcomment_vim

An extensible & universal comment vim-plugin that also handles embedded filetypes

Home Page:http://www.vim.org/scripts/script.php?script_id=1173

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

map TComment_gcc get `E354: Invalid register name: '$'`

ruinb0w opened this issue · comments

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: '$'

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