Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Show the list of the files inside the folder of the current file

Received: by 10.180.104.167 with SMTP id gf7mr4452960wib.4.1352849795210;
        Tue, 13 Nov 2012 15:36:35 -0800 (PST)
X-BeenThere: vim_use@googlegroups.com
Received: by 10.181.13.235 with SMTP id fb11ls3717390wid.2.canary; Tue, 13 Nov
 2012 15:35:54 -0800 (PST)
Received: by 10.180.105.198 with SMTP id go6mr4462950wib.2.1352849754236;
        Tue, 13 Nov 2012 15:35:54 -0800 (PST)
Received: by 10.180.105.198 with SMTP id go6mr4462948wib.2.1352849754224;
        Tue, 13 Nov 2012 15:35:54 -0800 (PST)
Return-Path: <antoine.mechely...@gmail.com>
Received: from mailrelay004.isp.belgacom.be (mailrelay004.isp.belgacom.be. [195.238.6.170])
        by gmr-mx.google.com with ESMTP id gp9si725277wib.0.2012.11.13.15.35.54;
        Tue, 13 Nov 2012 15:35:54 -0800 (PST)
Received-SPF: neutral (google.com: 195.238.6.170 is neither permitted nor denied by domain of antoine.mechely...@gmail.com) client-ip=195.238.6.170;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 195.238.6.170 is neither permitted nor denied by domain of antoine.mechely...@gmail.com) smtp.mail=antoine.mechely...@gmail.com
X-Belgacom-Dynamic: yes
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ApohAJ3YolBtgMND/2dsb2JhbABEgkOGJag2jluGZAEBBTgkHAEQCwsNCRYPCQMCAQIBETQTAQcCh3MBFqkBg36DZwoZgQ2Ie49XgycDlXyQQ4JiDg
Received: from 67.195-128-109.adsl-dyn.isp.belgacom.be (HELO [109.128.195.67]) ([109.128.195.67])
  by relay.skynet.be with ESMTP; 14 Nov 2012 00:35:53 +0100
Message-ID: <50A2D959.5030205@gmail.com>
Date: Wed, 14 Nov 2012 00:35:53 +0100
From: Tony Mechelynck <antoine.mechely...@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/19.0 Firefox/19.0 SeaMonkey/2.16a1
MIME-Version: 1.0
To: vim_use@googlegroups.com
CC: Javier Garcia <tirengar...@gmail.com>
Subject: Re: Show the list of the files inside the folder of the current file
References: <3ae3dc6f-90c4-4714-9934-d800fdb5ab4e@googlegroups.com>
In-Reply-To: <3ae3dc6f-90c4-4714-9934-d800fdb5ab4e@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 13/11/12 15:48, Javier Garcia wrote:
> Hi,
>
> 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