6 ms·
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:
by AlexSolution 13y ago
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:
nmap <F4> :tabedit %<CR>
nmap <F5> :tabclose<CR>
- leephillips 13y agoSplits 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.
- mkenyon 13y agoTrue, 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.
- terhechte 13y agoI 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 :)
- rane 13y agoA single mapping instead of two.