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 6 remaining solutions by signing in and submitting your own entry
#7 mnx / mnxx - Score: 58 - 12/15/14 @ 09:58
:so%<CR>44Gw2r j.l@w7j$r73ell@ojh@ael@ojhh@nel@t2k@mll@bj@aZZ

0 comments

#8 Matthieu Crapet / mcr05 - Score: 64 - 12/30/14 @ 19:02
20D:w|so%<CR>u/N<CR>2r j.l@w7j7<C-A>3+ll@alk@ojj@nkll@olkl@mll@bj@ajhh@tZZ

0 comments

Created by: mcr05

8 active golfers, 20 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

52
#3 - Petro Тrouq / zulolosi

12/20/2014 at 01:29PM

53
#4 - Jon Krause / jkrause314

01/25/2016 at 01:44AM

53
#5 - elmoloves / ElmoLovesSilly

09/17/2017 at 07:29PM

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

01/11/2015 at 04:01AM

58
#7 - mnx / mnxx

12/15/2014 at 09:58AM

64
#8 - Matthieu Crapet / mcr05

12/30/2014 at 07:02PM