vimrc: enable features only if available; update changelog for upload
[grml-etc-core.git] / etc / skel / .vimrc
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