Re: saving window setting
- Marian Csontos wrote:
> On Mon, 20 Jun 2005 15:17:06 +0200, <drchip@...> wrote:The settings you set in the :options window are set as soon as you hit
>> Quoting Pujo Aji <ajikoe@...>:
>>> 2. Edit setting windows.
>>> Whenever I try to save it, it always show error message:
>>> E382: cannot write, 'buftype' option is set
>> What is a "setting window"?
> :he :options
> this is not config file, it is only way how to configure your current
> running vim.
> it is not supposed to be saved. all you changed here and want make it
> persistent you must save to your .vimrc, for example by :mkvimrc (which
> saves .vimrc in your current working directory, so probably you want to
> copy it to $HOME, ~, or elsewhere depending on your demands)
> :he .vimrc
> :he :mkvimrc
> ________ Information from NOD32 ________
> This message was checked by NOD32 Antivirus System for Linux Mail Server.
<Enter>, they remain set until you close Vim.
":options" is *not* the only way to configure your current running Vim,
there is also the ":set" command (q.v.).
To keep an option value across Vim sessions, write the corresponding
":set" line in your vimrc. Examples (showing the line as it appears in
the ":options" window after you hit <Enter> on it):
In ":options" window:
autowriteall as 'autowrite', but works with more commands
set awa noawa
guifont list of font names to be used in the GUI
You need only add settings in your vimrc as you change them using
":options" or ":set": default settings need not be in the vimrc.