如果你安有 python3 或者 python 支持的话,可以
:py3 import vim
:py3 vim.current.buffer[:] = list(sorted(vim.current.buffer, key=len))
vim 按字符长度排序
最新推荐文章于 2022-08-01 22:56:05 发布
如果你安有 python3 或者 python 支持的话,可以
:py3 import vim
:py3 vim.current.buffer[:] = list(sorted(vim.current.buffer, key=len))