I would like to filter a visual selection in Vim through a command. The way I know filters always the complete lines over which the visual selection extends:
Selecting a test in the line
this is a test
and typing
:'<,'>!echo "the result"
will result in
the result
But I want:
this is the result
Consider the following mappings that adhere the behavior of the
!linewisefiltering commands (see
:helpg \*!\*and:help v_!).