vim-seek icon indicating copy to clipboard operation
vim-seek copied to clipboard

Repeating last seek with ; and ,

Open saltydressage opened this issue 12 years ago • 6 comments

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 ;

saltydressage avatar Jan 28 '13 06:01 saltydressage

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 avatar Jan 28 '13 09:01 goldfeld

+1 for this

thanks for the great idea

Aaron2Ti avatar Feb 20 '13 15:02 Aaron2Ti

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.

goldfeld avatar Jun 04 '13 23:06 goldfeld

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

freeo avatar Jul 28 '13 21:07 freeo

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

saltydressage avatar Aug 05 '13 01:08 saltydressage

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

justinmk avatar Nov 13 '13 19:11 justinmk