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/spec.vim | 214 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 214 insertions(+) create mode 100644 ftplugin/spec.vim (limited to 'ftplugin/spec.vim') diff --git a/ftplugin/spec.vim b/ftplugin/spec.vim new file mode 100644 index 00000000..2e9b9c8a --- /dev/null +++ b/ftplugin/spec.vim @@ -0,0 +1,214 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vim') == -1 + +" Plugin to update the %changelog section of RPM spec files +" Filename: spec.vim +" Maintainer: Igor Gnatenko i.gnatenko.brain@gmail.com +" Former Maintainer: Gustavo Niemeyer (until March 2014) +" Last Change: Mon Jun 01 21:15 MSK 2015 Igor Gnatenko + +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +let s:cpo_save = &cpo +set cpo&vim + +if !exists("no_plugin_maps") && !exists("no_spec_maps") + if !hasmapto("SpecChangelog") + map c SpecChangelog + endif +endif + +if !hasmapto("call SpecChangelog(\"\")") + noremap