diff options
-rw-r--r-- | README.rst | 9 | ||||
-rw-r--r-- | ftdetect/changes.vim | 3 | ||||
-rw-r--r-- | snippets/changes.snippets | 5 |
3 files changed, 17 insertions, 0 deletions
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} + |