All Projects → samuelsimoes → vim-drawer

samuelsimoes / vim-drawer

Licence: other
VimDrawer is a Vim plugin to group related buffers in tabs automatically by the file name.

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to vim-drawer

Visual Split.vim
Vim plugin to control splits with visual selections or text objects
Stars: ✭ 190 (+630.77%)
Mutual labels:  vim-plugins
Is.vim
incremental search improved - successor of incsearch.vim
Stars: ✭ 209 (+703.85%)
Mutual labels:  vim-plugins
lh-tags
ctags base updating, and browsing from vim
Stars: ✭ 25 (-3.85%)
Mutual labels:  vim-plugins
Vifm.vim
Vim plugin that allows use of vifm as a file picker
Stars: ✭ 197 (+657.69%)
Mutual labels:  vim-plugins
Vim Anyfold
Language agnostic vim plugin for folding and motion based on indentation.
Stars: ✭ 208 (+700%)
Mutual labels:  vim-plugins
Nerdtree
A tree explorer plugin for vim.
Stars: ✭ 16,380 (+62900%)
Mutual labels:  vim-plugins
Startuptime.vim
Breakdown Vim's --startuptime output
Stars: ✭ 180 (+592.31%)
Mutual labels:  vim-plugins
ipynb notedown.vim
vim plugin for editing jupyter notebook (ipynb) files through notedown
Stars: ✭ 27 (+3.85%)
Mutual labels:  vim-plugins
Vim Racket
vim bundle for Racket
Stars: ✭ 207 (+696.15%)
Mutual labels:  vim-plugins
vim-modusline
🌈 Mode-specific statusline colors
Stars: ✭ 39 (+50%)
Mutual labels:  vim-plugins
Bullets.vim
🔫 Bullets.vim is a Vim/NeoVim plugin for automated bullet lists.
Stars: ✭ 199 (+665.38%)
Mutual labels:  vim-plugins
Vim Vspec
Vim plugin: Testing framework for Vim script
Stars: ✭ 207 (+696.15%)
Mutual labels:  vim-plugins
vim-searchant
searchant.vim is obsoleted by vim-searchhi
Stars: ✭ 55 (+111.54%)
Mutual labels:  vim-plugins
Vim Packager
Vim plugin manager that utilizes "jobs" and "pack" features.
Stars: ✭ 197 (+657.69%)
Mutual labels:  vim-plugins
tmux-zsh-vim-titles
Unified terminal titles in tmux, zsh, and vim/nvim
Stars: ✭ 28 (+7.69%)
Mutual labels:  vim-plugins
Vim Arduino
Vim plugin for compiling and uploading arduino sketches
Stars: ✭ 187 (+619.23%)
Mutual labels:  vim-plugins
Vim Arpeggio
Vim plugin: Mappings for simultaneously pressed keys
Stars: ✭ 216 (+730.77%)
Mutual labels:  vim-plugins
tabulous
Vim plugin for setting the tabline including the tab page labels. It is lightweight and written in pure Vim script.
Stars: ✭ 21 (-19.23%)
Mutual labels:  vim-plugins
vim-sass-colors
sass/scss/less/css color literal and color variable highlighting (works with imports)
Stars: ✭ 24 (-7.69%)
Mutual labels:  vim-plugins
vim-stylus
A better vim plugin for stylus, including proper and up-to-date syntax highligting, indentation and autocomplete
Stars: ✭ 49 (+88.46%)
Mutual labels:  vim-plugins

VimDrawer

👉 When you work with some big tasks you may need edit too many files at once and most of the time you may get lost in so many files.

VimDrawer is a Vim plugin to help you to work with many open files on Vim in a sane way.

Usage

First, you must be familiar with Vim buffers, if you are, the basic idea is to create scoped buffer lists per tab AND do a file auto classification to send your file to the correct tab based on the file name. For now on I will call this tabs as "drawer".

To use you must define the schema of your drawers using an array on the global variable g:vim_drawer_spaces on your vimfiles. The array's first position is the drawer name and the second is the RegExp to match the file name if it should or not go to the drawer. Example:

" ~/.vimrc
let g:vim_drawer_spaces = [
  \["model", "model"],
  \["controller", "controller"],
  \["view", "\.html\.erb$"],
  \["asset", "\.[js|css]$"]
\]

In the example above every file that has model in the name goes to the tab named as model, your models drawer.

Any other file that hasn't the declared drawer destination goes to the current drawer.

💡 You can define drawers schema per project by adding in your project's root the .vim-drawer.vim file, on this file you must set the g:vim_drawer_spaces array.

To check what files are in the drawer you will need to invoke the command :VimDrawer. This command will open a horizontal split with a list of the current buffers in the drawer. To open the buffer just press enter. To close a buffer right on the selector just press c. To just preview a buffer without leave the drawer press space.

💡 You can map this command to a shortcut like:

nnoremap <C-Space> :VimDrawer<CR>

Now you can invoke the drawer's buffers selector pressing Ctrl + Space.

Installation

You can install this plugin with Pathogen, Vundle and other plugin loaders.

Is it a vim-ctrl-space copycat?

This plugin is a simplified version of the awesome vim-ctrl-space plugin with the auto file classification feature (that I even had shown to vim-ctrlspace folks). I decide to create a separate version mainly to implement the auto classification feature and because vim-ctrl-space IMHO could be much more simple at some aspects that I won't discourse here. Ping me on Twitter if you are interested.


Samuel Simões ~ @samuelsimoes ~ Blog

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].