> 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.
hi, I've thought about the same feature. I think there are three solutions now: 1. use one xterm with tabs instead of several xterms (don't like) 2. use a communication with vim server to synchronize (seems hard for me) 3. write a couple of functions: tagjump - set the variable "jumpingThereBecauseOfTag" and calls tag jump checktag - check the variable "jumpingThereBecauseOfTag" and set readonly if this variable is set and swap file exists then create (and use) a new command :Tj calling tagjump and add an autocommand for BufReadPre event calling checktag It's just an idea, I still didn't write these. But I think it should work. Milan