Why doesn't “history | vim” work?

前端 未结 3 1298
说谎
说谎 2020-12-15 10:01

I want to use the Vim to see the result of history (not in the shell). I think history | vim will work (use the result of history as t

3条回答
  •  無奈伤痛
    2020-12-15 11:06

    This happend to me trying to send it to background console (&)

    One script used:

    ... 
    vi "$file" &
    ...
    # change to just:
    
    vi "$file"
    

    removing &, problem went away.

提交回复
热议问题