zhaocai / GoldenView.Vim

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

Why is this mapping not working? #13

Closed ReneFroger closed 10 years ago

ReneFroger commented 10 years ago

First, I would like to thank you for the tremendous effort you spend on Goldview. It is an awesome plugin to have it! Many thanks for that!

I have a question.

Why is a keymapping like this:

 nmap <C-y> <Plug>GoldenViewSwitchMain

working properly.

But a keymapping like this:

    nmap <C-y> <Plug>GoldenViewSwitchToggle

Will not work? I don't get it.

godenji commented 10 years ago

@ReneFroger I believe you have to focus on a particular split in some cases in order for switch main and switch toggle to work. For example, when focus is in main panel switch focus (F8) does nothing; however, if focus is in any other panel, switch main works.

Similarly, for switch toggle if no switch main has yet occurred (S-F8) does nothing, you need to F8 first.

Bit glitchy, but cool plugin, like dwm.vim, tiny and useful ;-)

ReneFroger commented 10 years ago

Hello Godenji, thanks for your help. After I posted this issue, I was thinking about it, and tried it again. Then it worked. Your explanation is useful, now I can understand why it didn't worked earlier. It is really appreciated, thanks for that!