WindTerm icon indicating copy to clipboard operation
WindTerm copied to clipboard

VIM edit mode cannot paste large text

Open BoomYoung opened this issue 3 years ago • 1 comments

In vim editing mode, pasting large text with ctrl+v will cause some bugs:

  1. The copied content can only be pasted partially, and then stopped

  2. The keyboard input is garbled, and ESC cannot exit the vim paste mode

Environment: mac m1, WindTerm version 2.5.0

PS: The same remote host does’ t have this problem in iTerm or SecureCRT, so the reason for vim configuration is ruled out

(在vim编辑模式下,ctrl+v粘贴大文本会导致一些BUG:

  1. 复制的内容只能粘贴一部分,然后卡住
  2. 键盘乱码,ESC无法退出vim paste模式

环境:mac m1, WindTerm 2.5.0版本 PS: 同一个远程主机在iTerm和SecureCRT中未出现该问题,所以排除是vim配置问题导致的可能)

BoomYoung avatar Oct 17 '22 01:10 BoomYoung

me too, 希望解决下,甚至应为这个bug,我都想换工具了,奈何 mac 没有 mobaxterm

bertreyking avatar Jul 10 '24 15:07 bertreyking

When I connect to my Mac through a Shell session and try to paste long content using the vim or vi editor, it displays a lot of repeating characters such as ^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB. However, when I connect to a Linux server through a new session and use vim to edit and paste the same content, there are no encoding issues. Additionally, when I use the default terminal on my Mac to edit, there are also no encoding issues. I have tried modifying the session configuration multiple times, but the issue persists. The problem from October 2022 still exists, and it's almost 2025 now. Is the author of this useful tool giving up?

yocdynysscvip avatar Oct 20 '24 08:10 yocdynysscvip

This problem makes it very difficult to use Windterm.

yocdynysscvip avatar Oct 20 '24 08:10 yocdynysscvip

对,这个是必现问题

thomasnew avatar Sep 16 '25 06:09 thomasnew

Before entering Insert mode, run :set paste, then paste your content; after pasting, run :set nopaste to restore normal mode.

mrcaorui avatar Oct 01 '25 02:10 mrcaorui

Before entering Insert mode, run :set paste, then paste your content; after pasting, run :set nopaste to restore normal mode.

Do NOT work , the terminal tab windows just crashed.

Image

thomasnew avatar Nov 10 '25 08:11 thomasnew