summaryrefslogtreecommitdiffstats
path: root/runtime/doc/editing.txt
diff options
context:
space:
mode:
authorNir Lichtman <nir_lichtman@hotmail.com>2021-12-24 20:28:03 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-24 20:28:03 +0000
commit73a024209cbfbd5b39a2e974084d807c6131e2ed (patch)
tree3fc4d2207a59fd3b0bb04e92d1a282e64e61c4a2 /runtime/doc/editing.txt
parent806da5176e9e9ab011d927c4ca33a8dde1769539 (diff)
patch 8.2.3888: the argument list may contain duplicatesv8.2.3888
Problem: The argument list may contain duplicates. Solution: Add the :argdedeupe command. (Nir Lichtman, closes #6235)
Diffstat (limited to 'runtime/doc/editing.txt')
-rw-r--r--runtime/doc/editing.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/runtime/doc/editing.txt b/runtime/doc/editing.txt
index 9736d4c481..fc4080cd8d 100644
--- a/runtime/doc/editing.txt
+++ b/runtime/doc/editing.txt
@@ -650,12 +650,19 @@ list of the current window.
And after the last one:
:+2argadd y a b c x y
There is no check for duplicates, it is possible to
- add a file to the argument list twice.
- The currently edited file is not changed.
+ add a file to the argument list twice. You can use
+ |:argdedupe| to fix it afterwards: >
+ :argadd *.txt | argdedupe
+< The currently edited file is not changed.
Note: you can also use this method: >
:args ## x
< This will add the "x" item and sort the new list.
+:argded[upe] *:argded* *:argdedupe*
+ Remove duplicate filenames from the argument list.
+ If your current file is a duplicate, your current file
+ will change to the original file index.
+
:argd[elete] {pattern} .. *:argd* *:argdelete* *E480* *E610*
Delete files from the argument list that match the
{pattern}s. {pattern} is used like a file pattern,