diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-02-05 22:02:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-02-05 22:02:01 +0100 |
commit | 767568846b322a52cfbf21f048b1e9e968e393c5 (patch) | |
tree | 3375bb9b9e7790aed5bb4974a55706040c97e712 | |
parent | dd415a6c5acf5c7c054a16331b34f6b84f9c004d (diff) | |
download | vim-git-767568846b322a52cfbf21f048b1e9e968e393c5.tar.gz |
updated for version 7.4.165v7.4.165
Problem: By default, after closing a buffer changes can't be undone.
Solution: In the example vimrc file set 'undofile'.
-rw-r--r-- | runtime/vimrc_example.vim | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/runtime/vimrc_example.vim b/runtime/vimrc_example.vim index 3e9b56f0d..27a5cfc22 100644 --- a/runtime/vimrc_example.vim +++ b/runtime/vimrc_example.vim @@ -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 diff --git a/src/version.c b/src/version.c index 312653ea3..821feb943 100644 --- a/src/version.c +++ b/src/version.c @@ -739,6 +739,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 165, +/**/ 164, /**/ 163, |