[OpenIndiana-discuss] no force write by root user?

Bill Sommerfeld sommerfeld at hamachi.org
Sun Mar 10 15:43:16 UTC 2024


On 3/10/24 08:16, Rolf M. Dietze wrote:
> what does "W" in 'cpoptions' mean? Is that a setup probem with
> my shell? (zsh, same .zshrc as on FreeBSD and Oracle Solaris)
> with modified PATH setup...

I'm not a vim user but I quickly found:

https://vimdoc.sourceforge.net/htmldoc/options.html#'cpoptions'

 > A sequence of single character flags.  When a character is present
 > this indicates vi-compatible behavior.  This is used for things where
 > not being vi-compatible is mostly or sometimes preferred.
 > 'cpoptions' stands for "compatible-options".
...
 > W	Don't overwrite a readonly file.  When omitted, ":w!"
 >		overwrites a readonly file, if possible.

That same document has a long list of places vim might find 
configuration options:

https://vimdoc.sourceforge.net/htmldoc/starting.html#initialization

						- Bill




More information about the openindiana-discuss mailing list