Tech and travel

Posts

Inserting the current filename in Vim

2006-11-02

To insert the current file name in Vim, go to insert mode. Then type Control-R % . With Control-R you can do more things : Control-R =5*4 This inserts 20 into the current cursor position. Some examples can be found here

Firenze

2006-09-30

Some pictures of a trip to Firenze, Siena and Pisa.

The Duomo, hard to get on a picture, very narrow streets all around it

The Duomo, hard to get on a picture, very narrow streets all around it

Portugal

2006-08-07

Some pictures of a trip to Portugal.

Tower of Belem

Tower of Belem

Using the subst command in Windows

2005-08-08

The subst command in Windows XP (and possible earlier versions), allows you to assign drive letters to directories on the local disk. This can be used to create shortcuts in Windows Explorer for directories you use often. For example let’s assume you have a C: drive, that has a directory called work\project\subproj\code. This is where you store your source code for the current project. Having to go to that directory every time you open Windows Explorer (WE) is a bit of a nuisance, especially because WE doesn’t remember where you were if you close and reopen it.

Buenos Aires

2004-12-12

Some pictures of a trip to Buenos Aires.

Still not over the Falklands war

Still not over the Falklands war

Copyright (c) 2026 Michel Hollands