Window tabs are everywhere and you will find this in the curret version of vim too, which as of this writing is 7.0.042-0.fc5 on fedora-core-5.
Below are notes on how you can quickly navigate between open tabs:
- Open several fies for editing in seperate tab pages:
$ vi -p file1 file2 file3...
- Goto next tab:
gt
or
:tabn
- Goto previous tab:
gT
or
:tabp
- Got to a numbered tab where "#" is a number:
#gt
or
:#tabn
- Rewind to the first tab:
:tabr
- Open new tab page. Optionally you can provide a filename:
:tabnew [filename]
- Edit an existing file:
:tabe {filename}
- Split the tab page:
:tab split
- Close all other tab pages:
:tabo[!]
- Close current tab page:
:tabc[!]
- To get help using tabpages:
:tab help tabpages
See other related posts on vi.
- sandip's blog
- Login or register to post comments