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.
93
questions
0
votes
1answer
38 views
How to expand the splitted window using short key?
I have two vertically splited windows.
I see from Ctrl+W s not splitting windows in Vim that Ctrl-W-| should resize the window. But it does not. Actually, nothing happens.
If I manually resize the ...
1
vote
1answer
70 views
`:tab drop` in not supported in terminal
I use fzf to find/open files, but it always creates a new tab or replaces the current buffer. I want instead to use :tab drop <filename> but I get
E319: Sorry, the command is not available in ...
1
vote
0answers
24 views
Add a blank line between tabline and first line of text?
Screenshot of my vim:
I want to add a line between my tabline and the first line of the text.
How can I do that?
3
votes
0answers
55 views
: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 ...
0
votes
1answer
25 views
Cycling between tabs and buffers
I want to set up some mapping that:
if there are multiple open tabs, then goes to the next tab, like :gt
otherwise it cycles through the open buffers, like :bn
How do I go about doing this?
1
vote
1answer
219 views
automatically open TagBar
I set Tagbar automatically open when a new file in vim, it is ok and fine.
but if open a new file as a tab in opened vim, Tagbar would not be opened, how to tell vim to keep open Tagbar open with a ...
0
votes
2answers
211 views
switch to tab if already opened
I'm not familiar with vim code.
I tried to use vim as IDE, I setup NERDTree plugin.this is my problem:
assume I opened 4 files as tabs. if I press t on opened file already on NERDTree plugin, the ...
0
votes
2answers
27 views
Open some files in split and some other in tab at the vim invocation
I have four files file1, file2, file3, & file4. So I want to open them with vim directly from command line and get the following structure:
Tabulation 1: file1 taking whole tab
Tabulation 2: ...
1
vote
1answer
25 views
How can I modify OpenMultipleTabs so that I can open buffers for new files?
When searching for a command to enable me to open multiple tabs in normal mode, I found a custom command to do this:
" Open multiple tabs at once
fun! OpenMultipleTabs(pattern_list)
for p in a:...
0
votes
0answers
13 views
How do I add a new tab button to my tabline?
For closing the current tab, this is the statusline action:
%999Xclose
This would show a "close" button at the right corner of the tabline, if I add it to my tabline.
Similarly is there a "new tab"...
2
votes
1answer
105 views
What is the X that appears on the top right corner when multiple tabs are open?
What is that X on the corner? What is it for and what does it do?
I opened Vim with vim -p tab1 tab2 on Windows 10 and in WLS with Ubuntu and they both have it.
0
votes
0answers
43 views
select font for tab headers in gvim
I wonder whether there is a way in gvim to select the font used for buffer names in tab headings (after using :tabnew). I know the guifont option, but this applies to the buffer editing area.
...
2
votes
2answers
484 views
How to create a new tab or window from a buffer?
I have several open buffers and want to open a buffer in :ls in a new tab or window.
I have found a way to do accomplish this, either by first executing tabnew or C-w v and then selecting the buffer ...
1
vote
1answer
36 views
Why are split and tab navigations distinct?
Known: <Ctrl>w then any of hjkl.
Known: :tab_<CR> where _ is either rlpn.
Why is there not a <Ctrl> navigation for tabs nor a : for splits? Why do the navigation commands differ ...
4
votes
0answers
57 views
How to keep lcd from affecting other windows?
I usually have one tab containing the code I am working on, and another containing vimwiki. I mostly use neovim.
For the code I prefer the working directory sticking to the project root. For vimwiki ...
3
votes
1answer
73 views
How do I run gVim in a single instance per desktop workspace on linux?
I like running gVim in a single instance, i.e. a single gui window with separate tabs for each file I'm editing.
I also run a linux desktop environment that has multiple desktop workspaces. E.g. ...
2
votes
2answers
116 views
How do I make the h key go to prev tab if at start of file?
And, to get back again: how do I make the l key go to next tab, if at end of file?
I'd also like to make hh go to previous buffer, and ll go to next buffer. I know that'll add a delay to recognising ...
3
votes
2answers
45 views
How to close all tabs with windows and terminals so I can quit
I have multiple tab pages. Some tab pages only have open files, some only have :terminals open, and some have a mix of files and terminals.
At the end of the day, I want to quit Vim. Normally, I go ...
1
vote
1answer
68 views
Is there a way to use a wildcard with :tabnew
I often find myself wanting to open multiple tabs at the same time from within vim.
I would like something like this:
:tabnew src/Class.*
which would open all matching files in separate tabs. Is ...
0
votes
1answer
23 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
100 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
386 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
78 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
81 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?
1
vote
1answer
136 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 ...
1
vote
1answer
142 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
41 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
997 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
74 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
156 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 ...
7
votes
1answer
97 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
40 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
47 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
181 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
686 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
1k 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 ...
6
votes
2answers
812 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?
6
votes
3answers
6k 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
100 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
55 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?
1
vote
1answer
357 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
287 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
95 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
70 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
40 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
50 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
236 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
462 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. ...
1
vote
1answer
949 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
2k 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 ...