0

Due to security, tight control of user rights, and understaffed IT, I have very limited opportunities to upgrade my Cygwin installation. I am using netrw version v149 plugin for vim, which sorts files like so:

20181217.1904+20190101.1954.zip*
20181217.1904+20190102.1731.zip
20181217.1904.zip*

I find this odd, since bash lists the files like so:

20181217.1904.zip*
20181217.1904+20190101.1954.zip*
20181217.1904+20190102.1731.zip

In both cases, the sort is by file name, in ascending order. However, the netrw sort seems to treat the "+" character as preceding ".", while the reverse is true in the bash sort.

I find the latter to be much more useful, and wonder how it is that the plugin is using a different character precedence. Is there a simple and pain-free way to get the second sorting scheme in netrw v.149?

4

1 回答 1

0

这是可以做到的。就像打开说在 vim 中包含这些文件的目录一样。然后:

使用r键设置反向排序顺序
然后按s使用特定样式进行排序:按名称、时间或文件大小

希望这可以帮助你以某种方式交配。

编辑:如果你想一直说相反的顺序和特定的风格,那么将这些添加到你的 vim 配置文件中

let g:netrw_sort_by="time"                 "this chooses the style of sorting  
let g:netrw_sort_direction="reverse"       "this persists reverse sorting
于 2019-01-04T02:08:08.747 回答