All Projects → zefei → Vim Wintabs

zefei / Vim Wintabs

Licence: mit
Modern buffer manager for Vim

Projects that are alternatives of or similar to Vim Wintabs

Vim Airline
lean & mean status/tabline for vim that's light as air
Stars: ✭ 15,873 (+5822.76%)
Mutual labels:  vim-plugin, statusline
Lightline.vim
A light and configurable statusline/tabline plugin for Vim
Stars: ✭ 5,886 (+2096.27%)
Mutual labels:  vim-plugin, statusline
himalaya
Command-line interface for email management
Stars: ✭ 1,715 (+539.93%)
Mutual labels:  vim-plugin
Vim Rubocop
The Vim RuboCop plugin runs RuboCop and displays the results in Vim
Stars: ✭ 262 (-2.24%)
Mutual labels:  vim-plugin
fzf-folds.vim
Vim plugin that lets you fuzzy search for folds in a file
Stars: ✭ 15 (-94.4%)
Mutual labels:  vim-plugin
vim-wordy
Uncover usage problems in your writing
Stars: ✭ 677 (+152.61%)
Mutual labels:  vim-plugin
vim-highlighter
Highlight words and expressions
Stars: ✭ 57 (-78.73%)
Mutual labels:  vim-plugin
vim-stamp
A vim plugin that replaces the currently selected text with the text in the delete register
Stars: ✭ 13 (-95.15%)
Mutual labels:  vim-plugin
Vaffle.vim
📁 Lightweight, window-based file manager for Vim
Stars: ✭ 269 (+0.37%)
Mutual labels:  vim-plugin
vim-hugo-helper
A small Vim plugin with a set of helpers for Hugo https://gohugo.io
Stars: ✭ 82 (-69.4%)
Mutual labels:  vim-plugin
Completeparameter.vim
Complete parameter after select the completion. Integration with YouCompleteMe(ycm), deoplete, neocomplete.
Stars: ✭ 258 (-3.73%)
Mutual labels:  vim-plugin
fileselect
File Selector Vim Plugin
Stars: ✭ 14 (-94.78%)
Mutual labels:  vim-plugin
vim-docker-tools
Toolkit for managing docker containers in vim.
Stars: ✭ 95 (-64.55%)
Mutual labels:  vim-plugin
roast.vim
An HTTP client for Vim, that can also be used as a REST client.
Stars: ✭ 78 (-70.9%)
Mutual labels:  vim-plugin
unfog.vim
⏱ Vim plugin for Unfog CLI task & time manager.
Stars: ✭ 61 (-77.24%)
Mutual labels:  vim-plugin
Vim Crystalline
Functions for taking the monotony out of building your own fancy statusline in Vim
Stars: ✭ 264 (-1.49%)
Mutual labels:  statusline
vim-twitter
Tweet from inside vim!
Stars: ✭ 26 (-90.3%)
Mutual labels:  vim-plugin
cmp-under-comparator
nvim-cmp comparator function for completion items that start with one or more underlines
Stars: ✭ 77 (-71.27%)
Mutual labels:  vim-plugin
format.nvim
Neovim lua plugin to format the current buffer with external executables
Stars: ✭ 189 (-29.48%)
Mutual labels:  vim-plugin
Vim Cool
A very simple plugin that makes hlsearch more useful.
Stars: ✭ 268 (+0%)
Mutual labels:  vim-plugin

vim-wintabs

Wintabs is a per-window buffer manager for Vim. It creates "tabs" for each buffer opened in every Vim window, and displays these buffers either on tabline or statusline. It brings persistent contexts to Vim windows and tabs, making them more awesome.

Screenshots

Wintabs with two native Vim tabs, showing buffers and tabs on tabline:

image

Wintabs with two Vim windows, showing buffers on statusline. It nicely preserves window layout when switching/closing tabs:

image

Wintabs manages long tablines nicely (better than Vim does!):

image

Using Powerline fonts:

image

Installation

Use your favorite package manager to install. vim-wintabs-powerline is optional, used for Powerline style rendering.

pathogen

git clone https://github.com/zefei/vim-wintabs ~/.vim/bundle/vim-wintabs
git clone https://github.com/zefei/vim-wintabs-powerline ~/.vim/bundle/vim-wintabs-powerline

vundle

plugin 'zefei/vim-wintabs'
plugin 'zefei/vim-wintabs-powerline'

vim-plug

plug 'zefei/vim-wintabs'
plug 'zefei/vim-wintabs-powerline'

Usage

By default, wintabs maintains a list of buffers for each buffer opened in each window, and displays them on tabline. To navigate and manage these buffers, a few commands and key mappings are provided, and they are very similar to what Vim buffers/tabs have.

To make full use of wintabs, it is recommended to have the following commands or keys mapped, these are the essential ones:

commands             | mapping keys                 | replacing Vim commands
---------------------+------------------------------+-----------------------
:WintabsNext         | <Plug>(wintabs_next)         | :bnext!
:WintabsPrevious     | <Plug>(wintabs_previous)     | :bprevious!
:WintabsClose        | <Plug>(wintabs_close)        | :bdelete
:WintabsUndo         | <Plug>(wintabs_undo)         |
:WintabsOnly         | <Plug>(wintabs_only)         |
:WintabsCloseWindow  | <Plug>(wintabs_close_window) | :close, CTRL-W c
:WintabsOnlyWindow   | <Plug>(wintabs_only_window)  | :only, CTRL-W o
:WintabsCloseVimtab  | <Plug>(wintabs_close_vimtab) | :tabclose
:WintabsOnlyVimtab   | <Plug>(wintabs_only_vimtab)  | :tabonly

Below is an example of key mappings:

map <C-H> <Plug>(wintabs_previous)
map <C-L> <Plug>(wintabs_next)
map <C-T>c <Plug>(wintabs_close)
map <C-T>u <Plug>(wintabs_undo)
map <C-T>o <Plug>(wintabs_only)
map <C-W>c <Plug>(wintabs_close_window)
map <C-W>o <Plug>(wintabs_only_window)
command! Tabc WintabsCloseVimtab
command! Tabo WintabsOnlyVimtab

See :help wintabs-commands for all available commands and mappings.

Wintabs can display buffers on either tabline or statusline. It's recommended to use tabline if you typically work without using split windows; otherwise, statusline is recommended. If Wintabs is set to use statusline, it automatically moves your original statusline content to tabline.

Configuration

Wintabs has a handful of configuration options, see :help wintabs-options for details.

FAQ

Q: Does wintabs support Powerline fonts?

A: Yes. The vim-wintabs-powerline plugin provides a set of renderers for using Powerline fonts with wintabs.

Q: Does wintabs support Vim sessions?

A: Yes, as long as your sessionoptions contains "globals". Wintabs also supports xolox/vim-session out of the box.

Q: Does wintabs work with statusline/tabline plugins like airline?

A: Wintabs can work reasonably well with statusline/tabline plugins as long as you load wintabs after other plugins.

License

MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].