get rid of nvim for now

This commit is contained in:
Von Random 2018-07-10 02:30:30 +03:00
parent 7c21d2da5c
commit b4dfe38b15
2 changed files with 3 additions and 3 deletions

4
tvim
View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
typeset -a vimopt=( typeset -a vimopt=(
'--cmd' 'let g:tvim = 1' '--cmd' 'let g:tvim = 1'
'--cmd' "set tgc title titlestring=[%F]%m\\ -\\ TVIM" # '--cmd' "set tgc title titlestring=[%F]%m\\ -\\ TVIM"
'-c' 'set mouse=a' '-c' 'set mouse=a'
) )
@ -11,6 +11,6 @@ error() {
} }
termbin=$(command -v st) || termbin=$(command -v xterm) || error "No terminal found!" termbin=$(command -v st) || termbin=$(command -v xterm) || error "No terminal found!"
vimbin=$(command -v nvim) || vimbin=$(command -v vim) || error "No vim binary found!" vimbin=$(command -v vim) || error "No vim binary found!"
exec "$termbin" -c tvim -e "$vimbin" "${vimopt[@]}" "$@" &>/dev/null & disown exec "$termbin" -c tvim -e "$vimbin" "${vimopt[@]}" "$@" &>/dev/null & disown

View file

@ -7,7 +7,7 @@ typeset -a vimopts=(
) )
case $1 in case $1 in
-g) vimbin=$(command -v gvim);; -g) vimbin=$(command -v gvim);;
-n) vimbin=$(command -v nvim) || vimbin=$(command -v vim);; -n) vimbin=$(command -v vim);;
*) vimbin=$(command -v tvim);; *) vimbin=$(command -v tvim);;
esac esac
exec flock -w0 "$index" "$vimbin" "${vimopts[@]}" exec flock -w0 "$index" "$vimbin" "${vimopts[@]}"