zsh-users
 help / color / mirror / code / Atom feed
* Shift-Insert erratic behavior in edit-command-line vim
@ 2016-10-25 12:48 lolilolicon
  2016-10-25 13:05 ` lolilolicon
  2016-10-25 16:25 ` Bart Schaefer
  0 siblings, 2 replies; 4+ messages in thread
From: lolilolicon @ 2016-10-25 12:48 UTC (permalink / raw)
  To: zsh-users

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?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-25 19:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-25 12:48 Shift-Insert erratic behavior in edit-command-line vim lolilolicon
2016-10-25 13:05 ` lolilolicon
2016-10-25 16:25 ` Bart Schaefer
2016-10-25 16:40   ` lolilolicon

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).