goldfeld / vim-seek

Seek makes navigating long lines effortless, acting like f but taking two characters.
MIT License
467 stars 20 forks source link

Repeating last seek with ; and , #7

Open saltydressage opened 11 years ago

saltydressage commented 11 years ago

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 commented 11 years ago

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.

Aaron2Ti commented 11 years ago

+1 for this

thanks for the great idea

goldfeld commented 11 years ago

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 11 years ago

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

saltydressage commented 11 years ago

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 commented 10 years ago

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