Thursday, September 13, 2012

Re: How to ONLY sort part of a file and keep the format?

On Fri, September 14, 2012 01:15, Bee wrote:
>> I think, this will do:
>> :v/^^I/.,/^^I/-sort
>> where ^I is a literal tab.
>>
>> It also works using \t rather than the literal tab (^I):
>> :v/^\t/.,/^\t/-sort
>
> Either way I get:
> E16: Invalid range
>
> But the sort works!

Was there possibly a trailing empty line?

regards,
Christian

--
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

No comments: