32 lines · 522 B · Text
RawDownload
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):":" 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):":":/^Results/,$w! test.out:qa!ENDTEST Results:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t