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

102 active golfers, 353 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 Szamotulski / @me_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

21
#21 - Mihai / @mihaicristiant

03/01/2019 at 09:17AM

21
#22 - james_bunch / @james_bunch

04/03/2019 at 01:40AM

21
#23 - serent / @serent

04/03/2019 at 10:42PM

21
#24 - Miłosz Łakomy / @foobar01123

04/03/2020 at 04:12PM

21
#25 - Jean George / @JeanGeo20504212

04/05/2022 at 01:20PM

21
#26 - Peppa Pig / @PeppaPi95550250

07/03/2024 at 04:31AM

22
#27 - Sntano Euhsk / @SEuhsk

06/16/2014 at 03:17AM

22
#28 - John Meisner / @jmeisned

06/25/2014 at 07:52PM

22
#29 - Matt / @mcr05

12/29/2014 at 02:31PM

23
#30 - Marcin Cabaj / @marcincabaj

03/04/2014 at 06:55PM