Skip to content

Commit cb537ad

Browse files
committed
updated for version 7.4.165
Problem: By default, after closing a buffer changes can't be undone. Solution: In the example vimrc file set 'undofile'.
1 parent ff2b920 commit cb537ad

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

runtime/vimrc_example.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" An example for a vimrc file.
22
"
33
" Maintainer: Bram Moolenaar <[email protected]>
4-
" Last change: 2011 Apr 15
4+
" Last change: 2014 Feb 05
55
"
66
" To use it, copy it to
77
" for Unix and OS/2: ~/.vimrc
@@ -24,7 +24,8 @@ set backspace=indent,eol,start
2424
if has("vms")
2525
set nobackup " do not keep a backup file, use versions instead
2626
else
27-
set backup " keep a backup file
27+
set backup " keep a backup file (restore to previous version)
28+
set undofile " keep an undo file (undo changes after closing)
2829
endif
2930
set history=50 " keep 50 lines of command line history
3031
set ruler " show the cursor position all the time

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
165,
741743
/**/
742744
164,
743745
/**/

0 commit comments

Comments
 (0)