jeudi 5 mars 2015

editing very long line, many columns in vim


I need to edit a file having columns and need help



1 0 0 0 1 1 0 0 1 1 1 1
1 1 0 1 0 0 0 1 0 0 0 0
1 0 0 0 1 1 0 0 1 1 1 1
1 1 0 1 0 0 0 1 0 0

0 0


it is a portion of file.


what I want is to add some comments on top of it, and then after every two line add a label e.g:



Z A B C D E F
MMSSSS
#A
1 0 0 0 1
1 1 0 1 0
#B
1 0 0 0 1
1 1 0 1 0


how can I do it in vim as I have 400 columns's line and when I open vim each row is spread accross many lines of screen.



Aucun commentaire:

Enregistrer un commentaire