There are features of IDEs that I so take for granted, I wonder if it's fair to assume the same exists for text editors?

e.g. Can vim highlight that you're using a class that you haven't imported, in Python?