Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Repeating last seek with ; and , #7

Open
jeffes opened this Issue · 6 comments

5 participants

@jeffes

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 ;

@goldfeld
Owner

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
@Aaron2Ti

+1 for this

thanks for the great idea

@goldfeld
Owner

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

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

@jeffes

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 :)

@justinmk

@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.