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 548c6254c3fe990002bb28f7

Hail to Alekseï Pajitnov

Wanna play tetris? Don't panic, it's quite long but there's no piece rotation. Little advice: source the file, Luke!

Start file
  ||          ||   Score
  ||          ||   -----
  ||   NN     ||     n/a
  ||    NN    ||
  ||          ||   Level
  ||          ||   -----
  ||          ||       1
  ||          ||
  ||          ||   Lines
  ||          ||   -----
  ||          ||       0
  ||          ||
  ||          ||
  ||          ||
  ||          ||
  ||          ||
  ==============

# Your pieces:
let @a='rAj.j.l.2kh'
let @b='rBl.j.j.2kh'
let @m='rMj.l.j.2kh'
let @n='rNl.j.l.k2h'
let @o='ROOhj.kh'
let @t='rTj.h.2l.kh'
let @w='rWj.j.j.3k'
End file
  ||          ||   Score
  ||          ||   -----
  ||          ||     n/a
  ||      W   ||
  ||      W   ||   Level
  ||      W   ||   -----
  ||      W   ||       1
  ||          ||
  ||          ||   Lines
  ||          ||   -----
  ||          ||       7
  ||          ||
  || OO  M BB ||
  ||AOOOOMMAB ||
  ||ANNOOTMAB ||
  ||AANNTTTAA ||
  ==============

# Your pieces:
let @a='rAj.j.l.2kh'
let @b='rBl.j.j.2kh'
let @m='rMj.l.j.2kh'
let @n='rNl.j.l.k2h'
let @o='ROOhj.kh'
let @t='rTj.h.2l.kh'
let @w='rWj.j.j.3k'

View Diff

4,8c4,8
<   ||   NN     ||     n/a
<   ||    NN    ||
<   ||          ||   Level
<   ||          ||   -----
<   ||          ||       1
---
>   ||          ||     n/a
>   ||      W   ||
>   ||      W   ||   Level
>   ||      W   ||   -----
>   ||      W   ||       1
12,16c12
<   ||          ||       0
<   ||          ||
<   ||          ||
<   ||          ||
<   ||          ||
---
>   ||          ||       7
17a14,17
>   || OO  M BB ||
>   ||AOOOOMMAB ||
>   ||ANNOOTMAB ||
>   ||AANNTTTAA ||

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 14 remaining solutions by signing in and submitting your own entry
#15 Dax / @zacoxi - Score: 75 - 11/16/18 @ 08:10
20D:w|so%<CR>u4GfnFNhr lr j.l.l@w15Gll@ajl@nkk@ollj@ollj@tkk@mll@bj@a12Gf0r7ZZ

0 comments


Created by: @mcr05

15 active golfers, 37 entries

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

12/15/2014 at 08:48PM

51
#2 - John Braxler / @braxler

12/16/2014 at 02:06PM

51
#3 - Peppa Pig / @PeppaPi95550250

07/03/2024 at 03:17AM

52
#4 - Petro Тrouq / @zulolosi

12/20/2014 at 01:29PM

52
#5 - Saki Gw / @Sakigw

11/22/2019 at 12:05PM

53
#6 - Jon Krause / @jkrause314

01/25/2016 at 01:44AM

53
#7 - elmoloves / @ElmoLovesSilly

09/17/2017 at 07:29PM

55
#8 - ———đίxίє—flαтlίиє——— / @_dixie_flatline

01/11/2015 at 04:01AM

55
#9 - tPenguinLTG / @tpenguinltg

12/23/2017 at 06:29AM

58
#10 - mnx / @mnxx

12/15/2014 at 09:58AM

64
#11 - Matt / @mcr05

12/30/2014 at 07:02PM

64
#12 - z00master / @z00master

08/26/2022 at 09:59PM

64
#13 - nickGPT / @nickandbro

08/28/2024 at 04:48AM

74
#14 - ParasamGateZero / @ParasamGateZero

01/11/2018 at 09:31PM

75
#15 - Dax / @zacoxi

11/16/2018 at 08:10AM