Is people doing something else with tabs that I'm missing here?
Is people doing something else with tabs that I'm missing here?
* no explicit saves: files automatically autosave
* the editor keeps a max of N tabs open using least-recently-used
* browser-like navigation by clicking into symbols combined with forward/back history
The autosave part was weird at first, but it makes so much sense. Why bother with explicit saving, prompting "do you want to save", manually closing tabs, etc. Combined with the navigation features, you never care which tabs are open. Edit history plus version control are much better than a simple save/discard model.
1) Look at docs in one pane and code in another
2) Look at some combination of the model/view/controller triad at the same time
3) Look at a header file and the implementation file
4) Work on a rake (for example) task while seeing the code it will run
5) Look at two different spots in the same file
edit 6) work on a javascript file next to the HTML page it's used in
7) look at a class and its superclass at the same time
8) look at a class and the code that's calling it at the same time
Personally I use some (2-7?) buffers in vim and cycle through them. When I don't anticipate editing a file for a while I close that buffer.
But I agree with you, I hate quitting vim, it seems like I lose my place much easier when I no longer have those files open.
Once you free yourself from this list of things that are "open" (whatever that means) you simply stop caring about the number of items in what is effectively just a "recently visited" list. What value is there in killing those buffers if there's no list for them to clutter? (yes there are lists of buffers in Emacs but you only see them if you want to)
In that light here's my answer to your question: Because he hasn't exited his editor and the number of "open files" has no significance or impact on workflow. While you're deciding whether or not to close a file and trying to anticipate when you may edit it next he's already moved on to editing the next thing.
A couple of years ago I used to keep 100s of tabs open in FF. Then I went mobile and started caring about watts. Not the same situation, but I think it influenced my few-files-open habits.
These days I use TextMate more than Emacs and for small personal projects I like quickly switching between say the readme, makefile, code, and test with Cmd-[1-9]. If there are few files to edit tabs can be advantageous. This stuff is highly personal and dependent on workflow.
Main exception being the alternate buffer for which I have a quick shortcut - (<leader>, - <leader> being set to ,) The consequence is I usually have piles of buffers open at once.
Edit: sjs puts it better above. Having to think 'is this file already opened or not' and then using that information to determine the command you use to switch to it is rather annoying.