Skip to content

Repeating last seek with ; and , #7

jeffes opened this Issue Jan 28, 2013 · 6 comments

5 participants

jeffes commented Jan 28, 2013

Good extension. A sort of 'why didn't I think of that!' idea...I like it.

I'd REALLY like to see this: Repeating the last seek with ;


Glad you like it! Yes repeating is also a major priority for my own use, I'll try to get something working within the week. Thanks for the feedback.

@goldfeld goldfeld was assigned Jan 31, 2013

+1 for this

thanks for the great idea

goldfeld commented Jun 4, 2013

I've looked high and low for a solution for this that would just work, but came up empty. Would simply allowing people to rebind their keys to SeekRepeatLast be an acceptable solution? For instance you could nnoremap ; <silent> :SeekRepeatLast<CR> and nnoremap <silent> , :SeekBackRepeatLast<CR>.

To also make it still work with f/F/t/T I would also provide a SeekFindWrap command, so you would remap keys f/F/t/T like so nnoremap <silent> f :SeekFindWrap f<CR>, and so the result is that your find keys would work as normal, and your ; and , (or whatever you use for repeating) would also work as normal (repeating finds), with seeks also entering the fray, so ; and , would repeat whichever was the last command among seeks and finds.

freeo commented Jul 28, 2013

If you supply the vimrc lines for the default ; and , keys then it will be fine I guess!

jeffes commented Aug 5, 2013

Yeah I concur with eyetracker. That should work if the usage is transparent to the end user and you provide examples of what to do, or better yet just do it in the plugin and document it :)


@jeffes @eyetracker @Aaron2Ti vim-sneak supports repeat-motion via ; and , out-of-the-box, and you can change the mappings easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.