import library automatically in python, perl, etc.
The following video shows that the once a class is used the module
where the class is defined will be automatically used. (Note, the
example is in AcitonScript, but the concept can be generalized in many
other languages that has some automatic mapping between the class name
and the module/header/library/package (depending on the terminology in
the given language) name). I'm wondering if this kind of features can
be automatically support in vim so that writing many programming in
many scripting languages can be easier.