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/
|
||||
|
||||
|
||||
Name:
|
||||
Version:
|
||||
Release: 0%{?dist}
|
||||
Summary:
|
||||
Name:
|
||||
Version:
|
||||
Release: 0%{?dist}
|
||||
Summary:
|
||||
|
||||
License:
|
||||
URL:
|
||||
Source0:
|
||||
License:
|
||||
URL:
|
||||
Source0:
|
||||
|
||||
BuildRequires:
|
||||
Requires:
|
||||
BuildRequires:
|
||||
Requires:
|
||||
|
||||
%description
|
||||
|
||||
|
6
vim.spec
6
vim.spec
@ -21,7 +21,7 @@ Summary: The VIM editor
|
||||
URL: http://www.vim.org/
|
||||
Name: vim
|
||||
Version: %{baseversion}.%{patchlevel}
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: Vim and MIT
|
||||
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}-%{patchlevel}.tar.bz2
|
||||
Source1: vim.sh
|
||||
@ -790,6 +790,10 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags
|
||||
%{_datadir}/icons/locolor/*/apps/*
|
||||
|
||||
%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
|
||||
- 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
|
||||
autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
|
||||
" 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
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user