[Vimperator] abbreviation (patch) [+RFC: text substitution]
Doug Kearns
dougkearns at gmail.com
Tue Nov 6 03:00:03 PST 2007
On 11/5/07, Martin Stubenschrott <stubenschrott at gmx.net> wrote:
> On Sun, Nov 04, 2007 at 10:08:49PM +1100, Doug Kearns wrote:
<snip>
> > :echo "#" works fine. There's no need to escape it, only a bare # is
> > expanded.
>
> Not totally right, only :echo expand("#") is expanded.
Right, I was just trying to point out that it wasn't a problem in the echo
string arg as you seemed to be suggesting.
FWIW, I can't actually recall ever needing to escape any of these special ex
chars. Whether that's just a quirk of my usage patterns or not I'm not sure.
<snip>
> > > > > To grep the current textContent of the website:
> > > > > :!grep foo #{text}
> > > >
> > > > :!grep foo <text>
>
> Again you probably mean :!grep foo <<text>
No, I was only offering <text> as an alternative to your suggested #{text}
above since it's similar to the other special chars.
> But we could also use "modifiers", like %:t which results in a local filename
> with just text contents, %:l as a tmp file which is a copy of the html
> page, or % as the full http:// url.
That was something that crossed my mind too though it's not a perfect match.
> > > < is bad, since we want to have input redirection at some time.
> >
> > Again I don't see that as a problem but I'm not really convinced by
> > <text> either. I think it would be better implemented as filtering
> > with !
>
> Elaborate on that please.
On second thoughts (possibly first) I doesn't really think it makes all that
much sense either. :)
I'll have to think about it...
<snip>
Doug
More information about the Vimperator
mailing list