cream-sort : sort a file by lines
| script karma
Downloaded by 1617
Comments, bugs, improvements
script versions (upload new version)
:call Cream_sortfile() will sort the current file alphabetically by line. User is prompted to choose the column of the sort. The function uses the operating system's sort command (both Windows or Unix) for speed since our original use was for 7mb dictionary wordlists(!). (cream-sort actually creates and sorts a temp file copied from the current to preserve the original file since it would be destroyed by the OS during the process.)
Please notice three other sort libraries included within the script below the advertised first one. They were "research" during the project and may serve certain users better than ours!
This is one of the many custom utilities and functions for gVim from the Cream project (http://cream.sourceforge.net), a configuration of Vim in the vein of Apple and Windows software you already know.
Just copy this file and paste it into your vimrc. Or you can drop the entire file into your plugins directory.
Click on the package to download.
ip used for rating: 18.104.22.168
||* Quote path/filenames on Windows to handle spaces
* Added requirement that file be named (external redirection methods
* Added prompt to save modified file before proceeding