From 20aa536b5cef0cef7cdd11842426af40f6686c02 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 31 Mar 2009 23:53:31 +0200 Subject: [PATCH] vimrc: enable features only if available; update changelog for upload --- debian/changelog | 5 +++-- etc/skel/.vimrc | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index f7f8436..dd2cd27 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -grml-etc-core (0.3.65) UNRELEASED; urgency=low +grml-etc-core (0.3.65) unstable; urgency=low [ Frank Terbeck ] * zshrc: Add $NOTITLE to disable alteration of terminal titles. @@ -15,10 +15,11 @@ grml-etc-core (0.3.65) UNRELEASED; urgency=low [ Michael Prokop ] * vimrc: add check for $NOPRECMD [Closes: issue447] + * vimrc: enable features only if available [Closes: issue641] * zshrc: use 'setopt noglobdots' as [Open]SuSE uses in its /etc/zshrc 'setopt globdots' by default. - -- Frank Terbeck Tue, 31 Mar 2009 13:21:52 +0200 + -- Michael Prokop Tue, 31 Mar 2009 23:52:18 +0200 grml-etc-core (0.3.64) unstable; urgency=low diff --git a/etc/skel/.vimrc b/etc/skel/.vimrc index 99c5a0d..7ef9a42 100644 --- a/etc/skel/.vimrc +++ b/etc/skel/.vimrc @@ -25,10 +25,12 @@ " autocommands: " when the file type is "mail" then set the textwidth to "70": - au FileType mail set tw=70 + if has("autocmd") + au FileType mail set tw=70 " When editing a file, always jump to the last cursor position " au BufReadPost * if line("'\"") | exe "'\"" | endif - autocmd BufReadPost * if line("'\"") && line("'\"") <= line("$") | exe "normal `\"" | endif + autocmd BufReadPost * if line("'\"") && line("'\"") <= line("$") | exe "normal `\"" | endif + endif " some colors - as an example "white on black" [use bold fonts]: " hi normal ctermfg=white ctermbg=black guifg=white guibg=black -- 2.1.4