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 4d28aef94bcd032f1c0000dc

The Universal Declaration of Human Rights, Article 1

Somebody's got this slightly muddled up. See how quickly you can fix it. (I made this to experiment with buffers. I'm not actually sure whether this is faster with buffers or without.)

Start file
All in a spirit of human beings are equal in dignity and rights.
They are born free and should act
towards one another endowed with reason and conscience and brotherhood.
End file
All human beings are born free and equal in dignity and rights.
They are endowed with reason and conscience and should act
towards one another in a spirit of brotherhood.

View Diff

1,3c1,3
< All in a spirit of human beings are equal in dignity and rights.
< They are born free and should act
< towards one another endowed with reason and conscience and brotherhood.
---
> All human beings are born free and equal in dignity and rights.
> They are endowed with reason and conscience and should act
> towards one another in a spirit of brotherhood.

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 61 remaining solutions by signing in and submitting your own entry
#62 Ben Griffiths / @beng - Score: 39 - 01/15/11 @ 21:04
Wd4w/br<CR>hp/bo<CR>d3w/eq<CR>hp/en<CR>d6w/sh<CR>hp<Esc>ZZ

0 comments


Created by: @sermoa

62 active golfers, 127 entries

Leaderboard (lowest score wins):
24
#1 - Tim Chase / @gumnos

01/08/2011 at 07:58PM

24
#2 - Douglas Stockwell / @dstockwell

01/08/2011 at 08:01PM

24
#3 - Federico Galassi / @federicogalassi

01/08/2011 at 10:51PM

24
#4 - Utkarsh Kukreti / @utkarshkukreti

01/08/2011 at 11:59PM

24
#5 - Wei Dai / @clvv42

01/09/2011 at 01:53AM

24
#6 - derp derp / @derp__

01/09/2011 at 03:14AM

24
#7 - Mattiassich Ákos / @mattiassicha

01/09/2011 at 08:42AM

24
#8 - Stephen Morrow / @yawmark

01/10/2011 at 03:31AM

24
#9 - ls lahrs / @lslah

01/17/2011 at 05:02PM

24
#10 - Ujjwol Lamichhane / @Ujjwol

02/03/2011 at 03:23AM

24
#11 - vg / @vimgolfer

03/04/2011 at 01:33PM

24
#12 - Hu Junfeng / @junfeng

07/31/2011 at 01:04PM

24
#13 - Justin Love / @wondible

08/31/2011 at 02:41PM

24
#14 - Dragan Cvetinovic / @kawkafi

11/20/2011 at 03:37PM

24
#15 - You-Siang Lin / @yslinnctu

12/01/2011 at 03:46AM

24
#16 - Renat Aksitov / @Korvin79

02/16/2012 at 01:01PM

24
#17 - Urtica dioica / @udioica

07/05/2012 at 10:34PM

24
#18 - Marco Hinz / @_mhinz_

05/28/2013 at 01:58PM

24
#19 - John Braxler / @braxler

08/25/2014 at 08:17PM

24
#20 - chaotic / @laersn

08/02/2018 at 02:44PM

25
#21 - Francisco Dibar / @frandibar

01/09/2011 at 02:11AM

25
#22 - Gavin Gilmour / @vesech

01/09/2011 at 10:24AM

25
#23 - Agus Lopez / @aguslr

01/10/2011 at 11:53PM

25
#24 -  Ikhsan Maulana / @ixandidu

01/14/2011 at 04:54PM

25
#25 - Martin Sander / @0x89

01/14/2011 at 08:53PM

25
#26 - Stanley Wang / @stanleynwang

08/25/2011 at 11:16AM

25
#27 - William Dunand / @wdunand

11/09/2011 at 10:31AM

26
#28 - aaaa3331 / @aaaa3331

01/08/2011 at 09:46PM

26
#29 - Akira Matsuda / @a_matsuda

01/09/2011 at 01:53AM

26
#30 - Paul King / @nrocy

01/09/2011 at 05:57PM