1- *editing.txt* For Vim version 8.1. Last change: 2019 May 05
1+ *editing.txt* For Vim version 8.1. Last change: 2019 May 07
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -51,7 +51,7 @@ for editing (e.g., with ":e filename") or writing (e.g., with ":w filename"),
5151the file name is added to the list. You can use the buffer list to remember
5252which files you edited and to quickly switch from one file to another (e.g.,
5353to copy text) with the | CTRL-^ | command. First type the number of the file
54- and then hit CTRL-^ . {Vi: only one alternate file name is remembered}
54+ and then hit CTRL-^ .
5555
5656
5757CTRL-G or *CTRL-G* *:f* *:fi* *:file*
@@ -197,15 +197,13 @@ If you want to keep the changed buffer without saving it, switch on the
197197 buffer and 'autowriteall' isn't set or the file can't
198198 be written.
199199 Also see | ++opt | and | +cmd | .
200- {Vi: no ++opt}
201200
202201 *:edit!* *discard*
203202:e[dit]! [++opt] [+cmd]
204203 Edit the current file always. Discard any changes to
205204 the current buffer. This is useful if you want to
206205 start all over again.
207206 Also see | ++opt | and | +cmd | .
208- {Vi: no ++opt}
209207
210208 *:edit_f*
211209:e[dit] [++opt] [+cmd] {file}
@@ -214,22 +212,19 @@ If you want to keep the changed buffer without saving it, switch on the
214212 buffer, unless 'hidden' is set or 'autowriteall' is
215213 set and the file can be written.
216214 Also see | ++opt | and | +cmd | .
217- {Vi: no ++opt}
218215
219216 *:edit!_f*
220217:e[dit]! [++opt] [+cmd] {file}
221218 Edit {file} always. Discard any changes to the
222219 current buffer.
223220 Also see | ++opt | and | +cmd | .
224- {Vi: no ++opt}
225221
226222:e[dit] [++opt] [+cmd] #[count]
227223 Edit the [count] th buffer (as shown by | :files | ).
228224 This command does the same as [count] CTRL-^ . But ":e
229225 #" doesn't work if the alternate buffer doesn't have a
230226 file name, while CTRL-^ still works then.
231227 Also see | ++opt | and | +cmd | .
232- {Vi: no ++opt}
233228
234229 *:ene* *:enew*
235230:ene[w] Edit a new, unnamed buffer. This fails when changes
@@ -607,14 +602,12 @@ list of the current window.
607602 the first one. This fails when changes have been made
608603 and Vim does not want to | abandon | the current buffer.
609604 Also see | ++opt | and | +cmd | .
610- {Vi: no ++opt}
611605
612606:ar[gs]! [++opt] [+cmd] {arglist} *:args_f!*
613607 Define {arglist} as the new argument list and edit
614608 the first one. Discard any changes to the current
615609 buffer.
616610 Also see | ++opt | and | +cmd | .
617- {Vi: no ++opt}
618611
619612:[count] arge[dit][!] [++opt] [+cmd] {name} .. *:arge* *:argedit*
620613 Add {name} s to the argument list and edit it.
@@ -693,13 +686,11 @@ list of the current window.
693686:[count] n[ext] [++opt] [+cmd] *:n* *:ne* *:next* *E165* *E163*
694687 Edit [count] next file. This fails when changes have
695688 been made and Vim does not want to | abandon | the
696- current buffer. Also see | ++opt | and | +cmd | . {Vi: no
697- count or ++opt}.
689+ current buffer. Also see | ++opt | and | +cmd | .
698690
699691:[count] n[ext]! [++opt] [+cmd]
700692 Edit [count] next file, discard any changes to the
701- buffer. Also see | ++opt | and | +cmd | . {Vi: no count
702- or ++opt}.
693+ buffer. Also see | ++opt | and | +cmd | .
703694
704695:n[ext] [++opt] [+cmd] {arglist} *:next_f*
705696 Same as | :args_f | .
@@ -716,18 +707,17 @@ list of the current window.
716707:[count] N[ext]! [count] [++opt] [+cmd]
717708 Edit [count] previous file in argument list. Discard
718709 any changes to the buffer. Also see | ++opt | and
719- | +cmd | . {Vi: no count or ++opt}.
710+ | +cmd | .
720711
721712:[count] prev[ious] [count] [++opt] [+cmd] *:prev* *:previous*
722- Same as :Next. Also see | ++opt | and | +cmd | . {Vi:
723- only in some versions}
713+ Same as :Next. Also see | ++opt | and | +cmd | .
724714
725715 *:rew* *:rewind*
726716:rew[ind] [++opt] [+cmd]
727717 Start editing the first file in the argument list.
728718 This fails when changes have been made and Vim does
729719 not want to | abandon | the current buffer.
730- Also see | ++opt | and | +cmd | . {Vi: no ++opt}
720+ Also see | ++opt | and | +cmd | .
731721
732722:rew[ind]! [++opt] [+cmd]
733723 Start editing the first file in the argument list.
@@ -1335,7 +1325,7 @@ present in 'cpoptions' and "!" is not used in the command.
13351325:lch[dir][!] Same as | :lcd | .
13361326
13371327 *:pw* *:pwd* *E187*
1338- :pw[d] Print the current directory name. {Vi: no pwd}
1328+ :pw[d] Print the current directory name.
13391329 Also see | getcwd() | .
13401330
13411331So long as no | :lcd | or | :tcd | command has been used, all windows share the
0 commit comments