bind `<C-[>` will effect `<ESC>` in visual mode
NEX-S opened this issue · comments
move = {
enable = true,
goto_next_start = {
["<C-]>"] = "@function.outer"
},
goto_previous_start = {
["<C-[>"] = "@function.outer"
},
},
bind <C-[>
will cause <ESC>
can not work in visual mode, I guess is because treesitter-obj move-map is default remap = true
?
the normal mode should also be affected too 😞
This is because Ctrl+[ is equivalent key to ESC. This is a vim's default behaviour, so don't map this key.
This is because Ctrl+[ is equivalent key to ESC. This is a vim's default behaviour, so don't map this key.
so this means that in vim binding <C-[>
is not possible in any situation?
Depends on your terminal. Neovim can distinguish them if the terminal sends different key codes (not all terminals do).
Got it. appreciate your reply, sir!