aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-12-02 12:48:32 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-12-02 12:48:32 +1300
commit4bb1d7afc631ab614908bbdd482dc3508bd189d0 (patch)
tree345bf19d09ca1c058a3cb1c9d39367a8e17a88bb /vim/vimrc
parentShell script syntax for /etc/default/* (diff)
downloaddotfiles-4bb1d7afc631ab614908bbdd482dc3508bd189d0.tar.gz
dotfiles-4bb1d7afc631ab614908bbdd482dc3508bd189d0.zip
Check persistent_undo feature before unsetting
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 5e5356bf..a53dc606 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -582,7 +582,9 @@ if has('eval') && has('autocmd')
setlocal nobackup
setlocal nowritebackup
setlocal noswapfile
- setlocal noundofile
+ if has('persistent_undo')
+ setlocal noundofile
+ endif
if exists('&synmaxcol')
setlocal synmaxcol=256
endif