diff options
author | watiko <service@mail.watiko.net> | 2016-02-20 17:45:51 +0900 |
---|---|---|
committer | watiko <service@mail.watiko.net> | 2016-03-02 17:32:24 +0900 |
commit | 313810ccada3b5f3dad73d8c376652533636f46b (patch) | |
tree | 384396be13e65ee2565fe7aa255a49c1c2c49d05 /runtime | |
parent | f6dca79f3aa2b55927a5f1cee4a6bf25d5c9bd37 (diff) | |
download | rneovim-313810ccada3b5f3dad73d8c376652533636f46b.tar.gz rneovim-313810ccada3b5f3dad73d8c376652533636f46b.tar.bz2 rneovim-313810ccada3b5f3dad73d8c376652533636f46b.zip |
vim-patch:7.4.1143
Problem: Can't sort on floating point numbers.
Solution: Add the "f" flag to ":sort". (Alex Jakushev) Also add the "f"
flag to sort().
https://github.com/vim/vim/commit/f7edf40448a09e04eec3bd05e043f7fea93b07c9
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/change.txt | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt index 861f736426..cc8699f21f 100644 --- a/runtime/doc/change.txt +++ b/runtime/doc/change.txt @@ -1646,7 +1646,7 @@ Vim has a sorting function and a sorting command. The sorting function can be found here: |sort()|, |uniq()|. *:sor* *:sort* -:[range]sor[t][!] [i][u][r][n][x][o][b] [/{pattern}/] +:[range]sor[t][!] [b][f][i][n][o][r][u][x] [/{pattern}/] Sort lines in [range]. When no range is given all lines are sorted. @@ -1654,10 +1654,18 @@ found here: |sort()|, |uniq()|. With [i] case is ignored. + Options [n][f][x][o][b] are mutually exclusive. + With [n] sorting is done on the first decimal number in the line (after or inside a {pattern} match). One leading '-' is included in the number. + With [f] sorting is done on the Float in the line. + The value of Float is determined similar to passing + the text (after or inside a {pattern} match) to + str2float() function. This option is available only + if Vim was compiled with Floating point support. + With [x] sorting is done on the first hexadecimal number in the line (after or inside a {pattern} match). A leading "0x" or "0X" is ignored. @@ -1669,10 +1677,10 @@ found here: |sort()|, |uniq()|. With [b] sorting is done on the first binary number in the line (after or inside a {pattern} match). - With [u] only keep the first of a sequence of - identical lines (ignoring case when [i] is used). - Without this flag, a sequence of identical lines - will be kept in their original order. + With [u] (u stands for unique) only keep the first of + a sequence of identical lines (ignoring case when [i] + is used). Without this flag, a sequence of identical + lines will be kept in their original order. Note that leading and trailing white space may cause lines to be different. |