[Vim-l] Template:Help - Alternatives

John Beckett johnb.beckett at gmail.com
Wed Jun 27 10:34:17 UTC 2007


Sebastian Menge wrote:
> the urlencoding works great as it is.

My version of the CGI script (help-dev-jb.txt) includes some
points that you should consider:

It urldecodes the tag.

It does not use a dictionary (since the dictionary is only used
once, it is just an unnecessary overhead).

It is not case sensitive (but fix the script by replacing
"lower" with "lower()").

You need something like sys.exit() under the line:
  if not os.path.exists(tagsfile):

Under "except KeyError", your script has:
  print 'Location: '+ ...
  This line should be omitted.

As per my other post, it is not clear if case sensitivity is
good. Being case sensitive requires considerable human effort,
while being case insensitive means our help link will be wrong
for a few cases.

John



More information about the Vim-l mailing list