BEGIN { FS=" "; } NR == 1 { nf=split(FILENAME,f,".") print ""; print "" f[1] ""; print ""; print "

Vim Documentation: " f[1] "

"; print ""; print "
"; print "
";
}

{
	#
	# protect special chars
	#
	gsub(/&/,"\\&");
	gsub(/>/,"\\>");
	gsub(/"tags.ref"
	n=split($2,w,".");
	printf ("|%s|	%s\n",w[1],$1,$1,$2);
}

END     {
	topback();
	print "
\n\n\n\n"; } # # as main we keep index.txt (by default) # other candidate, help.txt # function topback () { printf("top - "); printf("back to help\n"); }