Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " Catenating sequential columns
- " Barry Arthur, Aug 04, 2011
- function! MergeLines(cnt)
- normal 1G
- normal 10dd
- normal "a10dd
- normal "b10dd
- call setreg('a', getreg('a'), 'b')
- call setreg('b', getreg('b'), 'b')
- normal 1G0|
- normal ^VGI
- normal 1G2|
- normal ^VG"bP
- normal 1G0|
- normal ^VG"aP
- endfunction
Advertisement
Add Comment
Please, Sign In to add comment