Mercurial > vim
comparison src/testdir/test62.in @ 856:8cd729851562 v7.0g
updated for version 7.0g
author | vimboss |
---|---|
date | Sun, 30 Apr 2006 18:54:39 +0000 |
parents | |
children | b63792dadc23 |
comparison
equal
deleted
inserted
replaced
855:d2a4f08396fe | 856:8cd729851562 |
---|---|
1 Tests for tab pages | |
2 | |
3 STARTTEST | |
4 :so small.vim | |
5 :" Simple test for opening and closing a tab page | |
6 :tabnew | |
7 :let nr = tabpagenr() | |
8 :q | |
9 :call append(line('$'), 'tab page ' . nr) | |
10 :" | |
11 :" Open three tab pages and use ":tabdo" | |
12 :0tabnew | |
13 :1tabnew | |
14 :888tabnew | |
15 :tabdo call append(line('$'), 'this is tab page ' . tabpagenr()) | |
16 :tabclose! 2 | |
17 :tabrewind | |
18 :let line1 = getline('$') | |
19 :undo | |
20 :q | |
21 :tablast | |
22 :let line2 = getline('$') | |
23 :q! | |
24 :call append(line('$'), line1) | |
25 :call append(line('$'), line2) | |
26 :" | |
27 :" | |
28 :/^Results/,$w! test.out | |
29 :qa! | |
30 ENDTEST | |
31 | |
32 Results: |