summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVon Random <von@vdrandom.org>2018-07-16 15:25:33 +0300
committerVon Random <von@vdrandom.org>2018-07-16 15:25:33 +0300
commit90c59f9b216584e95f8d6e48b39f700198b100f0 (patch)
tree0246b7edd9f6f4c89b10c3f835b2c9fcb16c3c1a
parentb4dfe38b152228392bffb83243950d804696d737 (diff)
gief nvim back in tvim, also prettier truecolortest.awk
-rwxr-xr-xtruecolortest.awk2
-rwxr-xr-xtvim3
2 files changed, 2 insertions, 3 deletions
diff --git a/truecolortest.awk b/truecolortest.awk
index ec3313f..20b8de0 100755
--- a/truecolortest.awk
+++ b/truecolortest.awk
@@ -2,7 +2,7 @@
# a simple script to test 24 bit compatibility in a terminal
# source: https://gist.github.com/XVilka/8346728
BEGIN{
- s="/\\/\\/\\/\\/\\"; s=s s s s s s s s;
+ s="▀▀▀▀▀▀▀▀▀▀"; s=s s s s s s s s;
for (colnum = 0; colnum<77; colnum++) {
r = 255-(colnum*255/76);
g = (colnum*510/76);
diff --git a/tvim b/tvim
index 3b5e667..d79a8dc 100755
--- a/tvim
+++ b/tvim
@@ -1,7 +1,6 @@
#!/usr/bin/env bash
typeset -a vimopt=(
'--cmd' 'let g:tvim = 1'
- # '--cmd' "set tgc title titlestring=[%F]%m\\ -\\ TVIM"
'-c' 'set mouse=a'
)
@@ -11,6 +10,6 @@ error() {
}
termbin=$(command -v st) || termbin=$(command -v xterm) || error "No terminal found!"
-vimbin=$(command -v vim) || error "No vim binary found!"
+vimbin=$(command -v nvim) || vimbin=$(command -v vim) || error "No vim binary found!"
exec "$termbin" -c tvim -e "$vimbin" "${vimopt[@]}" "$@" &>/dev/null & disown