Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 53159f5d33b3f800023aa880

Vim tetris

Vim can play tetris too!

Start file
|-------------------| Score: 0
|                   | Next:
|                   |   ##
|                   |   ##
|                   |
|                   |
|                   |
|     #             |
|     #             |
|     ##            |
|                   |
|                   |
|                   |
|                   |
|                   |
|                   |
|                   |
|                   |
|                   |
|####   ############|
|  #################|
|###################|
|-------------------|
End file
|-------------------| Score: 1
|       ##          | Next:
|       ##          |   ##
|                   |  ##
|                   |
|                   |
|                   |
|                   |
|                   |
|                   |
|                   |
|                   |
|                   |
|                   |
|                   |
|                   |
|                   |
|                   |
|                   |
|                   |
|  #################|
|###################|
|-------------------|

View Diff

1,4c1,8
< |-------------------| Score: 0
< |                   | Next:
< |                   |   ##
< |                   |   ##
---
> |-------------------| Score: 1
> |       ##          | Next:
> |       ##          |   ##
> |                   |  ##
> |                   |
> |                   |
> |                   |
> |                   |
8,10d11
< |     #             |
< |     #             |
< |     ##            |
20d20
< |####   ############|

Solutions by @jkrause314:

Unlock 2 remaining solutions by signing in and submitting your own entry
Created by: @hannesr

101 active golfers, 352 entries

Solutions by @jkrause314:
21
#19 - Jon Krause / @jkrause314

12/29/2015 at 05:03AM

22
#>28 - Jon Krause / @jkrause314

12/28/2015 at 05:52PM