Is there any manner to do that GVIM's current directory will be the same
of the file being edited?
I mean that if I'm editing /var/www/myhost/web/index.php and if I try to
open a new file, it should shows /var/www/myhost/web instead of my
user's directory.
Thanks a lot in advance,
This page describes one way to quickly open files in the same
directory as the current file:
http://vim.wikia.com/wiki/Easy_edit_of_files_in_the_same_directory
the most common way to do this is to set autochdir in your
.vimrc -- see
:h 'autochdir'
sc
On Dec 13, 11:28 am, Ivan Krasilnikov <inf...@gmail.com> wrote:
> On Tue, Dec 13, 2011 at 18:13, Francisco M. Marzoa Alonso
>
> <fmmar...@gmail.com> wrote:
> > I mean that if I'm editing /var/www/myhost/web/index.php and if I try to
> > open a new file, it should shows /var/www/myhost/web instead of my
> > user's directory.
>
> This page describes one way to quickly open files in the same
> directory as the current file:http://vim.wikia.com/wiki/Easy_edit_of_files_in_the_same_directory
Or this, more to the point:
http://vim.wikia.com/wiki/Set_working_directory_to_the_current_file