Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Shift-Insert erratic behavior in edit-command-line vim
- X-seq: zsh-users 22024
- From: lolilolicon <lolilolicon@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Shift-Insert erratic behavior in edit-command-line vim
- Date: Tue, 25 Oct 2016 20:48:38 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=60AMlpd/OEWzeRnF/rwtnHiXrHDhZk/gi3eudUqm6c4=; b=xz9jC80XJrUZOBVyBzdlcW/1mWk5eDhv8tI6Qvh06bxK3oY2yafMRrXDfmiAnNj4Dv SiuoV8GtS9B5aTSU6dex36VarAhm9vB0Qa5NWloX20cHhN/5LoJ84OtgYUV+9mMgxmGL S+Htp94u7jJ8ONl60QitQO2w9fGkIsZBatmyJ35hr/1Hq/Tv6uY415PKau1da+kmYsCS VhJg113+WIn1xLpm6eYglMaZu0m/qAq/fciik6/OVvFLKiZSNpkiJCUepO6+xjHP+gYe QH1T7ou5RW4P6CIkfIaYlh59sx96ARZYbkKewN3mC7FuoYarUqq5xVqcIE8tkbpZFSe8 N7fQ==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
I use ESC-e (edit-command-line) to edit the current command line in vim.
Usually in vim Insert mode, I can use Shift-Insert to insert X PRIMARY
selection, but for some reason, it doesn't work here.
Instead, vim would enter Normal mode and execute... something, e.g.,
% abc
ESC-e executes: /usr/bin/vim -c "normal! 4go" -- /tmp/zshzgtQpk
Inside vim, press "i" to enter Insert mode,
abc
The content of my PRIMARY selection is "x". Press Shift-Insert, becomes
ac
Vim has entered Normal mode.
Now I press "u" (3 times) to undo and see what happened,
Ac
Abc
abc
I have no idea how this happened.
So, can you reproduce this?
Why is it happening and how to solve it?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author