Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mini.surround prevents standard vim s (Substitute) from working. #1328

Open
sbc100 opened this issue Jan 24, 2025 · 2 comments
Open

mini.surround prevents standard vim s (Substitute) from working. #1328

sbc100 opened this issue Jan 24, 2025 · 2 comments

Comments

@sbc100
Copy link

sbc100 commented Jan 24, 2025

First of all, thanks for all the great work here. This project made my conversion to neovim (after 25+ years or vim usage) very smooth and educational.

After using kickstart to get started with neovim it was pretty surprising to me that find this basic editing command no longer working. I'm not sure if this should be considered a bug in the default bindings of nvim-surround (that repo doesn't seem to have bug reports enabled anyway)? Maybe the users of that plugin all either don't care about this vim feature, or override the default mappings?

Regardless, it does seem a little odd to install a plugin the breaks some fairly core vim behaviour as part of kickstart. Perhaps that one line of init.lua could be removed or commented out: require('mini.surround').setup()?

Again, thank you. This was really the only wrinkle/surprise I had to deal with.

@Capta1nCool
Copy link

Capta1nCool commented Jan 26, 2025

Hey @sbc100!
The s binding seems to work fine for me, have you modified your init.lua?

@sbc100
Copy link
Author

sbc100 commented Jan 26, 2025

Wait, so if you you want to replace the character under the cursor with foo you can type sfoo<Esc>?

For me that doesn't work unless I comment out require('mini.surround').setup(). Which makes sense because mini.surround binds sf to Find Surrounding. Unless I'm missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants