Last active
March 16, 2023 04:54
-
-
Save mentalisttraceur/799ff0c7882e71d25d91df1d2a2a6032 to your computer and use it in GitHub Desktop.
zsh vi-like P
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function vi-put-before() | |
{ | |
local cursor_position=$CURSOR && | |
zle .vi-put-before && | |
CURSOR=$cursor_position | |
} | |
zle -N vi-put-before |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.zsh-vi-P
fixes capitalP
invi
-mode so that the cursor is left in front of the entire pasted text after the paste.