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
1 vote
1 answer
57 views

NERDTree open new tab page as last one $tabmove

I usually open each buffer in a separate tab-page (using NERDTree as directory navigator) since I feel more confortable this way. But NERDTree always open new tab-page after the current one. Is there ...
xyx's user avatar
  • 464
1 vote
2 answers
1k views

How to achieve a vertical split with tabs on left?

I'm a newb trying to learn neovim. I'd like a layout where a tab window is on the left-hand side and the right hand side has a horizontal split with the terminal window in the bottom and various help ...
jonstewart's user avatar
0 votes
0 answers
36 views

NERDTree window change during tab switch

Currently, when using NERDTree, I hit Ctrl-ww to navigate to my NERDTree window from my editing window. Then, I navigate to a file I want to open, and hit t to open it in a new tab. Now, when I want ...
cz1's user avatar
  • 1
0 votes
3 answers
50 views

How to return from tab page mode to the normal one?

Is it possible to close all tab pages and to stay back in "no tab page mode", without exiting?
IvanDi's user avatar
  • 99
0 votes
0 answers
35 views

What do plugin-generated tab names mean?

I've long wondered if the cryptic tab names that some plugins generate have meaning. For example, fugitive's :Gstatus opens a new tab with the name f///h/r/g/r/.g//, and coc-fzf with g:...
thisisrandy's user avatar
1 vote
4 answers
1k views

Cannot switch tabs when in terminal tab

For using the terminal while working with Rust. I've added this config (NVIM) (TTerm one). if has('nvim') command Ter vsplit term://zsh command Tter tabe term://zsh else command Terminal ...
Sahil Sonawane's user avatar
1 vote
2 answers
523 views

How can I get the active window in a tab?

For example, if I do: % vim file :tabedit one :split two I end up with two tabs, and one tab with two windows. How can I get the active window of the second tab? My goal is to get a list of all tabs ...
Martin Tournoij's user avatar
1 vote
1 answer
725 views

Tab page is closing when deleting buffer

I'm using bufferline.nvim in order to display both buffers and tab pages on the tabline, whenever i delete a buffer with bd, all the buffers on that tab page are deleted as well, alongisde with the ...
henriquehbr's user avatar
2 votes
1 answer
217 views

How to open a file in the last active gvim instance

I recently discovered -p and --remote-tab. Since I edit loads of files at the same time, sometimes with over 50 gvim instances open (and I am not a fan of buffers), I could use a bit of decluttering. ...
Vedran Šego's user avatar
0 votes
1 answer
124 views

Favor existing window of an active buffer when opening that file/buffer from a different window

I have a tab with the following window structure within: ________________________________ a | | x | ...
Tryer's user avatar
  • 247
1 vote
1 answer
253 views

Display left margin visually starting from specified nonzero column

I am beginning to use Vim for C++ development. Many of my lines are within deep for loops or if conditions that with indenting and wrapping disallowed gives a structure that looks like this. x here is ...
Tryer's user avatar
  • 247
1 vote
1 answer
171 views

Diff buffer with disk file -- understanding the output tab/windows

I use the solution provided here, reproduced below: function! s:DiffWithSaved() let filetype=&ft diffthis vnew | r # | normal! 1Gdd diffthis exe "setlocal bt=nofile bh=wipe nobl ...
Tryer's user avatar
  • 247
1 vote
1 answer
41 views

Modification of a tab's windows to specified format

I have the following structure of a tab in Vim. x marks the cursor position. (Note that I don't have control over how these windows are placed in the tab in the first place. It is the default debug ...
Tryer's user avatar
  • 247
0 votes
1 answer
236 views

Apply `:mkview` to all open tabs at exit from Vim

I use Vim from the CLI and use tabs rather than buffers (as I understand the terminology). I may or may not open multiple files using the -p option, but end up with a few tabs open at once. If I ...
Chindraba's user avatar
  • 103
0 votes
2 answers
6k views

How to customize the name of each tab in Vim/NeoVim?

I have patched my own nerd-font and I want those cool icons for each file-type to be shown in the name of tab in Vim/NeoVim. I guess this can be done easily like I have customized my zsh command ...
NeoZoom.lua's user avatar
  • 1,462
0 votes
1 answer
85 views

How can I drag a file onto MacVim and make it open in a new buffer instead of new tab?

I have MacVim 8.2.2576. When I drag a file onto it from the Finder it opens in a new tab. I have seen the :help drag-n-drop but I did not see any option as I prefer. Is there any ways to configure ...
null's user avatar
  • 3
0 votes
1 answer
197 views

Open vim with vsp and tabs on startup

I want the following configuration: Tab1: file 1 || file 2 Tab2: file 1 || file 3 I can open vsp with vim using vim -O file1 file2 I can open tabs with vim using vim -p file1 file2 Can I combine the ...
gust's user avatar
  • 113
0 votes
1 answer
1k 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 ...
Anthony's user avatar
  • 111
1 vote
1 answer
196 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 ...
Gérard Depardieu's user avatar
1 vote
0 answers
93 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?
Aditya Wagh's user avatar
4 votes
0 answers
104 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 ...
Quasímodo's user avatar
  • 2,466
0 votes
1 answer
113 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?
Aditya De Saha's user avatar
2 votes
1 answer
1k 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 ...
Hossein Vatani's user avatar
1 vote
2 answers
1k 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 ...
Hossein Vatani's user avatar
0 votes
2 answers
91 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: ...
fauve's user avatar
  • 111
1 vote
1 answer
872 views

Open a file from a new blank tab in vim

If I've already opened a tab with: :tabe Is it possible to load the file in that tab? For example, to do something like: :o ~/.vimrc In other words, instead of doing :tabe ~/.vimrc, can I do that ...
David542's user avatar
  • 2,445
0 votes
1 answer
32 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:...
bitmask's user avatar
  • 143
2 votes
1 answer
271 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.
Marcus's user avatar
  • 135
0 votes
0 answers
77 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. ...
Filip Kadlec's user avatar
3 votes
2 answers
1k 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 ...
Shuzheng's user avatar
  • 1,235
1 vote
1 answer
41 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 ...
fde-capu's user avatar
  • 283
3 votes
0 answers
143 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 ...
bdecaf's user avatar
  • 279
3 votes
1 answer
181 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. ...
WestHamster's user avatar
2 votes
2 answers
132 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 ...
jalanb's user avatar
  • 684
5 votes
2 answers
1k 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 ...
425nesp's user avatar
  • 576
1 vote
1 answer
181 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 ...
oarfish's user avatar
  • 1,277
0 votes
1 answer
133 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 ...
qeatzy's user avatar
  • 960
3 votes
1 answer
326 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 ...
Phil R's user avatar
  • 491
6 votes
1 answer
3k 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 ...
425nesp's user avatar
  • 576
1 vote
0 answers
313 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 ...
Joan Albert's user avatar
0 votes
1 answer
257 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?
minseong's user avatar
  • 2,323
1 vote
1 answer
199 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 ...
mle0312's user avatar
  • 341
1 vote
1 answer
219 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() ...
aj3423's user avatar
  • 199
0 votes
1 answer
92 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 ...
Evan Carroll's user avatar
  • 1,314
0 votes
2 answers
2k 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 ...
ChrKahl's user avatar
  • 165
3 votes
2 answers
218 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 ...
Enlico's user avatar
  • 2,194
1 vote
2 answers
213 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 ...
Godoy's user avatar
  • 69
6 votes
1 answer
197 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....
0xC0000022L's user avatar
0 votes
1 answer
41 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?
ljs.dev's user avatar
  • 2,687
1 vote
1 answer
199 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 ...
Vitaly Zdanevich's user avatar