zhaocai / GoldenView.Vim

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

[suggestion] GoldenViewNext shouldn't jump to next tab #17

Open nirvana6 opened 9 years ago

nirvana6 commented 9 years ago

I set four mappings in vim as bellow:

nmap <silent> wn    <Plug>GoldenViewNext
nmap <silent> wp    <Plug>GoldenViewPrevious
nmap <silent> tn    :tabn<CR>
nmap <silent> tp    :tabp<CR>

I expect <silent>tn and <silent>tp switch between tabs, while <silent>wn and <silent>wp only switch between multi-windows In The Same Tab

However, When I type <silent>wp , I found when it comes to the last window in a tab, the foucus will switch to the next tab.

How much I wish the foucus at the end window of 1st tab switch(roll) to the head-windlow of the 1st tab. After all, I have had <silent>tp and <silent>tn do the best job.

Thanks for consideration.

alok commented 7 years ago

+1 to this. This behavior is rather jarring and disabling it makes it easy to cycle in between splits in a tab.

It's not really in the spirit of how splits, buffers, and tabs are meant to be used in vim. Tabs are meant as a way of saving layout and are more convenient as a way to provide separation between projects. Splits and buffers in a tab are what goldenview should cycle between, rather than splits and tabs.