1724126 - disable showing spec template for new file with .spec suffix
minor changes in spec.template - tabs->spaces
This commit is contained in:
parent
a54758b901
commit
ff5f0cc59d
@ -4,17 +4,17 @@
|
|||||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/
|
||||||
|
|
||||||
|
|
||||||
Name:
|
Name:
|
||||||
Version:
|
Version:
|
||||||
Release: 0%{?dist}
|
Release: 0%{?dist}
|
||||||
Summary:
|
Summary:
|
||||||
|
|
||||||
License:
|
License:
|
||||||
URL:
|
URL:
|
||||||
Source0:
|
Source0:
|
||||||
|
|
||||||
BuildRequires:
|
BuildRequires:
|
||||||
Requires:
|
Requires:
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
||||||
|
6
vim.spec
6
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: 2%{?dist}
|
Release: 3%{?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
|
||||||
@ -790,6 +790,10 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags
|
|||||||
%{_datadir}/icons/locolor/*/apps/*
|
%{_datadir}/icons/locolor/*/apps/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 19 2019 Zdenek Dohnal <zdohnal@redhat.com> - 2:8.1.1713-3
|
||||||
|
- 1724126 - disable showing spec template for new file with .spec suffix
|
||||||
|
- minor changes in spec.template - tabs->spaces
|
||||||
|
|
||||||
* Fri Jul 19 2019 Zdenek Dohnal <zdohnal@redhat.com> - 2:8.1.1713-2
|
* Fri Jul 19 2019 Zdenek Dohnal <zdohnal@redhat.com> - 2:8.1.1713-2
|
||||||
- remove skip_defaults_vim - it does not make sense to have it in system vimrc
|
- remove skip_defaults_vim - it does not make sense to have it in system vimrc
|
||||||
|
|
||||||
|
5
vimrc
5
vimrc
@ -61,7 +61,10 @@ if has("autocmd")
|
|||||||
" don't write swapfile on most commonly used directories for NFS mounts or USB sticks
|
" don't write swapfile on most commonly used directories for NFS mounts or USB sticks
|
||||||
autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
|
autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
|
||||||
" start with spec file template
|
" start with spec file template
|
||||||
autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec
|
" 1724126 - do not open new file with .spec suffix with spec file template
|
||||||
|
" apparently there are other file types with .spec suffix, so disable the
|
||||||
|
" template
|
||||||
|
" autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user