vim-surround icon indicating copy to clipboard operation
vim-surround copied to clipboard

Overwrite visual-mode `S` operator

Open wstevick opened this issue 2 years ago • 0 comments

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?

wstevick avatar Sep 13 '23 01:09 wstevick