vim-surround
vim-surround copied to clipboard
Overwrite visual-mode `S` operator
I want to configure this so that operators work the same in visual and insert mode. I want visual s to surround normally, and visual S to surround and indent the selected text. I have
vim.keymap.set('x', 's', '<Plug>VSurround')
vim.keymap.set('x', 'S', '<Plug>VgSurround')
But it overwrites S to be '<Plug>VSurround', which isn't helpful. How do I override this?