Tab Pages in Vim
This tip works only with MacVim (or GVim).
In Vim you can use one tab page per file, like in other editors, but I think it doesn’t work very well. I prefer to use one tab page for every project. I used to use a MacVim window for project, but the copy and paste was a nightmare.
The rule is simple. Every tab page is a project and it has a [local] working
directory that is displayed in the
1 2 3 4 5 6 7
Event DirEnter and DirLeave
I would like to see in the next versions of Vim these two events. They would be very useful to write new plugins project-oriented. In the meanwhile I’ve downloaded the source code of Vim. After ten years, maybe I’ll try again to write some C code again.
For more info
:h autocommand-events and