mattboehm / vim-accordion

A vim window manager for people who love splits
101 stars 3 forks source link

Accordian is not spliting the windows in vim7.4 #39

Closed shaildev123 closed 7 years ago

shaildev123 commented 8 years ago

Hi,

I have installed plugin in windows vim7.4. I opened a file and i am firing a command :Accordian 2 but it is not doing anything.

Please help me out.

mattboehm commented 8 years ago

Make sure you're spelling it Accordion and not Accordian as you spelled it above. If that doesn't fix it, let me know and I can debug it further with you.

shaildev123 commented 8 years ago

Thanks Mattboehm. I just checked it the spelling is correct. Infact i am not getting any error after firing this command on gvim.

mattboehm commented 8 years ago

When I get home I'll try installing on my windows machine to reproduce. In the meantime, try typing :Accor and hitting tab and make sure it tab-completes. If not, the plugin probably isn't installed properly.

Another issue is that it's possible I wasn't clear enough in the docs and you're misunderstanding what the command does. Accordion itself does not make new splits, it just resizes existing ones. So, when you edit a file in vim, first make a handful of vertical splits by running :vsp 2 or 3 times. Then try running :Accordion 2 and see if the splits resize so that only two are visible.

wtanksleyjr commented 8 years ago

I'm running in Ubuntu (plus Pathogen), tried the tab-completion with 4 splits open and ":Accor 3". It autocompletes, and pauses just a bit when I press , but nothing changes. I've installed only a few hand-selected plugins, like fugitive and sensible.vim. EDIT: Oh, vim 7.4.

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 2 2014 19:39:32) Included patches: 1-52 Modified by pkg-vim-maintainers@lists.alioth.debian.org Compiled by buildd@ Huge version without GUI. Features included (+) or not (-): +acl +dialog_con +insert_expand +mouse_sgr -ruby +vertsplit +arabic +diff +jumplist -mouse_sysmouse +scrollbind +virtualedit +autocmd +digraphs +keymap +mouse_urxvt +signs +visual -balloon_eval -dnd +langmap +mouse_xterm +smartindent +visualextra -browse -ebcdic +libcall +multi_byte -sniff +viminfo ++builtin_terms +emacs_tags +linebreak +multi_lang +startuptime +vreplace +byte_offset +eval +lispindent -mzscheme +statusline +wildignore +cindent +ex_extra +listcmds +netbeans_intg -sun_workshop +wildmenu -clientserver +extra_search +localmap +path_extra +syntax +windows -clipboard +farsi -lua -perl +tag_binary +writebackup +cmdline_compl +file_in_path +menu +persistent_undo +tag_old_static -X11 +cmdline_hist +find_in_path +mksession +postscript -tag_any_white -xfontset +cmdline_info +float +modify_fname +printer -tcl -xim +comments +folding +mouse +profile +terminfo -xsmp +conceal -footer -mouseshape +python +termresponse -xterm_clipboard +cryptv +fork() +mouse_dec -python3 +textobjects -xterm_save +cscope +gettext +mouse_gpm +quickfix +title -xpm +cursorbind -hangul_input -mouse_jsbterm +reltime -toolbar +cursorshape +iconv +mouse_netterm +rightleft +user_commands system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" fall-back for $VIM: "/usr/share/vim" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -We rror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: gcc -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim -lm -ltinfo -lnsl -lselinux -l acl -lattr -lgpm -ldl -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinke r -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

mattboehm commented 7 years ago

@wtanksleyjr Sorry that I didn't see your comment sooner. Assuming those 4 splits are all vsplits, then this definitely sounds like a bug. I will do my best to reproduce locally, but will also try to add a debug mode that can tell users what the current settings are and try to help narrow down why it's not working

wtanksleyjr commented 7 years ago

Wait, you mean Accordion only works with "vert" splits? I use only ":new" and ":diffsplit", almost never "vert". So that might be the problem!

Nonetheless, and either way, I'd be happy to help debug. Right now I'm using "golden-ratio", which seems nice enough.

On Tue, Dec 20, 2016 at 8:26 AM Matthew Boehm notifications@github.com wrote:

@wtanksleyjr https://github.com/wtanksleyjr Sorry that I didn't see your comment sooner. Assuming those 4 splits are all vsplits, then this definitely sounds like a bug. I will do my best to reproduce locally, but will also try to add a debug mode that can tell users what the current settings are and try to help narrow down why it's not working

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mattboehm/vim-accordion/issues/39#issuecomment-268288032, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPz-a5QhGyKCvfrkTTe3drmmkQ_C5-Gks5rKAGigaJpZM4JD1A2 .

mattboehm commented 7 years ago

Right now, Accordion defaults to vertical splits, but you can add let g:accordion_mode="h" to make it globally resize hsplits.

It would probably be a good idea to add :AccordionH and :AccordionV commands that would override the global setting and be easier for users than adjusting their vimrc.

wtanksleyjr commented 7 years ago

Thank you -- then my "bug" report definitely is just my misreading of the description.

I will note that the documentation makes it very hard to tell this is how Accordion works, though -- even the animated GIFs don't make it obvious.

On Tue, Dec 20, 2016 at 12:25 PM Matthew Boehm notifications@github.com wrote:

Right now, Accordion defaults to vertical splits, but you add let g:accordion_mode="h" to make it globally resize hsplits.

It would probably be a good idea to add :AccordionH and :AccordionV commands that would override the global setting and be easier for users than adjusting their vimrc.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mattboehm/vim-accordion/issues/39#issuecomment-268349184, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPz-VRY74_iyXSKhAkIEC-Z6_s0-yMeks5rKDm3gaJpZM4JD1A2 .

mattboehm commented 7 years ago

@wtanksleyjr Thanks for the feedback; I've clarified this in the readme by giving it its own section: https://github.com/mattboehm/vim-accordion#horizontal-splits .

I'm going to consider this issue closed, but will create a separate one for AccordionH and AccordionV commands.