The problem is that I want to silent a command that accepts a range as input, and this does not work because the range is passed to
:silent instead of to the command itself.
To open the urls in the current file or selection, I use the following mapping in my
noremap <leader>u :w !urlview<cr>
:w !urlview pipes the current file or selection to
urlview standard input.
Now, trying to avoid the
hit-enter prompt, I added:
noremap <leader>u :silent w !urlview<cr>
that, when invoked with a selection, rightfully responds with:
E481: No range allowed
Any clues on how to circumvent this issue?