From 039b1a44d92811cf36de55f44198c6dfb662f7fe Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Dec 09 2020 08:38:37 +0000 Subject: 1902772 - "vim" from vim-minimal defunct on zsh --- diff --git a/vim.sh b/vim.sh index e257ad1..58c3300 100644 --- a/vim.sh +++ b/vim.sh @@ -8,7 +8,11 @@ if [ -n "${BASH_VERSION-}" -o -n "${KSH_VERSION-}" -o -n "${ZSH_VERSION-}" ]; th ;; -/usr/bin/vi) # apply only if founded vi is in expected dir from distro - alias vim="read -rep $'No vim found, using vi, press ENTER to continue\n' -n1 -t 20 -s && vi" + if [ -n "${ZSH_VERSION-}" ]; then + alias vim="read -t 10 -s -k 1 '?No vim found, using vi, press ENTER to continue...' && echo '' && vi" + else + alias vim="read -rep $'No vim found, using vi, press ENTER to continue...\n' -n1 -t 10 -s && vi" + fi ;; esac fi diff --git a/vim.spec b/vim.spec index dbfdabc..ac76564 100644 --- a/vim.spec +++ b/vim.spec @@ -21,7 +21,7 @@ Summary: The VIM editor URL: http://www.vim.org/ Name: vim Version: %{baseversion}.%{patchlevel} -Release: 1%{?dist} +Release: 2%{?dist} License: Vim and MIT Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}-%{patchlevel}.tar.bz2 Source1: vim.sh @@ -826,6 +826,9 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags %config(noreplace) %{_sysconfdir}/profile.d/vim-default-editor.* %changelog +* Wed Dec 09 2020 Zdenek Dohnal - 2:8.2.2108-2 +- 1902772 - "vim" from vim-minimal defunct on zsh + * Tue Dec 08 2020 Zdenek Dohnal - 2:8.2.2108-1 - patchlevel 2108