Marius Roets wrote:

> I believe I have found a bug in Vim 7.0.146, relating to mksession and
> lcd. Here is a small example. 
> 1) Open Vim
> 2) :e file1.txt
> 3) :tabe temp/file2.txt "Any different directory
> 4) :lcd %:h
> 5) :mks test.vim
> 6) Close vim
> 7) Open vim
> 8) :source test.vim
> 9) The second tab is empty. The reason is that in the file test.vim the
> order of events are (ignoring the uninteresting stuff):
>  - cd where-ever-file1-is
>  - edit file1.txt
>  - tabnew
>  - edit file2.txt
>  - lcd where-ever-file2-is/
> 
> So even the second tab contains the correct lcd, the files opened in the
> wrong directory. 
> 
> To manually fix the problem in the test.vim file:
> /^lcd/
> dd
> /^edit file2/
> P
> :wq
> 
> Alternatively, the full path should be used to open file2.txt

I see the problem.  I'll fix it.

-- 
hundred-and-one symptoms of being an internet addict:
94. Now admit it... How many of you have made "modem noises" into
    the phone just to see if it was possible? :-)

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to