E.g. we're editing a file in ~/foo, say ~/foo/baz, and we want to edit
~/foo/bar, without changing pwd which might be ~ or whatever. So we
type:

:rele bar

And ~/foo/bar would be opened. Only problem is :rele doesn't seem to exist.

One solution proposed on [EMAIL PROTECTED] was to :set autochdir. This
changes pwd and generally has some too far reaching implications
(breaking plugins).

Another solution was to use:

:e %:h/foo

Problems is: tab completion won't work.

The best solution was to use:

:e <Ctrl+R>%

Delete the filename baz and tab-complete to ~/foo/bar.

Is there any better solution, or generally anything overlooked in
above analysis?

--
-Alder

Reply via email to