Re: chasing symlink

2006-11-08 Thread Yakov Lerner
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

Re: chasing symlink

2006-10-26 Thread Charles E Campbell Jr
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

Re: chasing symlink

2006-10-26 Thread Yegappan Lakshmanan
Hi Yakov, On 10/20/06, Yakov Lerner [EMAIL PROTECTED] 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) You can try using the resolve() Vim function to resolve the

Re: chasing symlink

2006-10-26 Thread Yakov Lerner
On 10/26/06, Yegappan Lakshmanan [EMAIL PROTECTED] wrote: Hi Yakov, On 10/20/06, Yakov Lerner [EMAIL PROTECTED] 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) You

chasing symlink

2006-10-20 Thread Yakov Lerner
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) Yakov

Re: chasing symlink

2006-10-20 Thread Luc Hermitte
Hello, * On Fri, Oct 20, 2006 at 11:39:10PM +0200, Yakov Lerner [EMAIL PROTECTED] 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) Are you looking for realpath? In case

Re: chasing symlink

2006-10-20 Thread Yakov Lerner
On 10/21/06, Luc Hermitte [EMAIL PROTECTED] wrote: Hello, * On Fri, Oct 20, 2006 at 11:39:10PM +0200, Yakov Lerner [EMAIL PROTECTED] 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