view src/testdir/test62.in @ 1607:4f1130893a1c v7.1.320

updated for version 7.1-320
author vimboss
date Fri, 20 Jun 2008 14:32:41 +0000
parents b63792dadc23
children 6b4879aea261
line wrap: on
line source

Tests for tab pages

STARTTEST
:so small.vim
:" Simple test for opening and closing a tab page
:tabnew
:let nr = tabpagenr()
:q
:call append(line('$'), 'tab page ' . nr)
:unlet nr
:"
:" Open three tab pages and use ":tabdo"
:0tabnew
:1tabnew
:888tabnew
:tabdo call append(line('$'), 'this is tab page ' . tabpagenr())
:tabclose! 2
:tabrewind
:let line1 = getline('$')
:undo
:q
:tablast
:let line2 = getline('$')
:q!
:call append(line('$'), line1)
:call append(line('$'), line2)
:unlet line1 line2
:"
:"
:/^Results/,$w! test.out
:qa!
ENDTEST

Results: