Siddhartha Kasivajhula wrote:
> Esteemed Vim Monks, > I often find myself reaching for the following feature but I don't think > it's there, so I am bringing it up for consideration. > > We can (f)ind a character or move un(t)il a character, but we can't move > "after" a character. > > The feature is analogous to f F t and T, and should be linked to , (repeat > find backwards) and ; (repeat find forwards). > > *Example (cursor indicated with |):* > > |string-append > > Say we'd like to change "append" to "concatenate". The options are: > > w string|-append > W string-append| > f- string|-append > t- strin|g-append > > But what we really want to do is to move *after* the hyphen, that is: > > ?? string-|append > > Of course, in this particular case there are other options that would work > -- since there are no 'a's in the first word, we could do fa. But that > doesn't solve the general problem, for instance, it might be: > > |data-append > > ... and then we're out of luck. > > Another possibility is Eb for this particular case. But that still falls > short of a general solution, for instance this wouldn't work for: > > |data-append-together > > Regarding what key to use for this, maybe a modifier key would be > reasonable -- e.g. C-f doesn't seem to be bound to anything that I know of. > But at least, providing the functionality so that it is integrated with , > and ; could mean that users could map it to a convenient keybinding that > works for them. > > WDYT? If you think this is reasonable, I could create a GitHub issue or > proceed in the recommended way. Or if it already exists, then please show > me the way. You can move after the hyphen with "f-l". Adding a new command such as "gx-" doesn't help, since it's the same number of keys to type. We've run out of single-letter commands. So the only way is to make a mapping for yourself to replace one of the commands that exists, but you don't use. -- hundred-and-one symptoms of being an internet addict: 2. You kiss your girlfriend's home page. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/202004231525.03NFPlDr024120%40masaka.moolenaar.net.
