In this answer I faced the
CTRL-U used in function call after
: and before the actual function name.
:nnoremap <buffer> <cr> :<C-U>call append('.', repeat([''],v:count1))<cr>
Here is what help says:
CTRL-U Scroll window Upwards in the buffer. The number of lines comes from the scroll option (default: half a screen). If [count] given, first set the 'scroll' option to [count].
I tried it myself and it worked as I supposed. But I didn't quite understand the part about the
scroll option. What do they mean
And besides it does some strange thing in insert mode. As far as I understood it deletes everything from the cursor to the beginning of the line and then joins the resulting line and the line above.