zhaocai / GoldenView.Vim

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

Toggling main does not move cursor #16

Open latortuga opened 9 years ago

latortuga commented 9 years ago

Hi, thanks for the cool plugin!

I noticed that if I set a file to be main (using my binding for <Plug>GoldenViewSwitchMain), and subsequently use my binding for <Plug>GoldenViewSwitchToggle, my cursor does not switch back to the main area - that is, it does toggle the main and most-recently main buffers but my cursor stays in the buffer that was previous main rather than switching to the new main that has been toggled in. Could you either a) add this behavior b) make it configurable somehow or c) give me some tips on how to implement this myself with the existing exposed API?