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
:set ruler. (Works only in vim) ReferenceIt shows the current line and column of the line being edited (line where the cursor lies), at the bottom right corner of the widow.
1,1
Top.Bot.AllTo make it permanent, add set ruler in ~/.vimrc file (if file is not there, create one).
:set number. (Works in both vi and vim) ReferenceDisplays the line number before every line.