PDA

View Full Version : VIM question


krypto_wizard
April 12th, 2006, 11:46 AM
Hi,

I am an average VIM user and have this doubt.

As I write docment my right side goes to infinity. I mean suppose a line has 500 characters it shows all in one line. I want atmost only 80 char to be show and then automatically goto the next line for visual purposes.

What do I need to modify in .vimrc file.


Thanks

gnu2tux
April 12th, 2006, 12:13 PM
set textwidth=79

?

regards,

Al.

kabus
April 12th, 2006, 12:14 PM
set textwidth=80

shawnhcorey
April 13th, 2006, 08:25 AM
Open a VIM session, type the following and press RETURN:

:help ins-textwidth

This will give you a description of many formatting options.

shc