Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [tabbed-user-interface]

A tab page holds one or more windows. Questions about how to use and customize the behavior of Vim tabs.

Filter by
Sorted by
Tagged with
17 votes
5 answers

How can I open multiple tabs at once?

If I use: :tabedit file1 file2 I get: E172: Only one file name allowed Is there any way to use :tabedit with multiple file names? Or another way to open multiple tabs at once?
Martin Tournoij's user avatar
17 votes
7 answers

How to bind a set of buffers to a tab?

When I need to work on different projects at the same time I have the folowing workflow: I create one tab for each project. In each tab I open the files that I want to edit, which makes several ...
statox's user avatar
  • 50k
17 votes
1 answer

What is the difference between a tab, viewport, window, split and buffer?

What is the difference between the following in vim: buffer window viewport split tab
Tom Hale's user avatar
  • 2,691
15 votes
3 answers

How do I make opening new tabs the default?

When I open vim with multiple files (vim f1 f2 ...), how can I make it open them in tabs directly, without using -p? I'm looking to separate out shell behaviour from vim behaviour, removing vim-based ...
muru's user avatar
  • 24.9k
97 votes
3 answers

Open filename under cursor like gf, but in a new tab (or split)?

The normal mode command gf go to a file with the path the cursor currently is at. But it does so in the current window, replacing the current text. That means you need to navigate back explicitly ...
Volker Siegel's user avatar
7 votes
1 answer

Is there a way to move n tabs forward?

I'm familiar with ngT, which will move n tabs backward. Is there an equivalent way to move forward? I know that if I have 5 tabs open and I'm on tab 3, I can use 3gT to move backwards to tab 5. ...
Floegipoky's user avatar
6 votes
3 answers

Prevent NERDTree from switching tabs when opening a file node?

In NERDTree, if I select a file node and hit o, it opens the file in a window in the current tab. However, if that particular file is already open in another tab, NERDTree switches to that tab. I find ...
Morton Fox's user avatar
-2 votes
1 answer

How to open a list of files into tabs with Tab-top-bar?

I want to open the list of visual selection's files on new tabs such that the top-tab-bar is visible Mapping based on the answer here about How do I loop over a list of files from a visual selection? ...
Léo Léopold Hertz 준영's user avatar
35 votes
1 answer

How do you open a new buffer in the current window?

I've got a few tabs open with different window setups. I'd like to open a new blank buffer in the current window, without having any more splits/windows or tabs Is there any way to do this? I know ...
JonnyRaa's user avatar
  • 1,191
28 votes
7 answers

Move existing window to existing tab

Sometimes I need to move windows into an already existing tab, and I was wondering if there was a command/keyboard shortcut that could do this. I know I can close the window, switch to the tab, and ...
EvergreenTree's user avatar
13 votes
3 answers

Reopen the most recently closed buffer

When writing to a file, I often accidentally type :wq instead of :w since the two keys are right next to each other. But since I almost always have more than one buffer open, Vim stays up and whatever ...
Lombard's user avatar
  • 263
8 votes
3 answers

Open multiple files in tabs from Explore mode

While navigating file system in :Explore mode, is it possible to select and open multiple files, each in a new tab? Edit: I ended up using a function proposed by Jair López, because it works pretty ...
Thunderbeef's user avatar
6 votes
1 answer

How do you set the name of a tab page?

I have a couple of tabs open. Is it possible to set custom tab page names for each individual tab page? For example, I want to name one tab "database", another "backend", and another "frontend". I ...
425nesp's user avatar
  • 576
5 votes
3 answers

What can I do with more tabs than fit in one (airline) tab-line?

I use airline to manage my status-line and tab-line. This worked great until I started to code for an MVC project that has way too many modules and files going on. I now have tabs coming out my ears. ...
Caleb's user avatar
  • 2,245
5 votes
1 answer

Retitling tab labels

Context: I tend to use tabs to contain splits of files that are grouped around some purpose (e.g. in a typical MVC framework, I'll have the model/view/controller files for a given part of the app open ...
aehlke's user avatar
  • 151
5 votes
1 answer

Different autocmd behavior when using --remote-tab-silent?

This question is a follow-up to Switching to the local directory after loading a file? I have the following in my .vimrc: autocmd BufReadPost *.tex lchdir %:p:h with the intent of setting the ...
Rmano's user avatar
  • 758
4 votes
0 answers

:tabonly does not close all unmodified tabs if there is a modified tab in the way

Create some test files, touch a b c d and open each in a tab, vim -p a b c d Modify file b. Go to tab c and issue :tabonly. Expected behavior: a and d tabs are closed. b is not closed because it is ...
Quasímodo's user avatar
  • 2,466
0 votes
1 answer

What are viewport, layout and workspace in relation to tabs

I'm making tentative steps into using tabs in Vim. It seems a bit ridiculous, I've been using tabs in everything for the last 18 years: Visual Studio Every browser since Opera came up with them ...
icc97's user avatar
  • 583