In this chapter, I’m going to cover a topic that it would seem most other books on the subject of Vim ignore: sessions. The principal idea behind sessions is that we’re creatures of habit, and we typically find ourselves repeating things that we know and understand. Imagine a recurring project in which you end up having the same layout open (and maybe even the same files open). Why not record that setup into a session? It’ll make getting up and running much quicker.

I’ll give you an example: I’m a software engineer by trade, and so I work on many different style projects. One day, I might be writing PHP code, the next I might ...

Get Pro Vim now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.