Keyboard macros in gvim are much easier than using the map command. Basically you do:

qx - to start recording a macro called ‘x’ q - to stop recording the macro @x - to execute it