I know I can use Awk, but I am on a Windows box, and I am making a function for others that may not have Awk. I also know I can write a C program, but I would love not to have s
Charles Duffy's code could be shortened/improved using izip_longest instead of izip:
izip_longest
izip
function! Rotate() :py import vim, itertools :py vim.current.buffer[:] = [''.join(c) for c in itertools.izip_longest(*vim.current.buffer, fillvalue=" ")] endfunction