On Mar  6 12:42, Yegappan Lakshmanan wrote:
> On 3/6/07, Corinna Vinschen <[EMAIL PROTECTED]> wrote:
> >So, the bottom line is, I'm looking for is a way to open a file
> >automatically in r/o mode if I'm going to jump to a tag in that file
> >and the file is opened in another session.
> 
> You can use the following autocmd (only in Vim7) to open a file
> in read-only mode (if the file is already opened in another Vim instance)
> while jumping to a tag in that file. In all other cases, you will be
> prompted if the swap file already exists for that file.
> 
> autocmd SwapExists * if v:swapcommand =~ '^:ta\%[g] ' | let
> v:swapchoice='o' | endif

Thank you, that helps a lot!


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat

Reply via email to