commit 9f42f92b1cf4a7e44d1d7257a7cd775cfb4e39f6
parent 04e7fd06822cf913a1ab623a6539fca27e75fff9
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sat, 7 Sep 2019 14:32:34 +0200
Add bindings for paste/copy to prrimary clipboard
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua
@@ -82,7 +82,8 @@ vis.events.subscribe(vis.events.INIT, function()
vis:map(vis.modes.NORMAL, leader..'n', ':set numbers!<Enter>')
vis:map(vis.modes.NORMAL, leader..'N', ':set relativenumbers!<Enter>')
vis:map(vis.modes.NORMAL, leader..'o', ':fzf<Enter>')
- vis:map(vis.modes.NORMAL, leader..'p', ':< xclip -selection clipboard -o<Enter>')
+ vis:map(vis.modes.NORMAL, leader..'p', ':< xclip -o<Enter>')
+ vis:map(vis.modes.NORMAL, leader..'P', ':< xclip -selection clipboard -o<Enter>')
vis:map(vis.modes.NORMAL, leader..'q', ':q<Enter>')
vis:map(vis.modes.NORMAL, leader..'Q', ':qa<Enter>')
vis:map(vis.modes.NORMAL, leader..'r', ':< scholarref ')
@@ -90,7 +91,8 @@ vis.events.subscribe(vis.events.INIT, function()
vis:map(vis.modes.NORMAL, leader..'T', ':e ~/doc/todo.md<Enter>')
vis:map(vis.modes.NORMAL, leader..'w', ':w<Enter>')
vis:map(vis.modes.NORMAL, leader..'x', ':wq<Enter>')
- vis:map(vis.modes.VISUAL, leader..'y', ':> xclip -selection clipboard -i<Enter>')
+ vis:map(vis.modes.VISUAL, leader..'y', ':> xclip -i<Enter>')
+ vis:map(vis.modes.VISUAL, leader..'Y', ':> xclip -selection clipboard -i<Enter>')
vis:map(vis.modes.NORMAL, '<F7>', ':!sent $vis_filepath &<Enter>')
vis:map(vis.modes.NORMAL, '<Tab><Tab>', '<vis-window-next>')