相关疑难解决方法(0)

为什么"历史| vim"不起作用?

我想使用Vim来查看history(不在shell中)的结果.我认为history | vim会工作(使用结果history作为输入vim),但它返回:

$history | vim
Vim: Warning: Input is not from a terminal
Vim: Error reading input, exiting...

Vim: Finished.
Run Code Online (Sandbox Code Playgroud)

任何人都能解释一下吗?

linux vim bash

9
推荐指数
1
解决办法
1311
查看次数

标签 统计

bash ×1

linux ×1

vim ×1