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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 102 remaining solutions by signing in and submitting your own entry
#103 Rafał Solarski / @solarskirafal - Score: 258 - 04/17/14 @ 22:40
lllkkkklhhhjjjjjjjjkkkjhjjhhhgglllllkjjjkkkjjjjjjjjjjjjjjjjjjjhhhhzkkjxxxxxxxxxxxxxxxxxxx jkka                   <Esc>jhhhhjkkkkkkkkkkkkkkhhhhhhhhhxjxjxxi  <Esc>ki <Esc>jkki <Esc>jhjjjjjhhkkklkkkkkkkkkggjkjllllllla##<Del><Del><Esc>hji##<Del><Del><Esc>jkkjjlllllllllllllllhxjkkkkllllllr1<Esc>:q<CR>::w<CR><CR>:q<CR>

0 comments


Created by: @hannesr

103 active golfers, 364 entries

Leaderboard (lowest score wins):
40
#91 - Kevin Gillieron / @gilliek42

03/12/2014 at 12:27PM

40
#92 - RockerZZY / @rocker_zzy

06/27/2020 at 11:46PM

41
#93 - Gerald Tilma / @GeraldTilma

10/21/2015 at 02:22AM

44
#94 - CJ Avilla / @cjav_dev

05/11/2014 at 04:27AM

44
#95 - Ben Spoor / @bpspoor

06/25/2014 at 04:23AM

45
#96 - Leif Bladt / @leifbladt

03/05/2014 at 03:07PM

53
#97 - Jurica / @Jurica34581259

12/12/2018 at 11:54AM

54
#98 - Dmitry Teslenko / @krab_mozga

04/04/2014 at 06:57AM

63
#99 - Barry Nichols / @Barry_Nichols

03/12/2014 at 01:13AM

66
#100 - Formally Dallin / @FormallyDallin

03/24/2015 at 10:03PM

68
#101 - Mattias Fransson / @azzidoos

09/09/2014 at 10:05AM

166
#102 - 高橋亮 / @RyoYado

11/11/2014 at 12:53PM

258
#103 - Rafał Solarski / @solarskirafal

04/17/2014 at 10:40PM