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

96 active golfers, 338 entries

Leaderboard (lowest score wins):
23
#31 - Marchand Paul-Valère / @pvmarch

03/05/2014 at 02:26PM

23
#32 - Domingue Justin / @_jdomingue

03/06/2014 at 03:18AM

23
#33 - Nathan / @NathanHarperoni

03/09/2014 at 04:23PM

23
#34 - Jeff / @just_geophree

03/29/2014 at 03:29AM

23
#35 - Juan Luis / @rufianw

07/03/2014 at 03:01AM

23
#36 - Michi Loro / @michiloro

07/16/2014 at 09:36AM

23
#37 - emblox / @emblox

02/29/2016 at 05:54AM

23
#38 - Dimitar Dimitrov / @kurkale6ka

03/22/2016 at 11:26AM

24
#39 - Thomas GUILLORY / @thomasguillory

03/04/2014 at 12:15PM

24
#40 - oliver mueller / @marcontwit

03/04/2014 at 08:28PM

24
#41 - Tim Green / @iamtimgreen

03/05/2014 at 01:02AM

24
#42 - Jack Jacquemmoz / @MozJack

03/05/2014 at 09:38AM

24
#43 - Pedro Santos / @pedrosans

03/05/2014 at 04:36PM

24
#44 - Romain Knezevic / @rkjdid

03/08/2014 at 12:12PM

24
#45 - BurntBrainSoup / @BurntBrainSoup

04/16/2014 at 12:16AM

24
#46 - Adrian Bradd / @keepab

07/04/2014 at 02:21PM

25
#47 - Hannes Remahl / @hannesr

03/04/2014 at 03:09PM

25
#48 - Aleksandr Block / @AleksandrBlock

03/04/2014 at 06:56PM

26
#49 - Robert Siemieniec / @rsiemieniec

03/04/2014 at 12:34PM

26
#50 - Daniel Lundin / @danielundin

03/05/2014 at 02:34PM

26
#51 - Peter Piekarczyk / @ppskeet

03/06/2014 at 05:38AM

26
#52 - Jean / @ygu0_0

03/10/2014 at 01:30AM

26
#53 - Graham Batty / @stormbrew

03/13/2014 at 07:40AM

26
#54 - Stephen Drodge / @sjdrodge

03/15/2014 at 09:19PM

26
#55 - Jacob / @jayekub

03/23/2014 at 12:18AM

26
#56 - DHM / @DHM29978992

05/01/2018 at 03:08AM

27
#57 - cj / @cj01101

03/07/2014 at 11:08PM

27
#58 - Brandor / @Brandombot

03/26/2014 at 11:11PM

27
#59 - Ram Tamtam / @ramtamtamtam

06/29/2014 at 07:53PM

27
#60 - playalong / @playwithit42

07/08/2014 at 12:06PM