Barbaric Tip of the Week is a weekly series whose main purpose is to share tiny bits of knowledge that I find specially useful and interesting.
I started my machine, opened the command line, ran vim and opened my weekly planning, project notes and overall work checklist as I usually do, in the exact window configuration that I usually use, which my weekly planning window on the left, and job checklist and project notes stacked on the right. Everything was the exactly the same as the previous 999 times, everything but for one thing, this time a thought sprang to my mind: Wouldn’t it be awesome if I could save this file/window configuration and just load it at all once?
Well… That was about time… there is indeed a way to do that… :)
You can save your complete session in vim, that is, the files you have opened with the specific windows or tab configurations that you’re using, with the :mksession command:
Later, the next time you open vim you can load that session with :source:
Or alternatively open vim directly with a specific session by using the -S option:
PS> gvim -S ~/jobsession.vim
Bonus tip: Did you know that you can also resize windows with the :resize command? You can use :vertical resize <numberOfLines> to resize a window’s width, and :resize <numberOfLines> to resize its height. Cool right?
A couple of weeks I did my first certification exam ever and I passed! Wihoo! I thought that you who are planning on taking this or any other certification exam could maybe find my experience of value and thus here we are. :)
I approached the whole exam thing mainly as an excuse to learn and refresh my knowledge in web development, starting from the very basics to the more advanced APIs that I hadn’t had the chance to look into, trying to fill in all the gaps that I felt I have had in my web dev knowledge in the past. So this is not going to be an article on how to pass the exam with the least amount of effort possible, no tricks or shortcuts, it is just going to be an article about how I went about preparing for the exam, just plain old studying, practicing, coding, learning and writing a freaking exam XD.