Tuesday, October 26, 2010

RE: netrw v125: Texplore does not start browsing from current file's directory

Gianluca Ciccarelli wrote:
> Recently, however, when I type ":Texplore" I get a new tab
> opened with the list of files, but instead of starting from
> the directory of the file opened at the moment of the command
> being launched, it starts from the current directory (the one
> echoed by ":pwd").

':help :Texplore' says that it does a ':tabnew' first, which would
explain why it is showing the 'pwd' directory.

I do not know if there is a built-in way to do this, but if not,
you could make your own command with this:

:command Tcurrent execute 'Texplore '.expand('%:p:h')

Then use :Tcurrent to explore the directory of the current file
in a new tab. This is just a quick idea, and there are probably
corner cases which do not behave well.

John

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment