On 3 окт, 23:51, Mikalai Chaly <[email protected]> wrote:
> The issue reason is command order.
>
> When you do set autochdir, vim changes current dir and sets up current
> buffer to use file "myfile" instead of "test\myfile".
>
> Then "set encoding" brings up multibyte initialization, which re-writes
> parameters for buffer using new encoding. During this process, file name is
> changed from correct "myfile" to the original "test\myfile" and expanded to
> "test\test\myfile".
I see, thanks for explanation.
>
> I'm not sure if this really a bug and how it can be fixed, but simple change
> of commands order brings us a workaround. Such vimrc:
>
> set nocp
> set encoding=utf-8
> set autochdir
>
> opens required file correctly.
I think that behaviour should be noted in ':h autochdir' in case this
is not a bug.
Best wishes,
Maxim.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---