-
Notifications
You must be signed in to change notification settings - Fork 28
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,F,t,T do not work in macros #7
Comments
Thanks for the report! Yeah, I can reproduce such issues. I'm clueless at the moment, but will investigate this. |
This also applies to the |
|
This reinforces my suspicion that this is about the "instant-repeat" feature, maybe |
This might be related: justinmk/vim-sneak#264 |
@ggandor ☝🏼 issue is for sure related to that. |
For others, my work around is this, which seems to work fine: " divert lightspeed in macros because fFtT misbehave
nmap <expr> f reg_recording() .. reg_executing() == "" ? "<Plug>Lightspeed_f" : "f"
nmap <expr> F reg_recording() .. reg_executing() == "" ? "<Plug>Lightspeed_F" : "F"
nmap <expr> t reg_recording() .. reg_executing() == "" ? "<Plug>Lightspeed_t" : "t"
nmap <expr> T reg_recording() .. reg_executing() == "" ? "<Plug>Lightspeed_T" : "T" For what it's worth, I've previously had issues with Not sure if that's appropriate/doable here, nor whether the issue was because of incompatibilities around mixing feed keys and macros or if I was just misapplying feed keys (likely). |
@rktjmp Perfect workaround, many thanks! I didn't know about the It's a pity that we cannot do something similar for |
Eureka, it seems we have caught the problem, and there is a solution for this, the workaround is not even necessary! From
With the |
I have to think through how best to handle limiting the scope to the current line, we should probably open a new issue for that. (Edit: #14) |
Great find! Works as expected now. |
Love the plugin, but f,F,t,T do not work in macros anymore.
The text was updated successfully, but these errors were encountered: