当我在nvim中编码时,我发现自己经常希望打开我的公司使用的作业监视命令行工具。基本上,我想将一个键绑定映射到操作:open a neovim terminal window, run a sequence of commands, resize/rename/reposition the window。
Ctrl +C只会删除连接,选项卡不会自动完成,上下箭头也不会给我历史。在Linux上,稳定shell的常用方法如下所示:
python -c "import pty; pty.spawn('/bin/bash')" //run on victim's machineCTRL + Z //switches over to