I wouldn't expect that to work.  There is no defined loaded buffer
when the -u vimrc is run.  'readonly' is local to buffers only, so in
your example, it has no buffer to be applied to.

If you want everything to be readonly, try setting a BufEnter autocommand.

If you want just one file to be readonly, try setting the mode line.

Also consider:

gvimd -c 'so .vimtest' .vimtest

On 5/23/06, Zdenek Sekera <[EMAIL PROTECTED]> wrote:
create a file ~/.vimtest as follows:

cat > .vimtest
set nocompatible
set readonly
<C-D>

and execute (g)vim:

vim .vimtest -u .vimtest

try :set readonly? and you'll get 'noreadonly'.

Looks strange at the minimum, bug?

---Zdenek


Reply via email to