Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 840 Bytes

tip40.md

File metadata and controls

27 lines (19 loc) · 840 Bytes

Tip40: Organize Your Window Layouts with Tab Pages

tip40_1

In Vim, a tab page is a container that can hold a collection of windows.

:edit: vim doesn't automatically create a new tab. Instead, it creates a new buffer and loads it into the current window.

:lcd {path}

set the working directory locally for the current window, not to the current tab page. a tab page can contains one or more windows.

Opening and Closing Tabs tip40_2

Switching Between Tabs Tabs are numbered starting from 1. We can goto tab{N}. tip40_3

Rearranging Tabs

:tabmove [N]

rearranging tab pages. [N] is 0, the current tab page is moved to the beginning. omit [N], the current tab page is moved to the end.