vimrc: enable features only if available; update changelog for upload v0.3.65
authorMichael Prokop <mika@grml.org>
Tue, 31 Mar 2009 21:53:31 +0000 (23:53 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 31 Mar 2009 21:53:31 +0000 (23:53 +0200)
debian/changelog
etc/skel/.vimrc

index f7f8436..dd2cd27 100644 (file)
@@ -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 <ft@grml.org>  Tue, 31 Mar 2009 13:21:52 +0200
+ -- Michael Prokop <mika@grml.org>  Tue, 31 Mar 2009 23:52:18 +0200
 
 grml-etc-core (0.3.64) unstable; urgency=low
 
index 99c5a0d..7ef9a42 100644 (file)
 
 " 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