VIM: Send visual block to external command
问题 How do I send a visual block to an external command? I select my block using Ctrl-q and then press ! program_name but vim sends the entire lines rather than the selected text blocks. I'm using gvim in Windows 10. 回答1: Vim always send the whole line to external commands, but you can do that using the function of the answer of romainl in this question: Sending visual selection to external program without affecting the buffer Passing a non-linewise selection to an external program is done like