[Vimperator] Search command (s///) plugin
Daniel Bainton
dpb at driftaway.org
Mon Mar 3 07:28:25 PST 2008
On 03/03/2008, Martin Stubenschrott <stubenschrott at gmx.net> wrote:
> Sitaram Chamarty wrote:
> > [I'd rather see some more scriptability of sessions. For example,
> > whenever I go to an article from LinuxToday, I usually click the
> > "Complete Story" link anyway. Right now, I have that set as part of
> > my "nextpattern" and so I can do "]]" and go there. But it would be
> > cool to associate autocommands with specific URLs, that would
> > autmatically follow that link, or indeed "play back" any recorded
> > script! After all, we have record/playback, we have auto-commands, so
> > why not?]
>
>
> Well, that can already be achieved (untested):
> :autocommand PageLoad linuxtoday :norm /Complete Story<cr><cr>
Now it's tested. Works if you use the right command (:autocmd) ;)
And this works better, so it doesn't try to do the search on the front page:
:autocmd PageLoad linuxtoday.com/.*/ :norm /Complete Story<cr><cr>
--
Daniel
More information about the Vimperator
mailing list