Getting the current row number?

pacv picture pacv · Feb 21, 2013 · Viewed 46k times · Source

Is there any key mapping that outputs the current row number of the line being edited? Or, even better yet, can we do formulas based on the output of the key mapping?

I want to get the row number and add 1 to the current text being edited.

Answer

Eric picture Eric · Feb 21, 2013

Ctrl+G will tell you the line number and even the column the cursor is in. If you mean output it as text to your document, then not that I know of.