vim-visual-multi icon indicating copy to clipboard operation
vim-visual-multi copied to clipboard

trying to unmap <CR>

Open nooneknowspeter opened this issue 8 months ago • 0 comments

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,
	},
}

nooneknowspeter avatar Apr 20 '25 03:04 nooneknowspeter