comparison runtime/doc/usr_11.txt @ 2033:de5a43c5eedc

Update documentation files.
author Bram Moolenaar <bram@zimbu.org>
date Wed, 06 Jan 2010 20:52:26 +0100
parents 5232b9862f23
children 7c8c7c95a865
comparison
equal deleted inserted replaced
2032:592032e9e167 2033:de5a43c5eedc
1 *usr_11.txt* For Vim version 7.2. Last change: 2006 Apr 24 1 *usr_11.txt* For Vim version 7.2. Last change: 2009 Oct 29
2 2
3 VIM USER MANUAL - by Bram Moolenaar 3 VIM USER MANUAL - by Bram Moolenaar
4 4
5 Recovering from a crash 5 Recovering from a crash
6 6
7 7
8 Did your computer crash? And you just spent hours editing? Don't panic! Vim 8 Did your computer crash? And you just spent hours editing? Don't panic! Vim
9 keeps enough information on harddisk to be able to restore most of your work. 9 stores enough information to be able to restore most of your work. This
10 This chapter shows you how to get your work back and explains how the swap 10 chapter shows you how to get your work back and explains how the swap file is
11 file is used. 11 used.
12 12
13 |11.1| Basic recovery 13 |11.1| Basic recovery
14 |11.2| Where is the swap file? 14 |11.2| Where is the swap file?
15 |11.3| Crashed or not? 15 |11.3| Crashed or not?
16 |11.4| Further reading 16 |11.4| Further reading
109 109
110 Example: > 110 Example: >
111 vim -r .help.txt.swo 111 vim -r .help.txt.swo
112 112
113 This is also handy when the swap file is in another directory than expected. 113 This is also handy when the swap file is in another directory than expected.
114 Vim recognizes files with the pattern *.s[uvw][a-z] as swap files.
115
114 If this still does not work, see what file names Vim reports and rename the 116 If this still does not work, see what file names Vim reports and rename the
115 files accordingly. Check the 'directory' option to see where Vim may have 117 files accordingly. Check the 'directory' option to see where Vim may have
116 put the swap file. 118 put the swap file.
117 119
118 Note: 120 Note:
212 You may want to view the file read-only at first (if you can), to see the 214 You may want to view the file read-only at first (if you can), to see the
213 extent of the changes that were "forgotten". If you are the one in charge of 215 extent of the changes that were "forgotten". If you are the one in charge of
214 that file, be prepared to redo your last changes. 216 that file, be prepared to redo your last changes.
215 217
216 218
217 WHAT TO DO? 219 WHAT TO DO? *swap-exists-choices*
218 220
219 If dialogs are supported you will be asked to select one of five choices: 221 If dialogs are supported you will be asked to select one of five choices:
220 222
221 Swap file ".main.c.swp" already exists! ~ 223 Swap file ".main.c.swp" already exists! ~
222 [O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort, (D)elete it: ~ 224 [O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort, (D)elete it: ~