On Saturday, June 10, 2017 at 6:45:55 AM UTC-7, Tony Mechelynck wrote:
> On Sat, Jun 10, 2017 at 3:19 PM, vim-dev ML <[email protected]> wrote:
> > I am happy with the current function of f and t.
> > But I would like to know how to re-map t (or another char) such that it
> > would it would essentially do f(char)l. How to do f wait for (char) then do
> > l?
> 
> I think an <expr> mapping using the getchar() function would do the trick.
> 
> See
> 
>         :help :map-<expr>
>         :help getchar()
> 
> "The actual implementation is left as an exercise to the student."
> 
> Best regards,
> Tony.

Thank you Tony for the :help

This works for the first instance, but ; only repeats the f part as per 
documentation.  Is there a way to repeat this version of t?

nnoremap <expr> t "f" . nr2char(getchar()) . "l"

Why are posts repeated by "vim-dev ML"?
I have not made a "Reply" is a looong time, something has changed.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui