The definition I know of 'vanishing at infinity' for locally compact topological space is the following:
A function $f:X\to (Y,||\cdot||)$ on a locally compact space $X$ is said to vanish at infinity if for every $\epsilon>0$ the set $\{x\in X|\ ||f(x)||\geq\epsilon\}$ is compact.
However, I don't understand the necessity of the local compactness of $X$. To me it seems that if we skip that requirement, then on a non-locally-compact space, there will probably be only the null-function which vanishes at infinity, so the whole notion becomes a bit useless, but is still well-defined I think?
So can someone elaborate on why this is requirement is necessary?
Edit: I don't think it's true that only the null-function would vanish at infinity, but the function would have to be $0$ at non-locally-compact points.