diff options
author | Paul Irish <paul.irish@gmail.com> | 2012-01-26 21:56:49 -0800 |
---|---|---|
committer | Paul Irish <paul.irish@gmail.com> | 2012-01-27 09:44:46 -0800 |
commit | 86a8986225a87716d31b21b966ea7f271751f888 (patch) | |
tree | 9ca937da4dab19790207e72cb114785177a427f9 | |
parent | 4f575d23139ec978bfe8ce24b2a5f11aca04cb9b (diff) | |
download | dotfiles-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-- | .vimrc | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 |