Op woensdag 19 november 2008, schreef Ajay Jain:
> Hi,

Hi,

> When I write a C code, I would like to wrap up after say 80 columns.
> Can I do this in Vim? If yes, how? What are the related and useful
> commands to wrap around while coding?

:help wrap

eventually leads to 'textwidth', press <Ctrl>] to go to that help page.

so

:set textwidth=80

will set the maximum textwidth.

When you re-edit the already wrapped lines, visually select (press 'V') 
the lines you want to reformat and hit gq (or just use gq$ to format 
till the end of the line).

Regards,


Peter Palm

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to