aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Irish <paul.irish@gmail.com>2012-01-26 21:56:49 -0800
committerPaul Irish <paul.irish@gmail.com>2012-01-27 09:44:46 -0800
commit86a8986225a87716d31b21b966ea7f271751f888 (patch)
tree9ca937da4dab19790207e72cb114785177a427f9
parent4f575d23139ec978bfe8ce24b2a5f11aca04cb9b (diff)
downloaddotfiles-86a8986225a87716d31b21b966ea7f271751f888.tar.gz
dotfiles-86a8986225a87716d31b21b966ea7f271751f888.tar.bz2
dotfiles-86a8986225a87716d31b21b966ea7f271751f888.zip
nerfing .vimrc's setrelativenumber and undodir options in case of older vim version
-rw-r--r--.vimrc12
1 files changed, 8 insertions, 4 deletions
diff --git a/.vimrc b/.vimrc
index ba63e87..bffce0e 100644
--- a/.vimrc
+++ b/.vimrc
@@ -18,7 +18,9 @@ set noeol
" Centralize backups, swapfiles and undo history
set backupdir=~/.vim/backups
set directory=~/.vim/swaps
-set undodir=~/.vim/undo
+if exists("&undodir")
+ set undodir=~/.vim/undo
+endif
" Enable line numbers
set number
@@ -53,9 +55,11 @@ set shortmess=atI
set showmode
" Show the filename in the window titlebar
set title
-" Use relative line numbers
-set relativenumber
-au BufReadPost * set relativenumber
+if exists("&relativenumber")
+ " Use relative line numbers
+ set relativenumber
+ au BufReadPost * set relativenumber
+endif
" Start scrolling three lines before the horizontal window border
set scrolloff=3