mumu-lhl / eaf-pyqterminal

A terminal written in PyQt6 for the Emacs Application Framework.
GNU General Public License v3.0
47 stars 3 forks source link

在终端下,vim不能编辑文件 #24

Closed sxqsfun closed 10 months ago

sxqsfun commented 10 months ago

在终端下,打开vim编辑文件时,按键会失效,不能操作

mumu-lhl commented 10 months ago

更新一下,已经修复了

sxqsfun commented 10 months ago

神速!刚更新试了,没问题。感谢感谢

sxqsfun commented 10 months ago

更新一下,已经修复了

ssh远程使用vim时,方向键会失效。本地使用正常

mumu-lhl commented 10 months ago

看一下*eaf*里有什么相关的报错吗?

sxqsfun commented 10 months ago

看一下*eaf*里有什么相关的报错吗?

刚打开eaf debug 看了下,没有报错信息

sxqsfun commented 10 months ago

2023-08-29_17-46

mumu-lhl commented 10 months ago

明天电脑修好后再看下

mumu-lhl commented 10 months ago

无法复现

试下其他终端有没有这个问题吧

sxqsfun commented 10 months ago

无法复现

试下其他终端有没有这个问题吧

用 alacritty 是没有问题的。在pyqterminal中,ssh远程后,用 vim 打开文件,此时方向键能正常使用。按 i 进入编辑模式后,方向键失效,按方向键会退出编辑模式,vim下方提示:E388: Couldn't find definition

可能是我之前的问题描述得太简单了,麻烦再帮忙看看

sxqsfun commented 10 months ago

E388: Couldn't find definition

百度了一下,找到问题了,不是 pyqterminal 的问题,不好意思,打扰了

解决办法: vim ~/.vimrc 添加行,即可解决

:set term=builtin_ansi