Search code examples
vimvim-pluginsurround

How to change 'S' to 's' in tpope/vim-surround - VIM


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


Solution

  • 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".