Jean Johner wrote:
> Hello,
> Suppose the .f extension has been allocated to gvim.
>
> In Windows, double clicking on the "file1.f" file sitting in the
> "test_vim" directory results in opening file1.f with test_vim as
> working directory (for example using the file/open menu lists files in
> test_vim).
that's the intended behaviour -- see :help win32-startup.
> Doing the same in KDE 3.5 Konqueror file manager opens file1.f but the
> working directory is always the user's home directory.
>
> Does anybody know a way to solve this problem.
(The following is untested.) Put
au VimEnter * if expand('%') != '' | cd %:h | endif
in your ~/.vimrc.
Regards,
Jürgen
--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)
--
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