From: Michael Prokop Date: Wed, 21 Jan 2009 13:53:57 +0000 (+0100) Subject: Enable syntax only if available and do not enable digraph by default in /etc/skel... X-Git-Tag: v0.3.62~32 X-Git-Url: https://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=1d005c74d1e8442e5529287d3a0955ff3ea47f08 Enable syntax only if available and do not enable digraph by default in /etc/skel/.vimrc --- diff --git a/debian/changelog b/debian/changelog index 1f77374..6131692 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +grml-etc-core (0.3.62) unstable; urgency=low + + * /etc/skel/.vimrc: + * disable digraph by default (it's annoying for users not + being aware of it) + * enable syntax highlighting only if the vim version supports it + + -- Michael Prokop Wed, 21 Jan 2009 14:52:14 +0100 + grml-etc-core (0.3.61) unstable; urgency=low * zshrc: Fix a bug in urlencode(), thanks to Baptiste Daroussin diff --git a/etc/skel/.vimrc b/etc/skel/.vimrc index 62485df..99c5a0d 100644 --- a/etc/skel/.vimrc +++ b/etc/skel/.vimrc @@ -3,7 +3,6 @@ " Authors: grml-team (grml.org), (c) Michael Prokop " Bug-Reports: see http://grml.org/bugs/ " License: This file is licensed under the GPL v2. -" Latest change: Don Jul 19 00:02:50 CEST 2007 [mika] "############################################################################### " Thanks to Sven Guckes for his template! "############################################################################### @@ -11,10 +10,10 @@ " be no-compatible with vi set nocp " turn these ON: - set digraph ek hidden ruler sc vb wmnu + set ek hidden ruler sc vb wmnu " set digraph " turn these OFF ("no" prefix): - set noeb noet nosol + set nodigraph noeb noet nosol " non-toggles: set bs=2 fo=cqrt ls=2 shm=at ww=<,>,h,l " set bs=2 fo=cqrt ls=2 shm=at tw=72 ww=<,>,h,l @@ -34,8 +33,9 @@ " some colors - as an example "white on black" [use bold fonts]: " hi normal ctermfg=white ctermbg=black guifg=white guibg=black " hi nontext ctermfg=blue ctermbg=black guifg=blue guibg=black -" switch on syntax coloring!! "bunt ist meine lieblingsfarbe!" :-) - syn on + if has("syntax") + syn on + endif " set t_Co=256 " number of colors " some useful mappings: @@ -118,7 +118,7 @@ if version >= 700 map :set spell!:echo "Spell Check: " . strpart("OffOn", 3 * &spell, 3) set spellfile=~/.vim/spellfile.add " change language - get spell files from http://ftp.vim.org/pub/vim/runtime/spell/ => - " cd ~/.vim/spell && wget http://ftp.vim.org/pub/vim/runtime/spell/de.latin1.spl + " cd ~/.vim/spell && wget http://ftp.vim.org/pub/vim/runtime/spell/de.{latin1,utf-8}.spl " change to german: " set spelllang=de " highlight spelling correction: