I'm trying to bind <C-S-S>
(Control + Shift + S) to send the selected test to a system command, and to then replace the selected text with the output of the system call.
This is what I have tried:
vnoremap <C-S-S> :'<,'>!echo 'Output of system call'<CR>
However, it only seems to work in gvim (and with an annoying confirmation message from the vim console, making the user press Enter to get rid of it). In addition, even if this would work, it doesn't actually send the selected text as an input to echo
.
How to fix this so that it works in terminal vim as desired?