gief nvim back in tvim, also prettier truecolortest.awk

This commit is contained in:
Von Random 2018-07-16 15:25:33 +03:00
parent b4dfe38b15
commit 90c59f9b21
2 changed files with 2 additions and 3 deletions

View file

@ -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);

3
tvim
View file

@ -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