I was trying to make a mapping to run a command that takes a count, something like the following:
nnoremap gb :execute('buffer ' . v:count)<CR>
When I run the mapping, I see the following error:
E481, No range allowed
After checking this post, I find it is because vim will insert a range automatically if we press a number before pressing colon :
to enter command line.
Is there documentation on this behavior? Can I disable it by default?