Skip to content

Files open in main window, not currently selected window #57

Description

@jjt

I start with an empty buffer and hit C-n C-n C-n to get a layout like in the README. I then jump to any of the side windows. When in one of the side windows, if I open a file with :e foo.txt, it opens in the main window instead of the current window. If I then jump to any of the side windows again and :e bar.txt, it opens bar.txt in the main window and pushes foo.txt into the top right side window.

This only happens for filetypes which Vim recognizes. It doesn't happen for a Netrw Directory Listing window, or a *.backup file for instance.

Using MacVim 7.4.52. The OS X 10.9 system install of Vim 7.3 does not exhibit this behaviour.

My reduced .vimrc:

set nocompatible

" Vundle
filetype off 
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'

Bundle 'spolu/dwm.vim'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions