You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've the following keybinding so I can jump between start / close tags easily, as Shift + % seems to only work for parentheses. I don't know if I did some magic to get Shift + % jump tag in normal Vim, or if it's a core feature, but I can't live without it anymore.
This works as expected, but it prevents me from typing a capital M at least when I'm trying to search with /. I can change the condition to be vim.mode == 'Normal' and the search works again, but that stops this keybind from working in visual mode.
How should I define the condition in this case? vim.mode == 'Normal' || vim.mode === 'Visual' || vim.mode == 'Visual line' || vim.mode == 'Visual block' looks and feels horribly verbose.
The text was updated successfully, but these errors were encountered:
I've the following keybinding so I can jump between start / close tags easily, as Shift + % seems to only work for parentheses. I don't know if I did some magic to get Shift + % jump tag in normal Vim, or if it's a core feature, but I can't live without it anymore.
This works as expected, but it prevents me from typing a capital M at least when I'm trying to search with
/
. I can change the condition to bevim.mode == 'Normal'
and the search works again, but that stops this keybind from working in visual mode.How should I define the condition in this case?
vim.mode == 'Normal' || vim.mode === 'Visual' || vim.mode == 'Visual line' || vim.mode == 'Visual block'
looks and feels horribly verbose.The text was updated successfully, but these errors were encountered: