vim sort 命令

Sort file content from Vim as shown below.

1.  :sort     -- Sort in ascending order

2. :sort!    -- Sort in descending order

3. :sort i   -- Ignore case while sorting

4. :sort u  -- Remove duplicate lines.

 

posted @ 2022-01-24 10:38  箫笛  阅读(932)  评论(0)    收藏  举报