An alternative is to reduce the width of the screen so that the vector elements are listed one below the other, with their indexes. Then, you simply make the width larger again.
options(width = 5) print(x) options(width = 150)