On 5 май, 08:43, rudy_b <rudyke...@yahoo.com> wrote: > Hi, > I have included the autocmd (listed below) in my .vimrc file. > au BufReadPost * if &readonly | set nomodifiable > > The intention is to not let gvim even modify the read only files, which > works great with some downside. > > It only works when I just start a new gvim window!!! If, in the same window, > I load a different buffer (by opening a new read only file) I have to go in > and manually do "set nomodifiable"... which is very annoying.
I have just tried your autocommand and it works for me with 2 readonly buffers. -- 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