I'm not sure, but you might have to
:set history=200
as well.
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)
I am using:
set history=111 "command-line history restored
set viminfo=%,\"4,'4,/111,:111,h,f0
" | | | | | | +file marks 0-9,A-Z 0=NOT stored
" | | | | | +disable 'hlsearch' loading viminfo
" | | | | +command-line history saved
" | | | +search history saved
" | | +files marks saved
" | +lines saved each register (old name for <, vi6.2)
" +save/restore buffer list
I would like to use the value in 'history' to set the values in
'viminfo':
But this does not work:
set viminfo=%,\"4,'4,/history,:history,h,f0
--
Bill
Santa Cruz, California
Try this:
let &viminfo = '%,"4,''4,/' . &history . ',:' . &history . ',h,f0'
:help let-option
Brett Stahlman
>
Lily schrieb:
the value of 'history' not only determines how many entries are read
from the viminfo file on startup, but it also restricts the number of
entries that are remembered during a Vim session. Thus even if the
'viminfo' option includes large values for the different history lists,
Vim cannot save more entries than those that are kept in memory.