-
Notifications
You must be signed in to change notification settings - Fork 103
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
Comments
ruinb0w
changed the title
map TComment_gcc get E354: Invalid register name: '$'
map TComment_gcc get May 9, 2023
E354: Invalid register name: '$'
Which version of vim do you use? I still use vim 8.2.
<Plug>TComment_gcc should be something like
nnoremap <Plug>TComment_gcc :<c-u>call tcomment#ResetOption() \| if
v:count > 0 \| call tcomment#SetOption("count", v:count) \| endif \| let
w:tcommentPos = getpos(".") \| set opfunc=TCommentOpFunc_gcc<cr>g@$
Does this work when defined manually? (You might want to check if the
TCommentOpFunc_gcc function exists since I'm not 100% sure.)
|
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.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I maped tcomment like below
The second line works great, but the first one throws the error
E354: Invalid register name: '$'
The text was updated successfully, but these errors were encountered: