From a17148ea04d7db259537b02541a6855a294733be Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 6 Nov 2018 09:00:11 +0100 Subject: feat: add detection of SUSE *.changes files and add first snippet. Requires vim-snipmate compatible engine. --- README.rst | 9 +++++++++ ftdetect/changes.vim | 3 +++ snippets/changes.snippets | 5 +++++ 3 files changed, 17 insertions(+) create mode 100644 README.rst create mode 100644 ftdetect/changes.vim create mode 100644 snippets/changes.snippets diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..d600569 --- /dev/null +++ b/README.rst @@ -0,0 +1,9 @@ +vim-suse-changes +################ + +Vim plugin for work with openSUSE \*.changes file. + +Requires `vim-snipmate`_ compatible engine installed. + +.. _`vim-snipmate`: + https://github.com/honza/vim-snippets diff --git a/ftdetect/changes.vim b/ftdetect/changes.vim new file mode 100644 index 0000000..f29a98b --- /dev/null +++ b/ftdetect/changes.vim @@ -0,0 +1,3 @@ +augroup filetypedetect + au BufRead,BufNewFile *.changes :set filetype=changes +augroup END diff --git a/snippets/changes.snippets b/snippets/changes.snippets new file mode 100644 index 0000000..6430952 --- /dev/null +++ b/snippets/changes.snippets @@ -0,0 +1,5 @@ +snippet ch + ------------------------------------------------------------------- + `strftime("%a %b %e %X %Z %Y")` - `system('rpm --eval "%{packager}"|sed -e "s/^.*<\(.*\)>$/\1/"')` + - ${0} + -- cgit