" Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
" Bug-Reports: see http://grml.org/bugs/
" License: This file is licensed under the GPL v2.
-" Latest change: Son Mai 28 01:26:49 CEST 2006 [mika]
+" Latest change: Fre Feb 09 14:32:09 CET 2007 [mika]
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually just
runtime! debian.vim
" Uncomment the next line to make Vim more Vi-compatible
-" NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous
+" NOTE: debian.vim sets 'nocompatible', but only if debian.vim is available,
+" so let's make sure we run in nocompatible mode:
+set nocompatible
+" Setting 'compatible' changes numerous
" options, so any other options should be set AFTER setting 'compatible'.
"set compatible
" Make p in Visual mode replace the selected text with the "" register.
vnoremap p <Esc>:let current_reg = @"<CR>gvdi<C-R>=current_reg<CR><Esc>
-" Vim5 and later versions support syntax highlighting. Uncommenting the next
-" line enables syntax highlighting by default.
-syntax on
+" Vim5 and later versions support syntax highlighting.
+" Just load the main syntax file when Vim was compiled with "+syntax".
+ if has("syntax")
+ syntax on
+ fi
" Debian uses compressed helpfiles. We must inform vim that the main
" helpfiles is compressed. Other helpfiles are stated in the tags-file.