jek*_*aby 3 linux vim terminal
有时我less file会grep寻找一些字符串。
但有时我会错误地vim写成less:
vim file | grep
Run Code Online (Sandbox Code Playgroud)
然后终端将被“阻止”。像这样:
$ vim ~/Documents/http.txt  | grep -A2 facebook
Vim: Warning: Output is not to a terminal
Run Code Online (Sandbox Code Playgroud)
Ctrl + c不中断命令。控制台变得无法使用。我只能关闭Console。我在 guake 终端和标准 xubuntu 终端中尝试了相同的操作。
之后在哪里可以恢复当前控制台vim | grep?