diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-12-02 12:48:32 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-12-02 12:48:32 +1300 |
commit | 4bb1d7afc631ab614908bbdd482dc3508bd189d0 (patch) | |
tree | 345bf19d09ca1c058a3cb1c9d39367a8e17a88bb /vim/vimrc | |
parent | Shell script syntax for /etc/default/* (diff) | |
download | dotfiles-4bb1d7afc631ab614908bbdd482dc3508bd189d0.tar.gz dotfiles-4bb1d7afc631ab614908bbdd482dc3508bd189d0.zip |
Check persistent_undo feature before unsetting
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |