From b5badd3e87c9a9147509e2e40d50d99bd3b40563 Mon Sep 17 00:00:00 2001 From: Filip SzymaƄski Date: Dec 09 2016 16:20:23 +0000 Subject: Add sysinit.vim file --- diff --git a/sysinit.vim b/sysinit.vim new file mode 100644 index 0000000..28cc3ce --- /dev/null +++ b/sysinit.vim @@ -0,0 +1,17 @@ +augroup Fedora + autocmd! + + " When editing a file, always jump to the last known cursor position + autocmd BufReadPost * + \ if line("'\"") >= 1 && line("'\"") <= line("$") | + \ execute "normal! g`\"" | + \ endif + + " RPM spec file template + if filereadable("/etc/rpmdevtools/spectemplate-minimal.spec") + autocmd BufNewFile *.{spec,spec.in} + \ silent! 0read /etc/rpmdevtools/spectemplate-minimal.spec + endif +augroup END + +" vim: et ts=2 sw=2