vim-patch:9.1.1477: no easy way to deduplicate text

Problem:  no easy way to deduplicate text
Solution: add the :uniq ex command
          (Hirohito Higashi)

closes: vim/vim#17538

74f0a77bb9

Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
This commit is contained in:
zeertzjq
2025-06-24 08:05:32 +08:00
parent d9465e984b
commit 7138cdaef8
10 changed files with 885 additions and 6 deletions

View File

@@ -10612,6 +10612,7 @@ function vim.fn.undotree(buf) end
--- let newlist = uniq(copy(mylist))
--- <The default compare function uses the string representation of
--- each item. For the use of {func} and {dict} see |sort()|.
--- For deduplicating text in the current buffer see |:uniq|.
---
--- Returns zero if {list} is not a |List|.
---