text wrap in vim

To wrap a source code to 80 columns to:

:set tw=80
v (enter visual mode)
select the text
gq