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

93 active golfers, 302 entries

Leaderboard (lowest score wins):
21
#1 - Urtica dioica / @udioica

03/04/2014 at 08:16PM

21
#2 - MP / @Enemy_m

03/04/2014 at 09:02PM

21
#3 - Kerson Hsiao / @KersonHsiao

03/05/2014 at 02:25AM

21
#4 - Geraint Hywel / @g_mawr

03/05/2014 at 06:02PM

21
#5 - N / @Neo7891

03/06/2014 at 04:02PM

21
#6 - Bill Gates / @BillGat80055899

03/07/2014 at 04:32PM

21
#7 - Marcin Sza / @coot_

03/07/2014 at 06:38PM

21
#8 - Petro Тrouq / @zulolosi

03/09/2014 at 11:59PM

21
#9 - Jason Don O'Conal / @lovek323

03/12/2014 at 05:16AM

21
#10 - Matthew Kirk / @mjkirk

03/13/2014 at 03:50PM

21
#11 - John Braxler / @braxler

03/13/2014 at 09:12PM

21
#12 - Nick Bakkegaard / @Bakkemand

03/15/2014 at 10:43PM

21
#13 - Greg Hues / @ghues

03/27/2014 at 01:55AM

21
#14 - kiho choi / @ArtStandAlone

04/23/2014 at 12:34PM

21
#15 - Kane Wallmann / @ToCsIcK

04/27/2014 at 10:22AM

21
#16 - Vito / @GodFather

07/07/2014 at 04:11AM

21
#17 - Lasse Dalegaard / @ldalegaard

07/07/2014 at 09:37PM

21
#18 - Michael Comerford / @MComerford1

09/20/2014 at 07:49PM

21
#19 - Jon Krause / @jkrause314

12/29/2015 at 05:03AM

21
#20 - Turkey Man / @lvturkeyman

11/26/2017 at 09:48AM

22
#21 - Sntano Euhsk / @SEuhsk

06/16/2014 at 03:17AM

22
#22 - John Meisner / @jmeisned

06/25/2014 at 07:52PM

22
#23 - Matthieu Crapet / @mcr05

12/29/2014 at 02:31PM

23
#24 - Marcin Cabaj / @marcincabaj

03/04/2014 at 06:55PM

23
#25 - Milind Ganjoo / @mganjoo

03/04/2014 at 07:45PM

23
#26 - William Snyders / @iam2391212

03/04/2014 at 08:25PM

23
#27 - John Gray Cole / @johngraycole

03/05/2014 at 02:27AM

23
#28 - Marchand Paul-Valère / @pvmarch

03/05/2014 at 02:26PM

23
#29 - Domingue Justin / @_jdomingue

03/06/2014 at 03:18AM

23
#30 - Nathan / @NathanHarperoni

03/09/2014 at 04:23PM