On Wed, Jul 19, 2006 at 06:10:43PM -0700, [EMAIL PROTECTED] wrote: > What is the easiest way to edit a file that is in the same directory as > the current file? E.g. I open a file like this: vim /x/y/z/w/file1.c and > want to now open /x/y/z/w/file2.c?
I just type :e ^R% to get the current filename, followed by enough ^Ws to remove the trailing parts I don't want. -- Matthew Winn ([EMAIL PROTECTED])
