2

When we are in visual mode we have to press 'S' to surround the selected text.

How can I change 'S' to 's' in tpope/vim-surround plugin

whitesiroi
  • 2,725
  • 4
  • 30
  • 64

2 Answers2

3

You can find out what exactly is mapped to S by issuing :map S and then bind this command to to whatever you like. To map it to s add a following line to your .vimrc

xmap s <Plug>VSurround
And R
  • 487
  • 1
  • 14
  • 17
0

Look here: https://github.com/tpope/vim-surround/blob/master/plugin/surround.vim

So at a glance it looks like all the mapping are made separately, depending on the use case.

You can override those in your .vimrc. Just beware that s is a default vim mapping for "substitute char".

guessimtoolate
  • 8,372
  • 2
  • 18
  • 26