Undofile independent of the Vim version
问题 I'm using the Vim 7.3 feature undofile the following way: if version >= 703 set undofile set undodir=$HOME/.vim/undo set undolevels=1000 set undoreload=10000 endif I am using the same .vimrc and the same files (within a cloud storage) on different machines which do not support Vim 7.3 but use the old 7.2 version which does not support undofile out of box. Is there a solution for the 7.2 version compatible with the 7.3 undofile? 回答1: version check Because persistent undo was introduced with