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
0
votes
1answer
20 views

vim: can non active tab being completely hidden, no headers show /c/e/n alike

When open multiple tabs, it will show in the topmost line something /c/e/n... alike. But I already has filename and &modified in status line, which just waste space then. Also I find that line ...
1
vote
1answer
26 views

Execute Vim command in terminal window and return to Terminal-Job mode

For a while, I'd been using :nnoremap <C-H> <C-W>h and :tnoremap <C-H> <C-W>h, et. al. to switch windows. This was working great, so when I started using tabs, I decided to ...
2
votes
1answer
48 views

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 ...
1
vote
0answers
25 views

Autocmd commands for sharing terminal when open new tab

I was trying to create a trigger that does the following: When opening a new tab with a file, if there already exists a terminal buffer, it is opened below in this new tab. I have seen in logfiles ...
0
votes
1answer
30 views

marks between windows

If I make a mark ma in one split pane and then from another I try to jump to it 'a I can't. I guess marks are stored per-buffer. Can I store marks per-tab?
0
votes
1answer
59 views

How to change color of the splits counter in a 'tabline'

I can have multiple splits in a new tab. To change background and foreground of active and inactive tabpages, I can do the following: hi TabLineSel term=bold ctermfg=White ctermbg=DarkBlue hi TabLine ...
0
votes
1answer
68 views

Why buffer tab plugin not work with Neovim 0.4

I installed the latest Neovim 0.4 from scratch, install 'vim-plug', then add only 4 lines to my init.vim: call plug#begin('d:/neovim/nvim/plugged') Plug 'ap/vim-buftabline' set hidden call plug#end() ...
0
votes
1answer
33 views

Is there an fzf for finding an open tab?

I would like to be able to open up vim foo.md foo.css foo.html foo.ts And either be able to run :Tab md or the like and jump to the foo.md tag. Is it possible to get this kind of functionality ...
0
votes
2answers
169 views

Shell running inside vim windows

Is there a way that a open up a window or buffer, where i can run my bash commands? I thought on something like you know it from VS Code(1). The code windows on the top and a small command prompt on ...
1
vote
1answer
63 views

`gt` is not consistent with `gT` (and many other commands) when `{count}` is prepended

I know it's not a bug, since the help page explains it cleary, but is there any reason why gt is still kept different from the majority of commands that accept a {count} prepended? I mean, isn't it in ...
1
vote
2answers
110 views

Loading source file with :tabe

My .vimrc includes the following lines: if filereadable("my_source") :source my_source endif That is, if the file 'my_source' exists in the folder where I open vim and it is readable, it is ...
5
votes
1answer
78 views

How can I make sure all buffers end up as tab or force remaining buffers into tabs?

I am using Vim 7.3 for no particularly compelling reason on an old system I am forced to work on. It's an internal system and it will eventually be replaced by a more modern version of the same distro....
0
votes
1answer
36 views

e or tabe into path resulting from a ! command

Given a bash function, getMyFilePath(), which results in a directory path, /mydir, how can I open a new tab, passing this function to navigate there?
1
vote
1answer
33 views

Switching between tabs takes a few seconds

Using gt and :tabnext I need to wait some time and I experience the same lag when I use :split myfile.txt. However vim myfile.txt from bash opens much faster. My Mac is pretty fast, and I don't have ...
0
votes
1answer
133 views

Taboo.vim to show basename of the current file

When I'm programming. My structure is based on a simple tree. . ├── index.js └── Pages ├── blog │   └── index.js ├── career ├── contacts │   └── index.js ├── dashboard ├── ...
0
votes
1answer
344 views

How to make <S-A-Left> and <S-A-Right> work in vim within Mac Terminal

I'm using these keyboard shortcuts to navigate/manipulate tabs in MacVim " tab navigation nnoremap <silent> <S-Left> :tabprevious<CR> nnoremap <silent> <S-Right> :...
3
votes
1answer
932 views

Open new file as tab on current vim instance through double-click

I currently open my text files with GVim by double-clicking them in my file manager (Thunar, in Xubuntu 16.04). However, when opening a new file, I want GVim to open it as a new tab rather than a new ...
4
votes
2answers
402 views

Limit buffer list to current tab

Is there a way to list the buffers specific to the tab that is open currently in vim or macvim?
3
votes
3answers
4k views

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 ...
0
votes
1answer
81 views

Open One File-type per Tab

In vim you can open all files in present directory with vim *. All of a specific file type in directory with vim *.py. Recursively we use vim **/* and vim **/*.py. To open all files in tabs vim -p *...
1
vote
0answers
53 views

How can I get my tabs to spread to the width of my window?

I can't see a number of the tabs at the top, even though there's space to show them all. How can I fix this?
0
votes
1answer
216 views

:hi TabLine ctermfg=Whatever not working on Windows

I'm on windows, using vim 8.0. When I do :hi TabLine ctermfg=Red ctermbg=Black The background of the unselected tabs changes, but not the foreground. It stays Cyan. It works properly for TabLineSel ...
1
vote
1answer
186 views

How can I keep the Tab title text fixed, during movement through separate split panes/panels?

Generally, I only use split panes inside of a Tab when using plugins like NerdTree, TagBar, and Codi, or when opening up helptags with :help. When I enter one of these panes, the Tab title text ...
1
vote
1answer
61 views

Can I display a list of the tabs in a side-pane?

can I display a list of the tabs in a side pane, so you can switch by selecting from it? Something similar to NERDTree's pane. I want to be able to toggle it into view, select the tab I want in ...
2
votes
1answer
57 views

Rather than tabnext and tabprevious can I get a list of tabs and select the one to switch to?

Instead of using tabnext and tabprevious is there a command or a plugin which can list your tabs vertically so you can navigate up and down and choose the one to switch to? I am thing along the lines ...
1
vote
0answers
31 views

Vim - relative tab navigation [duplicate]

Is there a way to make gt work in the opposite way of gT when given a count? 2gT moves two tabs to the left. 2gt moves to the second tab, but I would like to instead move two tabs to the right. How ...
1
vote
1answer
46 views

How do I select the other files in a tab?

When I run the tabs command the file mix.exs in the same tab as NERDTree, (i.e. tab 2), but I can't access it, as it seems to be in the background or hidden in some way. How can I bring mix.exs to the ...
0
votes
1answer
184 views

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 ...
6
votes
1answer
292 views

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. ...
0
votes
1answer
587 views

Print full filename in tabs when using terminal Vim

I use Vim 8.0 (homebrew) from iTerm 3. How do I use full filenames instead of these abominations that Vim seems to print by default? Some context as filenames: sidebar.php sponsors.php donate....
7
votes
2answers
1k views

Is it possible to open a tab in a window and not a window in a tab?

The question in short: Is it possible to open a tab in a window and not a window in a tab?. Like this: Instead of this: Some background related to the question: I'm used to the interface like the ...
4
votes
1answer
129 views

How can I make Neovim return to the tab that was active before running `:Git diff`?

How can I make Neovim automatically return to the tabpage that was active before running :Git diff %? Before I commit my work in git, I often run :Git diff to review changes (the :Git command is ...
4
votes
1answer
777 views

How to change color of tabs in the tab-bar in gvim?

Here is what my tab-bar in GVim looks like: I'm having a hard time to identify which of the tabs is the active one. How can I configure the color of the tab-bar, for example I'd like to use a ...
10
votes
2answers
654 views

Duplicate buffer into new tab instead of moving it

I frequently want to temporarily maximize a buffer in a tab page and then go back to the old buffer configuration that I was looking at. My current workflow for doing something like this is either to ...
3
votes
1answer
162 views

How to not close MacVim after the last tab is closed?

Can this be done by editing the .vimrc file? What I need is that after closing all tabs, a new tab is there like notepad++ does.
3
votes
1answer
65 views

Empty first tab lost when using sessions

I'm creating a session with mksession, and when I restore the session, if the first tab was empty ([No Name]), it's gone in the restored session. Other empty tabs are restored fine; it seems to only ...
0
votes
2answers
121 views

Is it possible to increase the number of visible tabs in MacVim (without changing the window width)?

The question is more or less in the title, until recently I have the feeling that I got a fairly large number of visible tabs in any window of MacVim. I either updated MacVim or my system or something ...
4
votes
1answer
427 views

Navigate to tag in a new tab if not already opened, like `tab drop`?

What I expect from "tab-tag" navigation is the following behaviour: when need to jump to a tag: if the corresponding file is already opened in a window, navigate to it if it is not, open the buffer ...
3
votes
1answer
299 views

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 ...
5
votes
1answer
590 views

Spread already open files into split view

Suppose I open multiple files in vim like this: vim a.cc b.cc x.cc vim will open all files, but show only one at a time, the rest being accessible using the :next command. After having these files ...
3
votes
2answers
127 views

Focus previous tab/window when closing current

I tend to open multiple tabs in vim and multiple windows within a tab. I have a habit of traversing the code in a tree format - I open a tag in a new tab, so that my current view of the window ...
4
votes
2answers
2k views

Mouse click navigation in vim tab

Now I navigate from one tab to another tab in Vim using the gt command, but it's little frustrating for me, because so far I've worked with editors that support mouse navigation. Is there a way that ...
4
votes
3answers
1k views

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 ...
11
votes
1answer
671 views

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
4
votes
2answers
2k views

Can I move my current tab to a split in a different tab?

This happens to me semi-frequently. I have two tabs open, and I would like to merge them into one tab with a vertical split. Essentially, I want to do the opposite of CTRL-w_T. Right now, I have to ...
4
votes
3answers
1k views

How do I open a shell in only one tab in Vim?

I usually work on tabs in Vim, and on many occasions, I end up requiring a shell to do run some command, etc. (Escape -> :!sh). Is there any way I can open the shell in only one tab in Vim? I would ...
-2
votes
1answer
98 views

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? ...
1
vote
1answer
406 views

Mapping doesn't work for tabs

I have several files opened in tabs in Vim. I want to switch between tabs, so I use Ctrl+left to move left (previous) and for next also. But my mapping doesn't work. :map <C-Left> :tabprevious&...
3
votes
2answers
109 views

Open a filename given by an external command

Tabnew works when the filename is given directly. I want to open a file using Its alias since the file is far away from the current file path and difficult to remember or type. I use alias command ...
0
votes
0answers
42 views

How can I tell NERDTree to open a file in the current window, even if its open somewhere else? [duplicate]

If I have file foo.txt open in a tab tab1 +------------+------------+ | | | | | | | file: | file: | | foo.txt | bar.txt | | | ...