≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #2033

Bug #2033: When NERDTree is open; opening a file in a vertical split resizes the buffer strangely

Kind bug
Product Command-T
When Created 2012-11-29T17:40:53Z, updated 2013-01-22T12:20:32Z
Status open
Reporter Steve McKinney
Tags no tags

Description

To reproduce:

  • Open vim
  • Open NERDTree
  • Open a file
  • At this point Vim looks like this screenshot
  • Open Command-T, select a file, and press <C-v>. This opens the file in a vertical split.
  • At this point Vim looks like this screenshot
  • Stay in that right-most vertical split.
  • Open Command-T, select a file, and press <CR>. This opens the file in the right-most vertical split (since it's active).
  • At this point Vim looks like this screenshot.

Actual Result:

The right-most vertical split has been resized strangely, almost as if the size of the NERDTree buffer was used to size it.

Expected Result:

The right-most vertical split maintains it's current size.

Comments

  1. Greg Hurrell 2012-11-30T08:39:07Z

    Nice bug report; I'll see if I can reproduce.

  2. Steve McKinney 2012-11-30T15:31:13Z

    FYI: the behavior is the same in terminal Vim and MacVim.

  3. Steve McKinney Created 2013-01-22T12:20:32Z, edited 2013-01-23T04:38:01Z

    This issue only appears let g:CommandTMatchWindowAtTop=1. Here's a minimal .vimrc to reproduce:

    set nocompatible
    set tabstop=2 expandtab softtabstop=2 shiftwidth=2
    
    set rtp+=/Users/smckinney/.vim/plugins/Command-T
    set rtp+=/Users/smckinney/.vim/plugins/nerdtree
    
    syntax on
    filetype plugin indent on
    
    let g:CommandTMatchWindowAtTop=1
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets