Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 159 lines (136 sloc) 8.336 kb
cc9aa96 @chrisbra New Release 0.5
authored
1 *recover.vim* Show differences for recovered files
37b0143 @chrisbra Checkin of Vimball Version
authored
2
3 Author: Christian Brabandt <cb@256bit.org>
3f5dbc9 @chrisbra This is release 0.14
authored
4 Version: 0.14 Sat, 31 Mar 2012 13:29:07 +0200
cc9aa96 @chrisbra New Release 0.5
authored
5 Copyright: (c) 2009, 2010 by Christian Brabandt
e231483 @chrisbra Reworked the code a little bit
authored
6 The VIM LICENSE applies to recoverPlugin.vim and recoverPlugin.txt
7 (see |copyright|) except use recoverPlugin instead of "Vim".
cc9aa96 @chrisbra New Release 0.5
authored
8 NO WARRANTY, EXPRESS OR IMPLIED. USE AT-YOUR-OWN-RISK.
37b0143 @chrisbra Checkin of Vimball Version
authored
9
10
11 ==============================================================================
cc9aa96 @chrisbra New Release 0.5
authored
12 1. Contents *recoverPlugin*
37b0143 @chrisbra Checkin of Vimball Version
authored
13
cc9aa96 @chrisbra New Release 0.5
authored
14 1. Contents.....................................: |recoverPlugin|
15 2. recover Manual...............................: |recover-manual|
036d677 @chrisbra put cursor on first line
authored
16 3. recover Feedback.............................: |recover-feedback|
90776da @chrisbra Fix a small typo
authored
17 4. recover History..............................: |recover-history|
37b0143 @chrisbra Checkin of Vimball Version
authored
18
19 ==============================================================================
5b65025 @chrisbra This is release 0.9
authored
20 2. RecoverPlugin Manual *recover-manual*
37b0143 @chrisbra Checkin of Vimball Version
authored
21
22 Functionality
23
24 When using |recovery|, it is hard to tell, what has been changed between the
25 recovered file and the actual on disk version. The aim of this plugin is, to
26 have an easy way to see differences, between the recovered files and the files
18f4b36 @chrisbra This is version 0.6
authored
27 stored on disk.
37b0143 @chrisbra Checkin of Vimball Version
authored
28
29 Therefore this plugin sets up an auto command, that will create a diff buffer
30 between the recovered file and the on-disk version of the same file. You can
31 easily see, what has been changed and save your recovered work back to the
32 file on disk.
33
34 By default this plugin is enabled. To disable it, use >
35 :RecoverPluginDisable
5b65025 @chrisbra This is release 0.9
authored
36 <
37b0143 @chrisbra Checkin of Vimball Version
authored
37 To enable this plugin again, use >
38 :RecoverPluginEnable
5b65025 @chrisbra This is release 0.9
authored
39 <
18f4b36 @chrisbra This is version 0.6
authored
40 When you open a file and vim detects, that an |swap-file| already exists for a
41 buffer, the plugin will ask you, if you'd like to see a diff of both versions
42 using |vimdiff|. In the dialog answer 'Yes' to open the file and display a
43 diff version or 'No' to open the file normally.
44
45 If you have said 'Yes', the plugin opens a new vertical splitt buffer. On the
46 left side, you'll find the file as it is stored on disk and the right side
47 will contain your recovered version of the file (using the found swap file).
48
49 You can now use the |merge| commands to copy the contents to the buffer that
50 holds your recovered version. If you are finished, you can close the diff
51 version and close the window, by issuing |:diffoff!| and |:close| in the
52 window, that contains the on-disk version of the file. Be sure to save the
53 recovered version of you file and afterwards you can safely remove the swap
5185fb6 @chrisbra Release 0.7
authored
54 file.
5b65025 @chrisbra This is release 0.9
authored
55 *RecoverPluginFinish* *FinishRecovery*
5185fb6 @chrisbra Release 0.7
authored
56 In the recovered window, the command >
57 :FinishRecovery
18f4b36 @chrisbra This is version 0.6
authored
58 <
5b65025 @chrisbra This is release 0.9
authored
59 deletes the swapfile closes the diff window and finishes everything up.
60
61 Alternatively you can also use the command >
62 :RecoveryPluginFinish
63 <
64
65 *RecoverPluginHelp*
66 The command >
67 :RecoverPluginHelp
68 <
69 show a small message, on what keys can be used to move to the next different
70 region and how to merge the changes from one windo into the other.
71
72 *RecoverPlugin-misc*
18f4b36 @chrisbra This is version 0.6
authored
73
32dbd35 @chrisbra This is release 0.4 (see :h recover-history)
authored
74 If your Vim was built with |+balloon_eval|, recover.vim will also set up an
75 balloon expression, that shows you, which buffer contains the recovered
76 version of your file and which buffer contains the unmodified on-disk version
77 of your file, if you move the mouse of the buffer. (See |balloon-eval|).
78
79 If you have setup your 'statusline', recover.vim will also inject some info
80 (which buffer contains the on-disk version and which buffer contains the
81 modified, recovered version). Additionally the buffer that is read-only, will
82 have a filename (|:f|) of something like 'original file (on disk-version)'. If
83 you want to save that version, use |:saveas|.
37b0143 @chrisbra Checkin of Vimball Version
authored
84
85 ==============================================================================
c0dfdf6 @chrisbra minor documentation issue
authored
86 3. Plugin Feedback *recover-feedback*
90776da @chrisbra Fix a small typo
authored
87
88 Feedback is always welcome. If you like the plugin, please rate it at the
89 vim-page:
90 http://www.vim.org/scripts/script.php?script_id=3068
91
92 You can also follow the development of the plugin at github:
93 http://github.com/chrisbra/Recover.vim
94
95 Please don't hesitate to report any bugs to the maintainer, mentioned in the
96 third line of this document.
97
98 ==============================================================================
99 4. recover History *recover-history*
3f5dbc9 @chrisbra This is release 0.14
authored
100 0.14: Mar 31, 2012 : still some problems with issue #4
a00f300 @chrisbra This is release 0.13
authored
101 0.13: Mar 29, 2012 : fix issue 3 (
47368d5 @chrisbra fix issue #4, ask user if swapfile needs to be deleted
authored
102 https://github.com/chrisbra/Recover.vim/issues/3
103 reported by lyokha, thanks!)
104 : Ask the user to delete the swapfile
105 (issue
106 https://github.com/chrisbra/Recover.vim/issues/4
107 reported by lyokha, thanks!)
3dad21f @chrisbra Release 0.12
authored
108 0.12: Mar 25, 2012 : minor documentation update
109 : delete swap files, if no difference found
110 (issue
111 https://github.com/chrisbra/Recover.vim/issues/1
112 reported by y, thanks!)
113 : fix some small issues, that prevented the
114 development versions from working
115 (https://github.com/chrisbra/Recover.vim/issues/2
116 reported by Rahul Kumar, thanks!)
13c9264 @chrisbra small changes in help files
authored
117 0.11: Oct 19, 2010 : use confirm() instead of inputdialog()
db62e91 @chrisbra Release 0.11
authored
118 (suggested by D.Fishburn, thanks!)
5b65025 @chrisbra This is release 0.9
authored
119 0.9: Jun 02, 2010 : use feedkeys(...,'t') instead of feedkeys()
8f4287a @chrisbra delete spurious history entries
authored
120 (this works more reliable, although it
121 pollutes the history), so delete those
5b65025 @chrisbra This is release 0.9
authored
122 spurious history entries
123 : |RecoverPluginHelp| shows a small help
124 message, about diff commands (suggested by
125 David Fishburn, thanks!)
126 : |RecoverPluginFinish| is a shortcut for
127 |FinishRecovery|
a7267b4 @chrisbra Release 0.8
authored
128 0.8: Jun 01, 2010 : make :FinishRecovery more robust
5185fb6 @chrisbra Release 0.7
authored
129 0.7: Jun 01, 2010 : |FinishRecovery| closes the diff-window and
c42514b @chrisbra This is Version 0.8
authored
130 cleans everything up (suggestion by
131 David Fishburn)
5185fb6 @chrisbra Release 0.7
authored
132 : :DeleteSwapFile is not needed anymore
18f4b36 @chrisbra This is version 0.6
authored
133 0.6: May 31, 2010 : |recover-feedback|
134 : Ask to really open a diff buffer for a
135 file (suggestion: David Fishburn, thanks!)
136 : DeleteSwapFile to delete the swap file, that
137 was used to create the diff buffer
138 : change feedkeys(...,'t') to feedkeys('..')
139 so that not every command appears in the
140 history.
cc9aa96 @chrisbra New Release 0.5
authored
141 0.5: May 04, 2010 :0r command in recover plugin adds extra \n
142 Patch by Sergey Khorev (Thanks!)
143 : generate help file with 'et' set, so the
144 README at github looks prettier
145 0.4: Apr 26, 2010 : handle Windows and Unix path differently
146 : Code cleanup
147 : Enabled |:GLVS|
148 0.3: Apr 20, 2010 : first public verion
149 : put plugin on a public repository
150 (http://github.com/chrisbra/Recover.vim)
151 0.2: Apr 18, 2010 : Internal version, some cleanup,
152 bugfixes for windows
153 0.1: Apr 17, 2010 : Internal version, First working version,
154 using simple commands
37b0143 @chrisbra Checkin of Vimball Version
authored
155
156 ==============================================================================
157 Modeline:
cc9aa96 @chrisbra New Release 0.5
authored
158 vim:tw=78:ts=8:ft=help:et
Something went wrong with that request. Please try again.