aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/change.txt
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-04-20 01:39:19 +0100
committerSean Dewar <seandewar@users.noreply.github.com>2021-04-20 10:12:10 +0100
commiteef5a627bfc4341fdd6f12ea5932d11b12fbf2c0 (patch)
tree1c7acf50056b84c83a1553894857c00427023cf5 /runtime/doc/change.txt
parentb530221126bd61edd081eded7afea6141cdef0dd (diff)
downloadrneovim-eef5a627bfc4341fdd6f12ea5932d11b12fbf2c0.tar.gz
rneovim-eef5a627bfc4341fdd6f12ea5932d11b12fbf2c0.tar.bz2
rneovim-eef5a627bfc4341fdd6f12ea5932d11b12fbf2c0.zip
doc: port changes for locale-based :sort
Cherry-picked from https://github.com/vim/vim/commit/3132cddd209ee510bde48b6520290cb26c8f604a.
Diffstat (limited to 'runtime/doc/change.txt')
-rw-r--r--runtime/doc/change.txt16
1 files changed, 9 insertions, 7 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt
index bdef544b2a..e353f3d209 100644
--- a/runtime/doc/change.txt
+++ b/runtime/doc/change.txt
@@ -1750,13 +1750,15 @@ found here: |sort()|, |uniq()|.
With [i] case is ignored.
- With [l] sort uses the current locale. See
- `language collate` to check or set the locale used
- for ordering. For example, with "en_US.UTF8",
- Ö will be ordered after O and before P,
- whereas with the Swedish locale "sv_SE.UTF8",
- it will be after Z.
- Case is typically ignored by the locale.
+ With [l] sort uses the current collation locale.
+ Implementation details: strcoll() is used to compare
+ strings. See |:language| to check or set the collation
+ locale. Example: >
+ :language collate en_US.UTF-8
+ :%sort l
+< |v:collate| can also used to check the current locale.
+ Sorting using the locale typically ignores case.
+ This does not work properly on Mac.
Options [n][f][x][o][b] are mutually exclusive.