Open ruinb0w opened 1 year ago
Which version of vim do you use? I still use vim 8.2.
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.
I don't know nvim so I cannot really help you with that.
Do you really have to escape the pipe character when using the vim.keymap.set() function? I could imagine just the bar "|" with not backslash should work. The backslash is there as a work-around for vim's :map command.
I maped tcomment like below
The second line works great, but the first one throws the error
E354: Invalid register name: '$'