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

Pressing <s> causes some unexpected behaviour, instead of substituting #517

Closed
SamJoan opened this issue Dec 23, 2013 · 5 comments
Closed

Comments

@SamJoan
Copy link

SamJoan commented Dec 23, 2013

Hi there!

I've downloaded the latest version of spf13, and I've run into something weird.

When I press s for substituting, instead of substituting the character directly below the character, a ">" prompt appears, as in the screenshot featured here

http://imgur.com/Qq92PgN

I am unsure what the functionality is, but it certainly doesn't replace anything. I think that it might be searching for two-character strings.

Please let me know if you are having problems reproducing, or if this is a feature and I am misunderstanding.

Thanks!
Pedro

@BenBergman
Copy link
Contributor

I just noticed this too. I think this is the result of the vim-sneak plugin. I find the hijacking of a standard vim command for a very unrelated action quite annoying. I think this should either be remapped to not clobber existing functionality or preferably be removed entirely. I haven't spent much time with vim-sneak, but I don't really see how it offers much of an improvement over /ab<enter>. I don't mind the extra keystroke as it allows me the flexibility to use a search other than two letters.

@SamJoan
Copy link
Author

SamJoan commented Dec 25, 2013

I can confirm that adding

UnBundle 'justinmk/vim-sneak'

and then :BundleClean solves the problem! In the meantime I found that another workaround is pressing v-c, which substitutes the current character, too.

@BenBergman, thanks for the find. May I ask how you found out which plugin was using the map?

@andru255
Copy link

thanks @BenBergman and @droope, i have the same issue, but for that plugin what the advantage in the update for spf? should be a removed if is unnecesary for the improve the skills for the editor

@spf13
Copy link
Owner

spf13 commented Jan 7, 2014

We should remove vim-sneak if it's causing issues. Or better remap that functionality to a non-conflicting letter.

The advantage is that it can be used in motions with /ab can't.

Often fA isn't enough and you really want fAB.

Anyone care to make a PR?

@JoveYu
Copy link
Contributor

JoveYu commented Feb 20, 2014

yeah before remap sneap conflicting letter, you should remove it!

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

5 participants