Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jjt opened this issue Mar 22, 2014 · 4 comments
Open

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

jjt opened this issue Mar 22, 2014 · 4 comments

Comments

@jjt
Copy link

jjt commented Mar 22, 2014

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'
@spolu
Copy link
Owner

spolu commented Mar 24, 2014

Hi @jjt

To be perfectly transparent I absolutely don't have the time to track this bug down. There is definitely a bunch of places where dwm.vim does not play that well with vim functions.

I hope I'll get some time later or that a good soul (you?) find the time to look into it! :)

@jjt
Copy link
Author

jjt commented Mar 24, 2014

Only so many hours in the day!

Thanks for the reply - if I end up digging into it I'll put together a PR.

@spolu
Copy link
Owner

spolu commented Mar 24, 2014

👍 :)

@TimoDritschler
Copy link

Hello @spolu and @jjt !
I just now noticed that the advice I gave to @llinfeng here also seems to be fixing your issue. Can you try and reproduce it, to see if it really helps?

Sadly, I am pretty new to vim-coding and have no idea what buflisted actually does, so i can not tell for sure that my 'fix' isn't breaking anything else. However, I have not encountered any problems with it so far.

-Bests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants