import numpy as np import matplotlib.pyplot as plt x = np.array([-1, 0, 1]) y = np.abs(x) plt.plot(x, y) plt.show()
Is there a way to highlight all the occurrences of
I wrote a plugin for this: impsort.vim
It originally was only for sorting imports. Since the imports were being parsed, I threw in highlighting as well.
Not only does it highlight imported modules, it highlights imported classes and functions (if it can figure out their types).