Browse Source

gief nvim back in tvim, also prettier truecolortest.awk

master
Von Random 1 year ago
parent
commit
90c59f9b21
2 changed files with 2 additions and 3 deletions
  1. 1
    1
      truecolortest.awk
  2. 1
    2
      tvim

+ 1
- 1
truecolortest.awk 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);

+ 1
- 2
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

Loading…
Cancel
Save