On 10/26/06, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote:
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.

The problem at hand here is that there is checked-out file, X,
under SVN control, and a symlink Y->X, and Y is outside of
checked-out subtree, and I want to check-in file from inside vim.

I can edit the file as X or as Y, fine. But if I try to check in file
under [symlinked] name Y, then SVN cannot do it.
I need to chase the link in vim and check it in under name X.

Yakov

Reply via email to