1
- *editing.txt* For Vim version 9.1. Last change: 2024 Jan 14
1
+ *editing.txt* For Vim version 9.1. Last change: 2024 Apr 12
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -658,9 +658,12 @@ list of the current window.
658
658
659
659
:[count] arge[dit][!] [++opt] [+cmd] {name} .. *:arge* *:argedit*
660
660
Add {name} s to the argument list and edit it.
661
- When {name} already exists in the argument list, this
662
- entry is edited.
663
- This is like using | :argadd | and then | :edit | .
661
+ There is no check for duplicates, it is possible to
662
+ add a file to the argument list twice | :argded | .
663
+ This is like using | :argadd | and then | :edit | (with
664
+ the small exception that | :edit | does not change the
665
+ argument list, so the argument list pointer isn't
666
+ changed).
664
667
Spaces in filenames have to be escaped with "\".
665
668
[count] is used like with | :argadd | .
666
669
If the current file cannot be | abandon | ed {name} s will
@@ -679,12 +682,12 @@ list of the current window.
679
682
If the argument list is "a b c", and "b" is the
680
683
current argument, then these commands result in:
681
684
command new argument list ~
682
- :argadd x a b x c
683
- :0argadd x x a b c
684
- :1argadd x a x b c
685
- :$argadd x a b c x
685
+ :argadd x a [b] x c
686
+ :0argadd x x a [b] c
687
+ :1argadd x a x [b] c
688
+ :$argadd x a [b] c x
686
689
And after the last one:
687
- :+2argadd y a b c x y
690
+ :+2argadd y a [b] c x y
688
691
There is no check for duplicates, it is possible to
689
692
add a file to the argument list twice. You can use
690
693
| :argdedupe | to fix it afterwards: >
0 commit comments