diff --git a/dot.vimrc b/dot.vimrc index 0fc4bad..93b4df3 100644 --- a/dot.vimrc +++ b/dot.vimrc @@ -24,6 +24,10 @@ function! SKEL_spec() exe "%s/specRPM_CREATION_DATE/" . strftime("%a\ %b\ %d\ %Y") . "/ge" exe "%s/specRPM_CREATION_AUTHOR_MAIL/" . login . "@" . hostname . "/ge" exe "%s/specRPM_CREATION_NAME/" . expand("%:t:r") . "/ge" + setf spec endfunction autocmd BufNewFile *.spec call SKEL_spec() +" filetypes +filetype plugin on +filetype indent on " ~/.vimrc ends here diff --git a/spec.skeleton b/spec.skeleton index 4287555..c1417cc 100644 --- a/spec.skeleton +++ b/spec.skeleton @@ -5,7 +5,7 @@ # norootforbuild -Name: specRPM_CREATION_NAME +Name: specRPM_CREATION_NAME Version: Release: Summary: @@ -25,6 +25,7 @@ AutoReqProv: on Authors: -------- Name Surname + %prep %setup @@ -42,8 +43,8 @@ rm -rf $RPM_BUILD_ROOT %postun %files -%defattr(-,root,root,0755) +%defattr(-,root,root) %doc ChangeLog README COPYING %changelog -* specRPM_CREATION_DATE - specRPM_CREATION_AUTHOR_MAIL +* specRPM_CREATION_DATE specRPM_CREATION_AUTHOR_MAIL diff --git a/vim.changes b/vim.changes index c4881bf..b7c1a60 100644 --- a/vim.changes +++ b/vim.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 26 14:38:19 CET 2009 - werner@suse.de + +- Add file type detection to personal vimrc skeleton (bnc#404013) + ------------------------------------------------------------------- Wed Feb 25 16:55:54 CET 2009 - werner@suse.de diff --git a/vim.spec b/vim.spec index 746b99d..1a0de8b 100644 --- a/vim.spec +++ b/vim.spec @@ -20,7 +20,7 @@ Name: vim Version: 7.2 -Release: 10 +Release: 11 # License: Other uncritical OpenSource License; http://vimdoc.sourceforge.net/htmldoc/uganda.html#license Group: Productivity/Editors/Vi @@ -696,6 +696,8 @@ fi %endif %changelog +* Thu Feb 26 2009 werner@suse.de +- Add file type detection to personal vimrc skeleton (bnc#404013) * Wed Feb 25 2009 werner@suse.de - Upto version 7.2.127 - Be sure that lib64 is found by configure