Load streamed data into vim quickfix buffer (bash)

1 points by dllthomas ↗ HN
Put this together today, others may find it useful (and/or inspirational):

    function cbuf() {
        exec 7<&0
        exec 0<&1

        vim -c 'cbuf!' /dev/fd/7
    }
Allows things like:

   git grep -n foo | cbuf

0 comments

[ 3.7 ms ] story [ 7.2 ms ] thread

No comments yet.