1902772 - "vim" from vim-minimal defunct on zsh
This commit is contained in:
parent
eb1e499d76
commit
039b1a44d9
6
vim.sh
6
vim.sh
@ -8,7 +8,11 @@ if [ -n "${BASH_VERSION-}" -o -n "${KSH_VERSION-}" -o -n "${ZSH_VERSION-}" ]; th
|
|||||||
;;
|
;;
|
||||||
-/usr/bin/vi)
|
-/usr/bin/vi)
|
||||||
# apply only if founded vi is in expected dir from distro
|
# 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
|
esac
|
||||||
fi
|
fi
|
||||||
|
5
vim.spec
5
vim.spec
@ -21,7 +21,7 @@ Summary: The VIM editor
|
|||||||
URL: http://www.vim.org/
|
URL: http://www.vim.org/
|
||||||
Name: vim
|
Name: vim
|
||||||
Version: %{baseversion}.%{patchlevel}
|
Version: %{baseversion}.%{patchlevel}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: Vim and MIT
|
License: Vim and MIT
|
||||||
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}-%{patchlevel}.tar.bz2
|
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}-%{patchlevel}.tar.bz2
|
||||||
Source1: vim.sh
|
Source1: vim.sh
|
||||||
@ -826,6 +826,9 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags
|
|||||||
%config(noreplace) %{_sysconfdir}/profile.d/vim-default-editor.*
|
%config(noreplace) %{_sysconfdir}/profile.d/vim-default-editor.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Dec 09 2020 Zdenek Dohnal <zdohnal@redhat.com> - 2:8.2.2108-2
|
||||||
|
- 1902772 - "vim" from vim-minimal defunct on zsh
|
||||||
|
|
||||||
* Tue Dec 08 2020 Zdenek Dohnal <zdohnal@redhat.com> - 2:8.2.2108-1
|
* Tue Dec 08 2020 Zdenek Dohnal <zdohnal@redhat.com> - 2:8.2.2108-1
|
||||||
- patchlevel 2108
|
- patchlevel 2108
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user