comparison runtime/doc/editing.txt @ 5277:42bf9264e64e

Update runtime files.
author Bram Moolenaar <bram@vim.org>
date Sat, 03 Aug 2013 18:35:36 +0200
parents 09c88160095d
children 359743c1f59a
comparison
equal deleted inserted replaced
5276:be570e7912d6 5277:42bf9264e64e
1 *editing.txt* For Vim version 7.4b. Last change: 2013 Feb 07 1 *editing.txt* For Vim version 7.4b. Last change: 2013 Aug 03
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
183 If you want to automatically save the changes without asking, switch on the 183 If you want to automatically save the changes without asking, switch on the
184 'autowriteall' option. 'autowrite' is the associated Vi-compatible option 184 'autowriteall' option. 'autowrite' is the associated Vi-compatible option
185 that does not work for all commands. 185 that does not work for all commands.
186 186
187 If you want to keep the changed buffer without saving it, switch on the 187 If you want to keep the changed buffer without saving it, switch on the
188 'hidden' option. See |hidden-buffer|. 188 'hidden' option. See |hidden-buffer|. Some commands work like this even when
189 'hidden' is not set, check the help for the command.
189 190
190 ============================================================================== 191 ==============================================================================
191 2. Editing a file *edit-a-file* 192 2. Editing a file *edit-a-file*
192 193
193 *:e* *:edit* 194 *:e* *:edit* *reload*
194 :e[dit] [++opt] [+cmd] Edit the current file. This is useful to re-edit the 195 :e[dit] [++opt] [+cmd] Edit the current file. This is useful to re-edit the
195 current file, when it has been changed outside of Vim. 196 current file, when it has been changed outside of Vim.
196 This fails when changes have been made to the current 197 This fails when changes have been made to the current
197 buffer and 'autowriteall' isn't set or the file can't 198 buffer and 'autowriteall' isn't set or the file can't
198 be written. 199 be written.
199 Also see |++opt| and |+cmd|. 200 Also see |++opt| and |+cmd|.
200 {Vi: no ++opt} 201 {Vi: no ++opt}
201 202
202 *:edit!* 203 *:edit!* *discard*
203 :e[dit]! [++opt] [+cmd] 204 :e[dit]! [++opt] [+cmd]
204 Edit the current file always. Discard any changes to 205 Edit the current file always. Discard any changes to
205 the current buffer. This is useful if you want to 206 the current buffer. This is useful if you want to
206 start all over again. 207 start all over again.
207 Also see |++opt| and |+cmd|. 208 Also see |++opt| and |+cmd|.