Yakov Lerner wrote:
Let's say I edit file x (vim x) which is a symlink, x->y. (Linux). How can I make a script that opens y instead of x in the buffer (chases the symlinks and opens it)
I guess I don't understand exactly what you're doing here. Let me explain: echo "junk1" > file1 ln -s file1 file2 vim file2 This shows file1's contents; ie. "junk1". So, I'm editing the target of the symlink file, not the symlink file itself. In fact, I'm not sure how to edit that symlink file, but I don't think that's what you're asking for. Regards, Chip Campbell