3 NR ==
1 { nf=
split(FILENAME,f
,".")
5 print "<HEAD><TITLE>" f
[1] "</TITLE></HEAD>";
6 print "<BODY BGCOLOR=\"#ffffff\">";
7 print "<H1>Vim Documentation: " f
[1] "</H1>";
8 print "<A NAME=\"top\"></A>";
15 # protect special chars
24 tagkey
[t
]=tag
[1];tagref
[t
]=tag
[2];tagnum
[t
]=
NR;
25 print $
1 " " $
2 " line " NR >"tags.ref"
27 printf ("|<A HREF=\"%s.html#%s\">%s</A>| %s\n",w
[1],$
1,$
1,$
2);
32 print "</PRE>\n</BODY>\n\n\n</HTML>";
36 # as main we keep index.txt (by default)
37 # other candidate, help.txt
40 printf("<A HREF=\"#top\">top</A> - ");
41 printf("<A HREF=\"help.html\">back to help</A>\n");