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.
117 questions
0 votes
1 answer
75 views
It seems that the current doc on `:cd` is wrong? (Well, it's not)
On :help :cd: (** added by me) :cd[!] {path} Change the current directory to {path}. If {path} is relative, it is searched for in the directories listed in |'cdpath'|. ...
0 votes
2 answers
116 views
Put back cursor to the last window I stayed on each tabpage on session restore?
So I was exploring the ssop option recently, and I ended up having this line: set ssop+=globals ssop-=options The reason I decided to remove options is because I had a bad experience when I was ...
1 vote
1 answer
96 views
Opening Vim tab pages via find/xargs with paths including spaces
I often open multiple files in vim using tab pages: $ vim --help | grep tab -p[N] Open N tab pages (default: one for each file) I also use find with xargs and grep -l to obtain a list of ...
0 votes
1 answer
52 views
How to determine how many windows or tabs exist/are created/available?
I want a Vimscript expression to determine how many tabs were created. Same for windows. This is to do a conditional mapping: nnoremap <expr> <C-S-Tab> MoreThanOneWindow() ? ...
1 vote
2 answers
102 views
statusline element disappears after opening a new tab
Background I am trying to create a simple statusline element to show the Git branch and status. Snippet: set statusline= set statusline+=%0*\ %n\ ...
0 votes
1 answer
101 views
How to get the id of the current tab?
tabpagenr returns the index of the current tab, but I want an ID instead. I’m trying to make a custom tab name plugin (or rather, extend Win tabs) where I can manually set the tab name to something ...
1 vote
1 answer
78 views
How to fix this map to jump to usage/definition in a new tab?
I've had this map to be used with cscope/ctags for a while now: nnoremap <C-}> <C-w><C-]><C-w>T What it does is open the definition/usage in a new tab. This works great. Unless....
0 votes
1 answer
79 views
Why does :bd closes tabs instead of buffers?
I am using Neovide and I just don't understand. Maybe I am missing something about buffers? I just want to get rid of annoying empty buffers or old buffers that I don't use anymore. Only in the ...
1 vote
1 answer
83 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 ...
6 votes
2 answers
10k 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 ...
0 votes
3 answers
94 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?
0 votes
0 answers
60 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:...
1 vote
4 answers
2k 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 ...
1 vote
2 answers
846 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 ...
1 vote
1 answer
824 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 ...