Bedit rewrite as lua interpretter