Re: Sorting columns in a file

2006-08-03 Thread Charles E Campbell Jr
Eric Leenman wrote: Hi, I have file which contains hexadecimal numbers like below: 04F --- 05F --- 052 --- 188 --- 2D4 --- 173 --- 040 --- 18D 051 --- 040 --- 05F --- 1CA --- 2E8 --- 14F --- 040 --- 1E2 051 --- 040 --- 069 --- 1B9 --- 2D7 --- 15E --- 040

Re: Sorting columns in a file

2006-08-03 Thread Eric Leenman
Yakov, Thanks, It works. Regards Eric [snip] Dr. Chip's vis.vim plugin to the rescue, again (*1). Dr. Chip's plugin allows more than substitute-in- visual-blocks. It allows you to apply external shell command to the visual block !, which is exactly what we need. 1. install Dr.Chip's visual

Re: Sorting columns in a file

2006-08-03 Thread Yakov Lerner
On 8/3/06, Eric Leenman <[EMAIL PROTECTED]> wrote: I have file which contains hexadecimal numbers like below: 04F --- 05F --- 052 --- 188 --- 2D4 --- 173 --- 040 --- 18D 051 --- 040 --- 05F --- 1CA --- 2E8 --- 14F --- 040 --- 1E2 051 --- 040 --- 069 --- 1B9 ---

Re: Sorting columns in a file

2006-08-03 Thread Eric Leenman
Hi Peter [snip] I am assuming you want to re-order the columns horizontally, in which case Sorry for not making my self clear. I want to re-order the columns vertical So column 1 is already OK, running from 04F ... ... 052 Column 2 should be 040 ... 040 045 046 052 05F ect. [snip] > I ha

Re: Sorting columns in a file

2006-08-03 Thread Peter Hodge
Hi Eric, I am assuming you want to re-order the columns horizontally, in which case Visual Block Mode is what you want. Press CTRL+V to start selecting a column, use 'x' to delete it, and 'P' (upper-case P) to paste it (I find upper-case P is more logical for Visual Block paste). HTH, regards, P

Sorting columns in a file

2006-08-02 Thread Eric Leenman
Hi, I have file which contains hexadecimal numbers like below: 04F --- 05F --- 052 --- 188 --- 2D4 --- 173 --- 040 --- 18D 051 --- 040 --- 05F --- 1CA --- 2E8 --- 14F --- 040 --- 1E2 051 --- 040 --- 069 --- 1B9 --- 2D7 --- 15E --- 040 --- 1A6 051 --- 0