When I execute the ":options" command from a read-only buffer, as 
for example when vim is started like this:

   view -N -u NONE

I get the following error messages:

   Error detected while processing 
/home/garyjohn/src/Linux/vim-7.1/share/vim/vim71/optwin.vim:
   line  153:
   W10: Warning: Changing a readonly file

The attached patch fixes this problem by modifying optwin.vim to set
'noreadonly' in the option-window.

Vim version is 7.1.297 and optwin.vim is dated 2008 Jan 22.

Regards,
Gary

----------------------------- cut here -----------------------------
*** optwin.vim.orig     Wed May  7 17:46:44 2008
--- optwin.vim  Mon May 12 11:11:20 2008
***************
*** 147,152 ****
--- 147,153 ----
  
  " Open the window
  new option-window
+ setlocal noreadonly
  setlocal ts=15 tw=0
  
  " Insert help and a "set" command for each option.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui