![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vi editor | jazz | High Level Programming | 2 | 05-08-2009 09:46 AM |
| regarding vi editor | girish_shukla | SCO | 4 | 11-19-2008 10:36 PM |
| set EDITOR=vi -> default editor not setting for cron tab | aarora_98 | Shell Programming and Scripting | 6 | 09-13-2008 03:01 AM |
| Which editor to use? | Nafanja | UNIX for Dummies Questions & Answers | 5 | 11-29-2007 12:58 PM |
| vi editor | eloquent99 | UNIX for Dummies Questions & Answers | 1 | 01-14-2003 05:49 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hello everbody...
I am a new unix user and I started working with the vi editor, i have a little question for you, so hope that you can help me here is the question: How I can to change the screen width from 80 to 132 columns ?? What´s the command for do that?? I very appreciate your help... Thanks to all |
|
|||||
|
vi help
I know that you question was not about vi specifically, but here is some good info for VI related questions.
If when you vi a file, type this while in vi mode. ":set all" this will show you everything that is available to be set in vi mode. To add line numbers type ":set number". To unset this just type ":set nonumber". There are many settings that you can control in vi. Also, you can create an .exrc file that controls your vi parameters. You probably already have one in your home directory. Do a "man vi" scroll down to "Program Limits". This will show you the internal limits for vi. Here is an excerpt from there. Program Limits vi places the following limits on files being edited. Maximum Line Length LINE_MAX characters (defined in <limits.h>), including 2-3 bytes for overhead. Thus, if the value specified for LINE_MAX is 2048, a line length up to 2044 characters should cause no problem. If you load a file that contain lines longer than the specified limit, the lines are truncated to the stated maximum length. Saving the file will write the truncated version over the original file, thus overwriting the original lines completely. Attempting to create lines longer than the allowable maximum for the editor produces a line too long error message. Maximum File Size The maximum file length of 234,239 lines is silently enforced. O'Reilly has 2 very good books on vi. One is the full size book on VI, about $30. The other book is the condensed version of this book. Only about $10. Very good books! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|