Yakov Lerner wrote:
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
Use
:view foobar.ext
or
:sview foobar.ext
(instead of ":edit" or ":new"/":split" respectively).
HTH,
Tony.