Skip to content

Commit 0c0a33f

Browse files
committed
Update by original
1 parent da56792 commit 0c0a33f

File tree

2 files changed

+26
-28
lines changed

2 files changed

+26
-28
lines changed

doc/change.jax

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim バージョン 9.1. Last change: 2025 Jun 23
1+
*change.txt* For Vim バージョン 9.1. Last change: 2025 Jun 25
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1948,34 +1948,33 @@ Vimには重複排除関数と重複排除コマンドがある。重複排除
19481948
[r] を指定すると、行全体ではなく /{pattern}/ にマッチ
19491949
するテキストに対して比較が行われる。
19501950

1951+
[u] を指定すると、繰り返されない行 (つまり、同じ行が直
1952+
後に続かない行) のみを保持する。
1953+
1954+
[!] を指定すると、直後に重複行がある行のみを保持する。
1955+
1956+
[!] と [u] の両方が指定された場合、[u] は無視され [!]
1957+
が適用される。
1958+
19511959
/{pattern}/ が指定され、[r] が使用されていない場合、
19521960
{pattern} にマッチするテキストはスキップされ、マッチの
19531961
後ろの部分で比較が行われる。
19541962
'ignorecase' はパターンに適用されるが、'smartcase'
19551963
使用されない。
1956-
19571964
スラッシュの代わりに、任意の非文字を使用できる。
19581965

19591966
例えば、2 番目のコンマ区切りフィールドに基づいて隣接す
19601967
る重複行を削除する場合: >
1961-
:uniq r /,[^,]*,/
1968+
:uniq /[^,]*,/
19621969
< または、最初の 5 文字を無視してユニークな行のみを保持
19631970
する場合: >
19641971
:uniq u /.\{5}/
19651972
< {pattern} が空の場合 (例えば、// が使用されている場
19661973
合)、最後の検索パターンが使用される。
19671974

1968-
[u] を指定すると、繰り返されない行 (つまり、同じ行が直
1969-
後に続かない行) のみを保持する。
1970-
1971-
[!] を指定すると、直後に重複行がある行のみを保持する。
1972-
1973-
[!] と [u] の両方が指定された場合、[u] は無視され [!]
1974-
が適用される。
1975-
1976-
Note 先頭と末尾の空白、および隣接していない行は重複と
1977-
はみなされないことに注意。位置に関係なくすべての重複を
1978-
削除するには、|:sort-u| または外部ツールを使用するこ
1979-
と。
1975+
Note 先頭と末尾の空白により、行が異なるものとして扱わ
1976+
れる場合があることに注意。
1977+
位置に関係なくすべての重複を削除するには、|:sort-u|
1978+
たは外部ツールを使用すること。
19801979

19811980
vim:tw=78:ts=8:noet:ft=help:norl:

en/change.txt

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim version 9.1. Last change: 2025 Jun 23
1+
*change.txt* For Vim version 9.1. Last change: 2025 Jun 25
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2014,12 +2014,20 @@ Also see |:sort-uniq|.
20142014
With [r] comparison is done on the text that matches
20152015
/{pattern}/ instead of the full line.
20162016

2017+
With [u] only keep lines that do not repeat (i.e., are
2018+
not immediately followed by the same line).
2019+
2020+
With [!] only keep lines that are immediately followed
2021+
by a duplicate.
2022+
2023+
If both [!] and [u] are given, [u] is ignored and [!]
2024+
takes effect.
2025+
20172026
When /{pattern}/ is specified and [r] is not used, the
20182027
text matched with {pattern} is skipped and comparison
20192028
is done on what comes after the match.
20202029
'ignorecase' applies to the pattern, but 'smartcase'
20212030
is not used.
2022-
20232031
Instead of the slash any non-letter can be used.
20242032

20252033
For example, to remove adjacent duplicate lines based
@@ -2031,17 +2039,8 @@ Also see |:sort-uniq|.
20312039
< If {pattern} is empty (e.g. // is used), the last
20322040
search pattern is used.
20332041

2034-
With [u] only keep lines that do not repeat (i.e., are
2035-
not immediately followed by the same line).
2036-
2037-
With [!] only keep lines that are immediately followed
2038-
by a duplicate.
2039-
2040-
If both [!] and [u] are given, [u] is ignored and [!]
2041-
takes effect.
2042-
2043-
Note that leading and trailing white space, and lines
2044-
that are not adjacent, are not considered duplicates.
2042+
Note that leading and trailing white space may cause
2043+
lines to be considered different.
20452044
To remove all duplicates regardless of position, use
20462045
|:sort-u| or external tools.
20472046

0 commit comments

Comments
 (0)