Thanks Shlomi, but in that case, I should change first to the folder's file using something like :cd %:h. In other case, :E shows the root proyect folder files, doesn't it?
On Tue, Nov 13, 2012 at 5:48 AM, Javier Garcia <tirengar...@gmail.com> wrote:
> imagine I'm editing file, and I want to show the list of the files inside the folder who belongs the file I'm editing, to edit one of them.
> How can I do that? Is there any way using FuzzyFinder?
Look at:
h :FufFileWithCurrentBufferDir@en
CtrlP is a good, maintained, alternative to FuzzyFinder which has
options so that finding a file can be the file's current working
directory (or a few other options).
You could also look at
:h acd
if that works with your plugins.
On Tue, Nov 13, 2012 at 7:32 AM, Javier Garcia <tirengar...@gmail.com> wrote:
> I meant when I open a new tab
I don't understand the question. Do you want to open a file in a new
tab from Fuzzy File finder? Then use ctrl-l
Otherwise, what are you opening in the new tab? If nothing, then your
current working directory is your home directory and that's what
FuzzyFile finder shows. There is no "folder that belongs to the file
I'm editing" because you have no file open.
What directory do you want it to be if you have nothing in a buffer?
How is Vim to know?
> imagine I'm editing file, and I want to show the list of the files inside the folder who belongs the file I'm editing, to edit one of them.
> How can I do that? Is there any way using FuzzyFinder?
FuzzyFinder (which I don't use) is not necessary.
To see the contents of the directory of the current file:
in a new window, horizontally split
:new %:h
in a new window, vertically split
:vert new %:h
in a new tab
:tabnew %:h
in a new tab at far right
:exe tabpagenr('$') 'tabnew %:h'
see
:help pi_netrw.txt
:help :new
:help current-file
:help filename-modifiers
:help :vert
:help tabnew
See also
:help :aboveleft
:help :leftabove
:help :belowright
:help :rightbelow
:help :topleft
:help :botright
:help :tab
for even finer control on where the new window or tab opens.
Best regards,
Tony.
-- TIM: That is not an ordinary rabbit ... 'tis the most foul cruel and
bad-tempered thing you ever set eyes on.
ROBIN: You tit. I soiled my armour I was so scared!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD