sponsor Vim development Vim logo Vim Book Ad

CharSort : Functions and mappings to sort the characters in a string

 script karma  Rating -1/1, Downloaded by 1076  Comments, bugs, improvements  Vim wiki

created by
Christian J. Robinson
 
script type
utility
 
description
Mappings:
<lead>so  --  sort, case sensitive
<lead>si  --  sort, case insensitive

These mappings work in visual and normal mode--in normal mode they take a motion operator.  See ":help mapleader"

Function:
CharSort#Sort({string} [, {i/c}]) -- Sort {string}
    {i/c} == c  -- match case (default)
    {i/c} == i  -- ignore case
 
install details
Either source this file directly or put it in <runtimepath>/autoload and copy the following maps in the file to your vimrc.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
CharSort.vim 0.1 2007-07-16 7.0 Christian J. Robinson Initial upload
ip used for rating: 216.73.216.156

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github