]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.165 v7.4.165
authorBram Moolenaar <Bram@vim.org>
Wed, 5 Feb 2014 21:02:01 +0000 (22:02 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 5 Feb 2014 21:02:01 +0000 (22:02 +0100)
Problem:    By default, after closing a buffer changes can't be undone.
Solution:   In the example vimrc file set 'undofile'.

runtime/vimrc_example.vim
src/version.c

index 3e9b56f0dbe75236aa1527861674612f5963ed72..27a5cfc222f500959a4e36f4710163ab03b265e2 100644 (file)
@@ -1,7 +1,7 @@
 " An example for a vimrc file.
 "
 " Maintainer:  Bram Moolenaar <Bram@vim.org>
-" Last change: 2011 Apr 15
+" Last change: 2014 Feb 05
 "
 " To use it, copy it to
 "     for Unix and OS/2:  ~/.vimrc
@@ -24,7 +24,8 @@ set backspace=indent,eol,start
 if has("vms")
   set nobackup         " do not keep a backup file, use versions instead
 else
-  set backup           " keep a backup file
+  set backup           " keep a backup file (restore to previous version)
+  set undofile         " keep an undo file (undo changes after closing)
 endif
 set history=50         " keep 50 lines of command line history
 set ruler              " show the cursor position all the time
index 312653ea38377b4b00a98e500a8a9cb74d1cd148..821feb943b913341e5111a8acec7fdd872c3dce6 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    165,
 /**/
     164,
 /**/