viで textwidth と formatoptions 使えばできるんじゃね?