vim-visual-multi
vim-visual-multi copied to clipboard
trying to unmap <CR>
Thank you for this amazing plugin, it has been my go-to for multi cursors in neovim.
I've been having an issue lately when using carriage return <CR> / Enter / Return. It gets in the way sometimes especially when going through diagnostics lists.
I remapped a few functions and worked great but I read through the docs and couldn't find the default mapping for <CR>.
The only mention of using <CR> is let g:VM_maps["Toggle Single Region"] = '\\<CR>'.
Setting let g:VM_maps["Toggle Single Region"] = "" for vim or vim.g.VM_Maps["Toggle Single Region"] = "" for neovim didn't work because it's prefixed with the local leader.
This is my plugin configuration in neovim.
return {
{
"mg979/vim-visual-multi",
enabled = true,
lazy = false,
init = function()
vim.g.VM_maps = {
["Find Under"] = "<C-m>",
["Find Subword Under"] = "<C-m>",
}
end,
},
}