vim

Go to n-th symbol in line


How to move cursor to the n-th symbol from the left in Vim?

One of the solutions I see is press 0n<right-arrow>, it will move to the n+1 position. Is there any more natural way to do it?


Solution

  • The pipe '|' character may be what you want:

    To go to 25th column in a line in normal mode press 25|

    To go to 37th column in a line in normal mode press 37|

    and so on. . .