meino.cramer wrote:
> is it possible to a portion of one line of text alphabetically?

There is an example using Python which sorts a whole line at:
http://vim.wikia.com/wiki/Use_filter_commands_to_process_text

You should provide a before-and-after example of what you mean.
Sort words in visually selected area in a single line?
Put result back into the line? What about punctuation?

It would be possible to do something like that with split() to
break some copied text into words, then sort() to sort them.
You may want the non-alpha characters to be omitted.

To illustrate:
    :let s = 'one, two, and three!'
    :put =join(sort(split(s, '\W\+')))

Result:
    and one three two

John

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to