diff --git a/.gitignore b/.gitignore
index 3625e41..956c910 100644
--- a/.gitignore
+++ b/.gitignore
@@ -56,3 +56,4 @@
 /vim-8.0-503.tar.bz2
 /vim-8.0-514.tar.bz2
 /vim-8.0-515.tar.bz2
+/vim-8.0-517.tar.bz2
diff --git a/README.patches b/README.patches
index f7038a5..50027fb 100644
--- a/README.patches
+++ b/README.patches
@@ -1,3 +1,29 @@
+commit b6fa30ccc39cdb7f1d07b99fe2f4c6b61671dac2
+Author: Bram Moolenaar <Bram@vim.org>
+Date:   Wed Mar 29 14:19:25 2017 +0200
+
+    patch 8.0.0517: there is no way to remove quickfix lists
+    
+    Problem:    There is no way to remove quickfix lists (for testing).
+    Solution:   Add the 'f' action to setqflist(). Add tests. (Yegappan
+                Lakshmanan)
+
+commit e0720cbf63eb3045be8d965e3182c0c392c7b5e9
+Author: Bram Moolenaar <Bram@vim.org>
+Date:   Wed Mar 29 13:48:40 2017 +0200
+
+    Update runtime files.
+
+commit b1e04fca3704e272a30afbe062498819eaacd4f9
+Author: Bram Moolenaar <Bram@vim.org>
+Date:   Wed Mar 29 13:08:35 2017 +0200
+
+    patch 8.0.0516: a large count on a normal command causes trouble
+    
+    Problem:    A large count on a normal command causes trouble. (Dominique
+                Pelle)
+    Solution:   Make "opcount" long.
+
 commit d5d37537d1fa46fd468bd378af2006dd09840f38
 Author: Bram Moolenaar <Bram@vim.org>
 Date:   Mon Mar 27 23:02:07 2017 +0200
diff --git a/sources b/sources
index 4fb36a2..f103b1e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (vim-8.0-515.tar.bz2) = ca67fd981179fe50aca6c844b46e5d6e0b507e35c54de22652e7aa10d6eba35c1d9bf2bad71c464ffe751d23a99674deae5f7de15962abbdc693e3b47d983dcc
+SHA512 (vim-8.0-517.tar.bz2) = 74580e4bf13a979f499793c11c417377ffb3fe85058c0a04f4604f615d155b16d9cc52e702ec129e5427ed38bb3cf0714b9949db5c4828890ec3be81ab1c680f
diff --git a/vim-8.0-bindsyntax.patch b/vim-8.0-bindsyntax.patch
index 409a251..eb29da1 100644
--- a/vim-8.0-bindsyntax.patch
+++ b/vim-8.0-bindsyntax.patch
@@ -1,12 +1,12 @@
 diff -up vim80/runtime/filetype.vim.bindsyntax vim80/runtime/filetype.vim
---- vim80/runtime/filetype.vim.bindsyntax	2017-03-27 16:51:42.863820018 +0200
-+++ vim80/runtime/filetype.vim	2017-03-27 17:04:41.264496625 +0200
-@@ -288,7 +288,7 @@ au BufNewFile,BufRead *.bib			setf bib
- au BufNewFile,BufRead *.bst			setf bst
+--- vim80/runtime/filetype.vim.bindsyntax	2017-03-30 14:35:27.226674642 +0200
++++ vim80/runtime/filetype.vim	2017-03-30 14:43:01.743145007 +0200
+@@ -289,7 +289,7 @@ au BufNewFile,BufRead *.bst			setf bst
  
  " BIND configuration
--au BufNewFile,BufRead named.conf,rndc.conf	setf named
-+au BufNewFile,BufRead named*.conf,rndc*.conf,rndc*.key	setf named
+ " sudoedit uses namedXXXX.conf
+-au BufNewFile,BufRead named*.conf,rndc*.conf	setf named
++au BufNewFile,BufRead named*.conf,rndc*.conf,rndc*.key,named.*	setf named
  
  " BIND zone
  au BufNewFile,BufRead named.root		setf bindzone
diff --git a/vim.spec b/vim.spec
index d3c7c3a..6942808 100644
--- a/vim.spec
+++ b/vim.spec
@@ -1,4 +1,4 @@
-%define patchlevel 515
+%define patchlevel 517
 %if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1}
 %define WITH_SELINUX 1
 %endif
@@ -219,7 +219,7 @@ perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk
 %patch3013 -p1
 %patch3014 -p1
 %patch3015 -p1
-%patch3016 -p1
+%patch3016 -p1 -b .bindsyntax
 
 %build
 cp -f %{SOURCE6} .
@@ -765,6 +765,10 @@ rm -rf %{buildroot}
 %{_datadir}/icons/locolor/*/apps/*
 
 %changelog
+* Wed Mar 29 2017 Karsten Hopp <karsten@redhat.com> 8.0.517-1
+- patchlevel 517
+- enhance rhbz#1436124
+
 * Tue Mar 28 2017 Karsten Hopp <karsten@redhat.com> 8.0.515-1
 - patchlevel 515