What is an effective sorting macro for row-striped data in vim? -


This is an extension of this question (which I previously asked):

< P>, but now I want to normalize N-Strip data

Then there will be an extension of this question - how would it be a generalization to unstipid the datastats?

Obviously, the above mentioned effectively is a 2-line destructive with every line, but what if we want to effectively sort the data down in this pattern, a 3 Delete the line? N-line distrip?

Before:

  111 222 333 444 555 666   

New post (if using 2-stripe): < / P>

  111 333 555 222 444 666   

New AFTER (3-straps are implemented as below):

  111 444 222 555 333 666   

This could be an algorithm name; There is not a strong background in my sorting, but maybe there is a name for this - if someone can give an explanation, please let me know.

Then, what I'm trying to do with the macro (or not) with parameters Here, for a solution, this sorting can also be effective in the utility space, but based on the answer to the previous question, I think it is viable in vimscript.

Then how do I create a scene for a screenplay (making the scene on the line selection), and then a user's macro function such as

 : '<', ' & Gt; Call distance (2): '& lt;', '& gt;' Caller Destrip (3)   

Where the single parameter describes stripping.

Another example (what I was trying to do, to be clear about this), if I have 3 data palettes

BEFORE (LHS) & amp; Later (RHS): aaa aaa bbb aaa ccc aaa aaa bbb bbb bbb ccc bbb aaa ccc bbb ccc ccc

with 2-bar An example data

Earlier (LHS) & amp; / div>

To be honest, if this is not done often, or if there are not too many bars, then just type the following on the command line (for three bars) you can probably see how Can be generalized.

 : Come on @ a = '' | Come on @b = '': g / ^ / + dA DB: Put one. Put b    

Comments