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):
23
#31 - Marcin Cabaj / @marcincabaj

03/04/2014 at 06:55PM

23
#32 - Milind Ganjoo / @mganjoo

03/04/2014 at 07:45PM

23
#33 - William Snyders / @iam2391212

03/04/2014 at 08:25PM

23
#34 - John Gray Cole / @johngraycole

03/05/2014 at 02:27AM

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

03/05/2014 at 02:26PM

23
#36 - Domingue Justin / @_jdomingue

03/06/2014 at 03:18AM

23
#37 - Nathan / @NathanHarperoni

03/09/2014 at 04:23PM

23
#38 - Jeff / @just_geophree

03/29/2014 at 03:29AM

23
#39 - Juan Luis / @rufianw

07/03/2014 at 03:01AM

23
#40 - Michi Loro / @michiloro

07/16/2014 at 09:36AM

23
#41 - emblox / @emblox

02/29/2016 at 05:54AM

23
#42 - Dimitar Dimitrov / @kurkale6ka

03/22/2016 at 11:26AM

24
#43 - Thomas GUILLORY / @thomasguillory

03/04/2014 at 12:15PM

24
#44 - oliver mueller / @marcontwit

03/04/2014 at 08:28PM

24
#45 - Tim Green / @iamtimgreen

03/05/2014 at 01:02AM

24
#46 - Jack Jacquemmoz / @MozJack

03/05/2014 at 09:38AM

24
#47 - Pedro Santos / @pedrosans

03/05/2014 at 04:36PM

24
#48 - Romain Knezevic / @rkjdid

03/08/2014 at 12:12PM

24
#49 - BurntBrainSoup / @BurntBrainSoup

04/16/2014 at 12:16AM

24
#50 - Adrian Bradd / @keepab

07/04/2014 at 02:21PM

25
#51 - Hannes Remahl / @hannesr

03/04/2014 at 03:09PM

25
#52 - Aleksandr Block / @AleksandrBlock

03/04/2014 at 06:56PM

26
#53 - Robert Siemieniec / @rsiemieniec

03/04/2014 at 12:34PM

26
#54 - Daniel Lundin / @danielundin

03/05/2014 at 02:34PM

26
#55 - Peter Piekarczyk / @ppskeet

03/06/2014 at 05:38AM

26
#56 - Jean / @ygu0_0

03/10/2014 at 01:30AM

26
#57 - Graham Batty / @stormbrew

03/13/2014 at 07:40AM

26
#58 - Stephen Drodge / @sjdrodge

03/15/2014 at 09:19PM

26
#59 - Jacob / @jayekub

03/23/2014 at 12:18AM

26
#60 - DHM / @DHM29978992

05/01/2018 at 03:08AM