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 91 remaining solutions by signing in and submitting your own entry
#92 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

92 active golfers, 301 entries

Leaderboard (lowest score wins):
28
#61 - David Shields / @salacio

04/22/2014 at 08:41PM

28
#62 - ~blob8108 / @blob8108

04/28/2014 at 12:03PM

28
#63 - Cristian Lupașcu / @clupasq

02/23/2016 at 04:20AM

28
#64 - tPenguinLTG / @tpenguinltg

05/01/2016 at 09:19PM

28
#65 - Gurukandhamoorthi / @Gurukandhamoor1

07/24/2017 at 03:53PM

29
#66 - Bambu / @bambumandinga

04/03/2014 at 11:36PM

29
#67 - zhuochun / @zhuochun

04/14/2014 at 07:33AM

29
#68 - 土ヤ / @ttsuchiya

04/25/2014 at 05:01AM

29
#69 - Oleg Tsymbalyuk / @oleg_tc

05/28/2014 at 12:04PM

29
#70 - some call me mattp / @mattpep

05/12/2016 at 11:46PM

30
#71 - Jared Meyering / @Jmeyering

03/05/2014 at 10:46PM

30
#72 - brett / @brettyukich

03/20/2014 at 11:30PM

30
#73 - Chaitanya Desu / @ChaituNu

05/04/2014 at 06:17AM

31
#74 - 영훈 / @odjfnrtm

03/09/2014 at 05:33AM

31
#75 - kAworu / @only4vimgolf

03/12/2014 at 11:27AM

31
#76 - Carlos A Henríquez Q / @lagunex

01/18/2015 at 09:49PM

32
#77 - RobertT / @techrt2050

03/12/2014 at 04:17AM

32
#78 - Paul / @MapCalculator

06/23/2015 at 12:24AM

34
#79 - Peter Lacey-Bordeaux / @placeybordeaux

03/05/2014 at 06:58PM

38
#80 - Bart / @oneofmanybarts

03/10/2014 at 02:27PM

39
#81 - Hugo / @szeyattai

08/20/2018 at 08:56AM

40
#82 - Kevin Gillieron / @gilliek42

03/12/2014 at 12:27PM

41
#83 - Gerald Tilma / @GeraldTilma

10/21/2015 at 02:22AM

44
#84 - w1zeman1p / @wizemanip

05/11/2014 at 04:27AM

44
#85 - Ben Spoor / @bpspoor

06/25/2014 at 04:23AM

45
#86 - Leif Bladt / @leifbladt

03/05/2014 at 03:07PM

54
#87 - Dmitry Teslenko / @krab_mozga

04/04/2014 at 06:57AM

63
#88 - Barry Nichols / @Barry_Nichols

03/12/2014 at 01:13AM

66
#89 - Formally Dallin / @FormallyDallin

03/24/2015 at 10:03PM

68
#90 - Mattias Fransson / @azzidoos

09/09/2014 at 10:05AM