I am running the latest version of nvim on the latest version of arch.
I have this bash one liner which works as intended
echo; lpstat -p | sed 's/printer //g' | sed 's/is idle. enabled since.*//g'; echo"
I wish to assign the above command to a keyboard shortcut within nvim and run it within nvim so that it drops the result within the currently open nvim text file
Here is what I have in .vimrc
nnoremap <leader><leader>p :!echo; lpstat -p | sed 's/printer //g' | sed 's/is idle. enabled since.*//g'; echo
but it does not work
How do I wrap the bash command up so it is treated as a one liner then get it to drop the result into the open text file at the cursor?