Issue with Setting Leader Key and Ex Command in Vim on MacBook Air M1 E480: No match: g E480: No match: keymap
Daviddlh1 opened this issue · 3 comments
Hi,
I'm trying to follow a video tutorial, but I encounter an error when I attempt to set a new leader key and a new Ex command:
The error message I receive is:
According to some Reddit posts, this issue occurs when using a version prior to 0.7. However, when I run :version in Vim, it indicates that I'm using version 0.11, so I believe I shouldn't be experiencing this issue:
Does anyone know what could be causing this issue?
I'm using a MacBook Air M1 so I'm not sure if the Apple silicons have this error for some reason (which I strongly doubt but who knows)
Does anyone know what might be causing this issue? For reference, I'm using a MacBook Air M1. I doubt it's related to the Apple silicon, but I'm open to any suggestions.
Thank you!
You must pass a reference to the function vim.cmd.Ex
instead of call it vim.cmd.Ex()
Hi @ewaddd,
Thanks for your answer. I tried your solution, but the error is still the same.
I have never used Lua before, but the error message makes me think that the Vim object itself might not be there. It says there is no match for "g," which I assume refers to "vim.g." It's like I'm trying to access a property of a null object. However, I'm not really sure about that.
Hi everyone,
I finally solved the issue. It turns out that I was trying to configure Vim with Lua instead of Neovim. In the tutorial video, Prime constantly using the command vim rather than nvim (jajajaj maybe he has an alias or my dyslexia confused me), so I was trying to configure it in vim. However, once I started using the :so command in nvim, all the configurations began to work properly.
Thank you for your suggestions and help!