linda.s wrote:
On 5/7/07, Michael Henry <[EMAIL PROTECTED]> wrote:

Try this in your .gvimrc:

set columns=78

I set columns=78 but when I opened vim editor, I found the editor's
column size to be 70. Why?

Linda,

Are you using a console version (text-mode only, typically invoked with `vim`) of Vim or a GUI version (graphical display, typically invoked with `gvim`)? If you are using a console version, settings in your .gvimrc won't be used.

In my limited testing, I can make my console-mode vim resize by putting this line in my ~/.vimrc:

set columns=120

I can also make it happen with the following one-liner invocation:

vim "+set columns=120"

It also works with gvim:

gvim "+set columns=120"

You may also want to test using the -N and -u NONE options:

vim -N -u NONE "+set columns=120"

(Feel free to change the number of columns to see if you are getting any effect.)

It may help others diagnose your problem if you mention which operating system you are using and how you are invoking vim (or gvim), as well as the contents of your .vimrc (and .gvimrc if using gvim).

Michael Henry

Reply via email to