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
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.Sign up to join this community
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).