From: Simon Ruderich Date: Tue, 3 Feb 2009 13:37:14 +0000 (+0100) Subject: Be Vim 6 compatible. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=f00e64bea12ae41e20f800c6fcb1b644bf1eb23e;p=config%2Fdotfiles.git Be Vim 6 compatible. --- diff --git a/vimrc b/vimrc index 5f64fc3..5d39f34 100644 --- a/vimrc +++ b/vimrc @@ -55,8 +55,10 @@ set ignorecase set smartcase " Activate spell checking, use English as default. -set spell -set spelllang=en_us +if v:version >= 700 + set spell + set spelllang=en_us +endif " DISPLAY SETTINGS @@ -72,7 +74,9 @@ set ruler set showcmd " Visualize the line the cursor is currently in. -set cursorline +if v:version >= 700 + set cursorline +endif " Display tabs as "^I" and trailing space as "-". set list