Thanks Yakov
On 6/26/06, Max Dyckhoff <[EMAIL PROTECTED]> wrote:
If you open the file with :view it will set the readonly buffer option and not give you that warning. See ":help readonly" Max > -----Original Message----- > From: Yakov Lerner [mailto:[EMAIL PROTECTED] > Sent: Monday, June 26, 2006 9:06 AM > To: Vim List > Subject: How to open file readonly from inside vim ? > > There is a file x that is opened in another vim, and > .x.swp file exists. > > I have another instance of vim that has many buffers already > open. I want to open file x in this vim readonly, > without the 'E325 Found swapfile' dialog. (like vim -R would, > but without starting new vim) > > How do I do it ? I tried ':e +set\ ro x' but it sort of > doesn't work. It still brings up the 'Found swapfile' > dialog (and then opens file readonly). So, How to > open file readonly from inside vim ? > > Yakov