I have a file that looks like this:
1 148 1 4
2 333 1 3
3 534 2 3
4 772 g 7
5 921 p 2
I want to wrest text from row 1 to 5 and from column 1 to 7:
1 148 1
2 333 1
3 534 2
4 772 g
5 921 p
Can I do this from the vim command line? If i print
:1,5ya a
the whole row is case-a-bound, and I only need certain columns.
Thank.
source
share