Hi Andy!

On Sa, 12 Jan 2013, Andy Wokula wrote:

> :view does not always set 'readonly':
>      :e somefile.txt
>      :split
>      :view
> 
> or
>      :e somefile.txt
>      :sview
> 
> Looks like a bug.

That is on purpose. I don't know why

,----[ vim ex_docmd.c ]-
|         else if (readonlymode && curbuf->b_nwindows == 1)
|         {
|             /* When editing an already visited buffer, 'readonly' won't be set
|              * but the previous value is kept.  With ":view" and ":sview" we
|              * want the  file to be readonly, except when another window is
|              * editing the same buffer. */
|             curbuf->b_p_ro = TRUE;
|         }
`----


regards,
Christian
-- 
Machen Sie sich erst einmal unbeliebt, dann werden Sie auch ernst
genommen.
                -- Konrad Adenauer

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui