How do I move the cursor to a specific row and column?

Viewed 56170

:30 will move my cursor to the beginning of line 30.

How can I tell Vim to place the cursor at line y, column x? Is this possible without using the arrow keys or h, j, k, l keys?

I am running Vim version 7.3.429.

4 Answers

Another option using execute <line_num>. For example,

function GotoLine(line)
     execute a:line
endfunction
Related