vim

Limit text width with Vim

To limit the length of a line to say 80 characters we simply use

	:set tw=80
Now suppose that there are lines with more than 80 characters, how do we limit the number of char to 80 char max? A fast and elegant way is to select those line and type g_w (type g and after that type w).
Tags: 
Subscribe to RSS - vim