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

F and T as operators should not include cursor start position #121

Closed
lydell opened this issue Aug 7, 2014 · 1 comment
Closed

F and T as operators should not include cursor start position #121

lydell opened this issue Aug 7, 2014 · 1 comment

Comments

@lydell
Copy link

lydell commented Aug 7, 2014

I’ve followed the instructions to replace the f, F, t and T commands with one-character sneaks.

Example:

a test

The cursor is on s.

  • dFt:
    • standard vim → a st
    • sneak → a t
  • dTt:
    • standard vim → a tst
    • sneak → a tt

The standard behavior is better, since:

  • I’m used to it.
  • It’s how dSte etc. work.
  • It’s consistent with db etc.
@justinmk
Copy link
Owner

justinmk commented Aug 7, 2014

@lydell This has bugged me too. The fix turned out to be trivial, and I believe Sneak_f and Sneak_t are now fully compliant with Vim's built-in f/t behavior--even if you modify them with v (see :help inclusive).

So the following now work correctly:

dvta
dvfa
dvFa
dvTa
dta
dfa
dTa
dFa

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