Here is how you can work with tabs in Vim.
Create a new tab:
- - vim -p file1 file2... : Open multiple files each in one tab.
- - :tabnew [filename] : Crate a new tab, empty or possibly open a file at the same time.
- - Ctrl-w T : If you have multiple windows opened in one tab, use this command to put the current window into a new tab.
Navigate between tabs:
- - :tabs : list all opened tabs
- - :tabn, :tabp: go to next or previous tab. Less convenient.
- - gt : go to next tab. Better.
No comments:
Post a Comment