vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 93970c7c9dbe304a8082fd620b66aea4768811bd
parent d003d41d066c5cf1b6941035a2a12a7f36220594
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Mon,  1 Feb 2016 23:12:29 +0100

Change vis-{copy,paste} to use X clipboard xsel -b

Diffstat:
Mvis-copy | 2+-
Mvis-paste | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/vis-copy b/vis-copy @@ -1,7 +1,7 @@ #!/bin/sh if [ ! -z "$DISPLAY" ]; then - exec xsel -i + exec xsel -ib elif type pbcopy >/dev/null 2>&1; then exec pbcopy else diff --git a/vis-paste b/vis-paste @@ -1,7 +1,7 @@ #!/bin/sh if [ ! -z "$DISPLAY" ]; then - exec xsel -o + exec xsel -ob elif type pbpaste >/dev/null 2>&1; then exec pbpaste else