Skip to content

S command in visual line or cs'" in normal mode don't work - help setup #270

Answered by kylechui
victorheid asked this question in Q&A
Discussion options

You must be logged in to vote

The main thing to notice is that the commands are valid for their respective modes. S is not normally mapped in visual mode, and the keybind for change surround is cs, not just c. Since s is not a valid motion, people do not normally type cs and expect it to do anything; hence we use that for "change surround" instead. All else aside, I encourage you to try the plugin out (or vim-surround) and see how the plugin keymaps work for yourself!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by kylechui
Comment options

You must be logged in to vote
1 reply
@kylechui
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants