comparison src/testdir/test_viminfo.vim @ 9414:1003973c99df v7.4.1988

commit https://github.com/vim/vim/commit/ab9c89b68dcbdb3fbda8c5a50dd90caca64f1bfd Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 3 17:47:26 2016 +0200 patch 7.4.1988 Problem: When updating viminfo with file marks there is no time order. Solution: Remember the time when a buffer was last used, store marks for the most recently used buffers.
author Christian Brabandt <cb@256bit.org>
date Sun, 03 Jul 2016 18:00:05 +0200
parents c0760b25f31d
children 42adbf172ecd
comparison
equal deleted inserted replaced
9413:d72229478e52 9414:1003973c99df
393 rviminfo Xviminfo 393 rviminfo Xviminfo
394 394
395 call delete('Xviminfo') 395 call delete('Xviminfo')
396 endfunc 396 endfunc
397 397
398 func Test_viminfo_file_marks()
399 silent! bwipe test_viminfo.vim
400 silent! bwipe Xviminfo
401
402 call test_settime(10)
403 edit ten
404 call test_settime(25)
405 edit again
406 call test_settime(30)
407 edit thirty
408 wviminfo Xviminfo
409
410 call test_settime(20)
411 edit twenty
412 call test_settime(35)
413 edit again
414 call test_settime(40)
415 edit fourty
416 wviminfo Xviminfo
417
418 sp Xviminfo
419 1
420 for name in ['fourty', 'again', 'thirty', 'twenty', 'ten']
421 /^>
422 call assert_equal(name, substitute(getline('.'), '.*/', '', ''))
423 endfor
424 close
425
426 call delete('Xviminfo')
427 endfunc