diff --git a/vim-7.3-filetype_mine.patch b/vim-7.3-filetype_mine.patch new file mode 100644 index 0000000..35bdccb --- /dev/null +++ b/vim-7.3-filetype_mine.patch @@ -0,0 +1,12 @@ +diff -rupN vim73.orig/runtime/filetype.vim vim73/runtime/filetype.vim +--- vim73.orig/runtime/filetype.vim 2011-02-28 21:16:54.188858309 +0100 ++++ vim73/runtime/filetype.vim 2011-02-28 21:18:28.628849670 +0100 +@@ -17,7 +17,7 @@ augroup filetypedetect + + " Ignored extensions + if exists("*fnameescape") +-au BufNewFile,BufRead ?\+.orig,?\+.bak,?\+.old,?\+.new,?\+.dpkg-dist,?\+.dpkg-old,?\+.rpmsave,?\+.rpmnew ++au BufNewFile,BufRead ?\+.orig,?\+.bak,?\+.old,?\+.new,?\+.mine,?\+.dpkg-dist,?\+.dpkg-old,?\+.rpmsave,?\+.rpmnew + \ exe "doau filetypedetect BufRead " . fnameescape(expand(":r")) + au BufNewFile,BufRead *~ + \ let s:name = expand("") | diff --git a/vim.changes b/vim.changes index 7b6bdb0..e2e8f6d 100644 --- a/vim.changes +++ b/vim.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Feb 28 21:33:24 CET 2011 - stian@viskjer.net + +- add vim-7.3-filetype_mine.patch to enable syntax highlighting in + .mine files. E.g. %{name}.spec.mine files generated by "osc pull" + ------------------------------------------------------------------- Mon Jan 31 22:51:16 UTC 2011 - opensuse@cboltz.de diff --git a/vim.spec b/vim.spec index 20081f5..3031001 100644 --- a/vim.spec +++ b/vim.spec @@ -1,5 +1,5 @@ # -# spec file for package vim (Version 7.3) +# spec file for package vim # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -20,7 +20,7 @@ Name: vim Version: 7.3 -Release: 1 +Release: 2 # License: Other uncritical OpenSource License ; Charityware. http://vimdoc.sourceforge.net/htmldoc/uganda.html#license Group: Productivity/Editors/Vi @@ -95,6 +95,7 @@ Patch15: %{name}-7.3-filetype_apparmor.patch Patch18: %{name}-7.3-filetype_spec.patch Patch19: %{name}-7.3-diff_check.patch Patch21: %{name}-7.3-filetype_changes.patch +Patch22: %{name}-7.3-filetype_mine.patch # TODO: why is this not applied anymore? Patch25: vim-7.2-lzma-support.patch Patch27: %{name}-7.3-disable_gcc_warning_eval_c.patch @@ -312,6 +313,7 @@ cp %{S:23} runtime/syntax/apparmor.vim %patch18 -p1 %patch19 -p1 %patch21 -p1 +%patch22 -p1 #%patch25 %patch27 -p1 %patch100 -p1