'Z' vi compatible?
Why do you write readonly files at all? What is your use case?

Eventually try something like this:

" restore readonly setting after buf write which vim always changes
" (untested)
augroup MY
  autocmd BUfWritePre let b:redaonly=&readonly
  autocmd BUfWritePost exec 'set '.(b:readonly ? '' : 'no').'readonly'
augroup end

Marc Weber

-- 
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

Reply via email to