Sunday, February 27, 2011

Re: Incorrect working directory in gvim launched from Konqueror

On 2011-02-27 Robert <sigzero@gmail.com> wrote:

> > Doing the same in KDE 3.5 Konqueror file manager opens file1.f but the
> > working directory is always the user's home directory. [...]
>
> http://vim.wikia.com/wiki/Set_working_directory_to_the_current_file

I have the same problem with Gnome/Nautilus. But the suggestion »autochdir«
does not not really solve the problem. It always changes the working directory
to the directory of the file in the current buffer.


This can be rather annoying. Imagine you have the following structure.

file1
dirA/file2
dirB/file3

With autochdir set you open file1. Then you open file2 (:e dirA/file3), after
that you want to edit file3 and :e dirB/file3 fails because the working
directory changed to dirA. This is very confusing. You never know in which
direcotry you are.

The OP (and I, too) look for a solution to open file1 in the file manager and
make this direcotry the current directory instead of $HOME. Before I used
Fluxbox/Thunar with the correct behaviour.


Marco


--
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