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

Options to disable flit.nvim when recording macros? #28

Open
GreenSleeper opened this issue Mar 13, 2023 · 1 comment
Open

Options to disable flit.nvim when recording macros? #28

GreenSleeper opened this issue Mar 13, 2023 · 1 comment

Comments

@GreenSleeper
Copy link

flit.nvim enchances the f t command by labeling mutiple matches to jump to. But when I'm recording a macro, if I use f or t command in the macro, sometimes it will mess up the macro behavior and jump to somewhere i didn't intend to. For example, I records a macro of f,h, meaning find next , and move one character left, then i apply this macro to multiple lines. But if these is a label h existing after f, the h will jump to it, making the macro totally unpredictable.

@ggandor
Copy link
Owner

ggandor commented Apr 22, 2023

I guess you can add autocommands to unmap f/t on RecordingEnter and re-init flit on RecordingLeave. (Or simply set multiline = false.) But that only solves the recording part. See also ggandor/lightspeed.nvim#14.

A less than perfect solution is to include turning flit on/off in the recording itself :)

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