On 04/02/09 02:37, pansz wrote:
> Matt Wozniski 写道:
>> On Tue, Feb 3, 2009 at 1:14 AM, pansz wrote:
>>> Vim can save/restore buffer list in viminfo .
>>> However, this only works when vim started without a filename as cmdline
>>> parameter.
>>> Since I almost always start vim with a different filename, I cannot get
>>> the saved buffer list at all.
>>> Is there anyway to restore the buffer list when I start vim with a file
>>> name?
>> As of 7.2.031, v:oldfiles
>
> v:oldfiles saves a file list different from the last saved buffer. If I
> start vim without a filename, I can see :ls and compared to :echo
> v:oldfiles, which are different.
>
> How can I show v:oldfiles in the buffer list?

Have you tried ":ls!" with exclamation mark? (Unlike ":ls" without 
exclamation mark, it lists also the so-called "unlisted" buffers.)


Best regards,
Tony.
-- 
"Dear Mr. Seldes:  I cannot remember the exact wording of the statement
to which you allude; but what I meant was that ... a man who calls
himself a 100% American and is proud of it, is generally 150% an idiot
politically.  But the designations may be good business for war
veterans.  Having bled for their country in 1861 and 1918, they have
bled it all they could consequently.  And why not?"
                -- George Seldes, "The Great Quotations"

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to