Re:Vim Splits – Move Faster and More Naturally
by AlexSolution on Thursday April 18, 2013 @11:48AM
(#5571266)
Any advantage to this plugin over mapping one key to ':tabopen' and another to ':tabclose %'? I have this in my .vimrc and it seems to get the same results:
[ Parent
| on HN ]
Re:Vim Splits – Move Faster and More Naturally
by terhechte on Thursday April 18, 2013 @12:24PM
(#5571465)
I already have a fixed set of tabs open for different use cases, and switch between them frequently. Adding a new tab to that temporarily would probably confuse me. I may try the tabedit / tabclose solution nevertheless though, I hadn't thought about doing it that way. The advantage being that I'd have one plugin less :)
Re:Vim Splits – Move Faster and More Naturally
by leephillips on Thursday April 18, 2013 @12:10PM
(#5571377)
Splits are not tabs.
Edit re below: OK, good point. But I would still prefer the plugin (and plan to install it) because I just don't use tabs, preferring to stick with splits.
Re:Vim Splits – Move Faster and More Naturally
by mkenyon on Thursday April 18, 2013 @12:15PM
(#5571416)
True, but AlexSolution is saying that you can get the same effect without a plugin.
Open your split as a new tab. The new tab (i.e. that split) takes up all of vim. When you want to return to your splits, just close that tab.