If you're on a Mac, the keyboard shortcuts may override the vim mappings
you have. In this case, it turns out that this post helped :
https://apple.stackexchange.com/a/423974
There was a keyboard shortcut for switching input sources and once that was
disabled, then the vim mapping worked as expected.

Thanks,
Ven

On Fri, Jan 3, 2025 at 8:54 AM Ven Tadipatri <[email protected]> wrote:

> Yes, the nnoremap worked perfectly! It looks to be an issue with
> Ctrl+space for some reason.
> Thank you so much Igbanam for your help - I was struggling with this for
> several months and was ready to give up on getting the vim mapping right.
>
> Thanks,
> Ven
>
> On Thu, Jan 2, 2025 at 4:24 PM Igbanam Ogbuluijah <[email protected]>
> wrote:
>
>> Could you try this mapping
>>
>> *nnoremap <leader><space> :SWSqlExecuteCurrent<CR>*
>>
>> I don't know how the leader key would work with <C-space> (which I read
>> as <ctrl><space>).
>>
>>
>> *Igbanam*
>>
>>
>> On Thu, Jan 2, 2025 at 5:47 PM Ven Tadipatri <[email protected]>
>> wrote:
>>
>>> Hi,
>>>   I have the Vim Sql Workbench plugin, and I'm trying to get the
>>> keyboard shortcut working. When I type ":nmap", I see that this mapping is
>>> there:
>>> n  \<C-Space>   @:SWSqlExecuteCurrent<CR>
>>>
>>> However, when I type "backslash - ctrl - space" , the Terminal just
>>> flashes and does nothing. I've tried using a different leader key, and the
>>> same thing happens, so it doesn't seem to be a Mac Terminal setting.
>>>   This is on a mac, with vim 9.1 . On my old mac, this keymapping was
>>> working. It still works if I type ":SWSqlExecuteCurrent", it's just the
>>> keyboard shortcut that I'm struggling with.
>>>   Would appreciate any help!
>>>
>>> Thanks,
>>> Ven
>>>
>>> --
>>> --
>>> You received this message from the "vim_use" maillist.
>>> Do not top-post! Type your reply below the text you are replying to.
>>> For more information, visit http://www.vim.org/maillist.php
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "vim_use" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion visit
>>> https://groups.google.com/d/msgid/vim_use/CAEodY67Vww8pR%2B6K24T33YcKgsBXw97byZPYWa9YXrb4Z-3jVg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/vim_use/CAEodY67Vww8pR%2B6K24T33YcKgsBXw97byZPYWa9YXrb4Z-3jVg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> --
>> You received this message from the "vim_use" maillist.
>> Do not top-post! Type your reply below the text you are replying to.
>> For more information, visit http://www.vim.org/maillist.php
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "vim_use" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion visit
>> https://groups.google.com/d/msgid/vim_use/CAOmRJrcZZB_kgtTSDz%3DAXUsmTp%3D0paqMv4hi%3D_6CK%3DtYaei2Mw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/vim_use/CAOmRJrcZZB_kgtTSDz%3DAXUsmTp%3D0paqMv4hi%3D_6CK%3DtYaei2Mw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_use/CAEodY64FLr-7ggr0DTtzu38zLm7U6OGkjwfcf7WH9xzUr7PNAA%40mail.gmail.com.

Reply via email to