From 5b77877888162f4e415fe9a7b8c5e9fb5dfb6ee1 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 27 Sep 2017 20:43:42 +0200 Subject: Add syntax files from upstream vim repository --- ftplugin/diff.vim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ftplugin/diff.vim (limited to 'ftplugin/diff.vim') diff --git a/ftplugin/diff.vim b/ftplugin/diff.vim new file mode 100644 index 00000000..cc2a10f6 --- /dev/null +++ b/ftplugin/diff.vim @@ -0,0 +1,19 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vim') == -1 + +" Vim filetype plugin file +" Language: Diff +" Maintainer: Bram Moolenaar +" Last Change: 2005 Jul 27 + +" Only do this when not done yet for this buffer +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +let b:undo_ftplugin = "setl modeline<" + +" Don't use modelines in a diff, they apply to the diffed file +setlocal nomodeline + +endif -- cgit v1.2.3