diff options
author | listout <listout@protonmail.com> | 2022-01-17 23:26:31 +0530 |
---|---|---|
committer | listout <listout@protonmail.com> | 2022-01-17 23:26:31 +0530 |
commit | 6308e76b1c18408280c895447521231473846c06 (patch) | |
tree | 79e804961e74c1e18646b0a079e8ef4f3d3c04c8 /.zshrc | |
parent | 1a2a97be4ff7bf711fea4cd9235f65718950a48b (diff) |
yank to clipboard in vi mode
Diffstat (limited to '.zshrc')
-rw-r--r-- | .zshrc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -5,6 +5,14 @@ ## Use vim mode bindkey -v +# Yank to the system clipboard +function vi-yank-xclip { + zle vi-yank + echo "$CUTBUFFER" | xsel -i -b +} + +zle -N vi-yank-xclip +bindkey -M vicmd 'y' vi-yank-xclip export KEYTIMEOUT=1 ## Source other configs |