On Wed, Jun 20, 2012 at 3:13 PM, Linda W <[email protected]> wrote: > In the help on cpoptions, I find this line confusing: > > Z When using "w!" while the 'readonly' option is set, > don't reset 'readonly'. > > --- What does 'reset' mean? > > If you wrote to the file, that implicitly means you had to unset the > file's readonly value, so I can read the above to mean "Don't" reset > the readonly-flag to it's original value, > > OR it could be read, don't reset vim's 'readonly' flag to (not > readonly) even though w! overrides read-only status, and it had to be > "reset" in order to write to it. > > So the above could, from my interpretations, be read either way... > > Maybe "don't restore readonly status after a write"? or don't unset > readonly status after a write? > > (Which is it?) > > thanks > > Linda
Linda, Anything in apostrophes or single quotes is an option; so, Z means to not set the 'readonly' option. If the option does get reset (to 'noreadonly'), then you can save the file through regular means from then on (:w). If it doesn't, then Vim effectively treats the write as a one-off and keeps the file as readonly, forcing you to use the :w! mechanism to write the file the next time, also. Regards, Salman -- 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
