On Thu, Apr 23, 2020 at 05:25:47PM +0200, Bram Moolenaar wrote: > > 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. [...] > 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.
There is a more functionality than a mapping could provide: - Is there even a way to write a mapping that takes a following character and puts it in the map? nmap S<NextChar> f<NextChar>l ??? - F/f/T/t commands don't move at all if the character is not found. - F/f/T/t commands set what , and ; does but a mapping can't A new gx or whatever command would make it possible to map to something shorter with correct semantics. Meanwhile, I'm not sure this is a feature I'd necessarily use, but I like the concept. --Greg > -- > 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. > -- -- 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/20200423155229.GA24046%40anthropohedron.net.
