Hi,
Linda W wrote:
>
> Another special case...how to get vim to stop resetting the read only
> flag with each
> write!?
>
> can't put it in .vimrc, as it is read before menu.vim, also tried it in
> .gvim, but
> apparently it isn't allowed at that point...
>
> So looks like the only way is to modify the source?
>
> Or am I missing something less drastic...
>
>
> One would think setting an option in .vimrc would be honored rather than
> overwritten
> by vim's menus...
if I read :help cpo-Z correctly you should *add* 'Z' to 'cpoptions' to
stop Vim from resetting the 'readonly' option, not *remove* it.
But apart from that are you sure that menu.vim is the culprit? When I
added
set cpo+=Z
as the last line of my .vimrc and executed
gvim
:verb set cpo?
the result was
cpoptions=aABceFs
Last set from d:\Progs\vim\vim73\menu.vim
but with
gvim --noplugin
:verb set cpo?
it was
cpoptions=aABceFsZ
Last set from d:\Progs\vim\vim73\menu.vim
So it seems menu.vim correctly saves and restores the current value of
'cpoptions' but at least one other plugin did not. This is just an
impression from my setup, but a quick look at the source of menu.vim
seems to support that it is not the culprit here. You might have to take
a look at the other plugins that get sourced in your installation.
Regards,
Jürgen
--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php