Home

Awesome

No longer actively maintained

I'm no longer using vim-nerdtree-tabs and i'm no longer maintaining it actively.

In case you forked it and moved the code forward, e.g. by fixing a considerable chunk of the reported issues, let me know and i'll link your fork here.

NERDTree and tabs together in Vim, painlessly

Features

This plugin aims at making NERDTree feel like a true panel, independent of tabs.

Many of these features can be switched off. See section Configuration.

Installation

  1. If you haven't already, install NERDTree (see https://github.com/scrooloose/nerdtree)

  2. Install the plugin through Pathogen:

    cd ~/.vim/bundle
    git clone https://github.com/jistr/vim-nerdtree-tabs.git
    

    Or through Vundle:

    Bundle 'jistr/vim-nerdtree-tabs'
    

    Or through Janus:

    cd ~/.janus
    git clone https://github.com/jistr/vim-nerdtree-tabs.git
    
  3. Map :NERDTreeTabsToggle command to some combo so you don't have to type it. Alternatively, you can use plug-mapping instead of a command, like this:

     map <Leader>n <plug>NERDTreeTabsToggle<CR>
    
  4. Celebrate.

Commands and Mappings

Vim-nerdtree-tabs provides these commands:

There are also plug-mappings available with the same functionality:

Configuration

You can switch on/off some features of the plugin by setting global vars to 1 (for on) or 0 (for off) in your vimrc. Here are the options and their default values:

Example

To run NERDTreeTabs on console vim startup, put into your .vimrc:

let g:nerdtree_tabs_open_on_console_startup=1

Credits

The tab autoclose feature is stolen from Carl Lerche & Yehuda Katz's Janus. Thanks, guys!