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.
The answer was given by @ZyX in a comment to another answer:
You have
<C-r>
in insert mode for this kind of things:
nnoremap <F1> i<C-r>=line('.')+1<CR><Esc>