Skip to content

Commit

Permalink
change the way of version detect for undo persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyl committed Jun 21, 2014
1 parent 07e8a3d commit 0bec13a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ set noswapfile


"create undo file
set undolevels=1000 " How many undos
set undoreload=10000 " number of lines to save for undo
if v:version >= 730
    set undofile " keep a persistent backup file
set undodir=/tmp/vimundo/
if has('persistent_undo')
set undolevels=1000 " How many undos
set undoreload=10000 " number of lines to save for undo
set undofile " So is persistent undo ...
set undodir=/tmp/vimundo/
endif

set wildignore=*.swp,*.bak,*.pyc,*.class,.svn
Expand Down

0 comments on commit 0bec13a

Please sign in to comment.