From 50ff73bd48cf7c7f79cf87799a878089c96ff4de Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Fri, 29 Apr 2016 12:13:19 +0200 Subject: [PATCH] update ftplugin/spec.vim, syntax/spec.vim (rhbz#1297746) --- ftplugin-spec.vim | 210 +++++++++++++++++++++++++++++++++++++++++ syntax-spec.vim | 236 ++++++++++++++++++++++++++++++++++++++++++++++ vim-update.sh | 2 + vim.spec | 9 +- 4 files changed, 456 insertions(+), 1 deletion(-) create mode 100644 ftplugin-spec.vim create mode 100644 syntax-spec.vim diff --git a/ftplugin-spec.vim b/ftplugin-spec.vim new file mode 100644 index 00000000..2a961f82 --- /dev/null +++ b/ftplugin-spec.vim @@ -0,0 +1,210 @@ +" 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