S command in visual line or cs'" in normal mode don't work - help setup #270
-
Some of the commands shown in the readme seem to conflict with default vim commands (s/S deletes char/line and put in insert mode) and c is delete... Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The main thing to notice is that the commands are valid for their respective modes. |
Beta Was this translation helpful? Give feedback.
-
I feel stupid now, the issue was my macOS keyboard language which makes
quotes “hang” and not be sent as normal keystrokes (for cs’”) and for
visual mode for some reason I was not typing capital S
Apologies and thanks
…On Wed 25 Oct 2023 at 18:13, Kyle Chui ***@***.***> wrote:
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!
—
Reply to this email directly, view it on GitHub
<#270 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACQAV67EH5MCL3TL2OOZM5LYBFCCXAVCNFSM6AAAAAA6PU6TIWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGOBTHA3TC>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
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 iscs
, not justc
. Sinces
is not a valid motion, people do not normally typecs
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 (orvim-surround
) and see how the plugin keymaps work for yourself!