sponsor Vim development Vim logo Vim Book Ad

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

 script karma  Rating 0/0, Downloaded by 416    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: 54.91.9.248

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo