Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was trying to customize gvim a bit. I see under the Edit menu is an option to change Settings Window. It opens up but then I get the following error.

E382 cannot write, 'buftype' option is set.

How do I write the options I change? Online I see people saying I need to add options to the vimrc file either in ~/.vimrc or /etc/vimrc or /etc/gvimrc. I thought that I would be able to do it directly through the gvim editor, not by adding options to my ~/.vimrc file.

share|improve this question
up vote 4 down vote accepted

A serious case of RTFM, on my account. The top few lines explain how to edit it.

" Each "set" line shows the current value of an option (on the left).
" Hit <CR> on a "set" line to execute it.
"            A boolean option will be toggled.
"            For other options you can edit the value.
" Hit <CR> on a help line to open a help window on this option.
" Hit <CR> on an index line to jump there.
" Hit <Space> on a "set" line to refresh it.

I then pressed Enter, and my setting took affect immediately

on line 155
lines   number of lines in the display
    set lines=50
share|improve this answer

I tried to save my setting (guifont) in gvim option window, but with no success. On the next launch, it always reverted to its previous state.

Then, I wrote the same line in ~/.vimrc, and it had the desired effect.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .