mark wrote:

I want too change the order of three lines globally (there are thousands
of entries that need reordering) and don't seem to be able
to get my head around how to do it with vi.

I want to change the order off these three
1=red
2=blue
3=orange

into

3=orange
2=blue
1=red

Is this a case of reverse ordering lines?  If so:

go to the 1=red line, type  ma
go to the 3=orange line, type \fr

where you've previously defined \fr as:

nno <silent> <Leader>fr :set lz<cr>'aO<esc>ma'':'a+1,.g/^/m 'a<cr>kdd:set lz!<cr>

Regards,
Chip Campbell

Reply via email to