zhaocai / GoldenView.Vim

Always have a nice view for vim split windows!
http://zhaocai.github.io/GoldenView.Vim/
219 stars 14 forks source link

ignore the MRU plugin window #2

Open dwierenga opened 11 years ago

dwierenga commented 11 years ago

It would be really nice to have GoldenView not auto-resize the window for Most Recently Used plugin

http://www.vim.org/scripts/script.php?script_id=521

zhaocai commented 11 years ago

what are the bufname or filetype?

dwierenga commented 11 years ago

Sorry, I'm not really all that familiar with Vim scripting to know for sure how to get those answers. Hopefully the output of the buffer_name function is what you need.

Running this:

:echo buffer_name(2)

gives this output:

__MRU_Files__
zhaocai commented 11 years ago

try the develop branch.

dwierenga commented 11 years ago

The develop branch didn't change the behavior, the MRU window still gets resized by GoldenView.

zhaocai commented 11 years ago

I will install MRU plugin and test it later. Maybe tomorrow.

zhaocai commented 11 years ago

I tried it. and I do not have any problem. please Check the version 1.2.0.

dwierenga commented 11 years ago

1.2 doesn't fix it on the machine i'd been using.

however, i tried it on a different machine and it worked! My vim set up on the two machines is the same as I store my vimrc and plugins in source control.

does GoldenView depend on certain compiled features of Vim? i definitely have different vim versions with different compiler flags on the two machines.

zhaocai commented 11 years ago

GoldenView use pure VimL (except for debugging, I use ruby)

A few things to check:

What is the environment of the vim?

  1. what are the results of :version?
  2. do you see any error message :message
dwierenga commented 11 years ago

I don't see anything in :messages that looks like an error.

The version that doesn't work is this:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Sep 21 2012 12:12:33) Compiled by dwierenga Normal version without GUI. Features included (+) or not (-): -arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent -clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments -conceal +cryptv -cscope +cursorbind +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path +find_in_path +float +folding -footer +fork() +gettext -hangul_input -iconv +insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape -mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse +mouse_xterm -multi_byte +multi_lang -mzscheme +netbeans_intg -osfiletype +path_extra +perl +persistent_undo +postscript +printer -profile -python -python3 +quickfix +reltime -rightleft -ruby +scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" user exrc file: "$HOME/.exrc" fall-back for $VIM: "/u0/corpsys_tools/vim/share/vim" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -D_FORTIFY_SOURCE=1 Linking: gcc -Wl,-E -L/usr/local/lib -o vim -lncurses -lselinux -Wl,-E -fstack-protector -L/usr/local/lib -L/u0/corpsys_tools/perl5/lib/5.16.1/x86_64-linux/CORE -lperl -lm -lcrypt -lutil -lc

zhaocai commented 11 years ago

I am not sure about the issue based on what you give. But I can tell the version of your vim lacks lots of vim features. Can you try to install a new version of vim (./configure --with-features=huge --enable-rubyinterp=yes)?

And, if you can make a version supporting +ruby. I can make a develop verison to track the problem.