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 5bf26adb9a198b0009ce0a87

Simple format (2)

try again!

Start file
a==b equal to
a!=b not equal to
a>b greater than
a>=b greater than or equal to
a<b less than
a<=b less than or equal to
End file
	a == b		equal to
	a != b		not equal to
	a >  b		greater than
	a >= b		greater than or equal to
	a <  b		less than
	a <= b		less than or equal to

View Diff

1,6c1,6
< a==b equal to
< a!=b not equal to
< a>b greater than
< a>=b greater than or equal to
< a<b less than
< a<=b less than or equal to
---
> 	a == b		equal to
> 	a != b		not equal to
> 	a >  b		greater than
> 	a >= b		greater than or equal to
> 	a <  b		less than
> 	a <= b		less than or equal to

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 25 remaining solutions by signing in and submitting your own entry
#26 Jurica / @Jurica34581259 - Score: 53 - 11/19/18 @ 20:35
:%s/^/\t<CR>:%s/ /\t\t<CR>:%s/a/a /<CR>:%s/b/ b<CR>kllli <Esc>kki <Esc>ZZ

0 comments


Created by: @zacoxi

26 active golfers, 97 entries

Leaderboard (lowest score wins):
23
#1 - Jon Krause / @jkrause314

11/21/2018 at 03:55AM

23
#2 - John Braxler / @braxler

11/21/2018 at 02:01PM

23
#3 - Jonathan Cabezas / @John_Harkan

11/26/2018 at 04:39PM

23
#4 - Maas Lalani / @maaslalani

12/03/2018 at 01:45AM

24
#5 - Mihai / @mihaicristiant

11/26/2018 at 12:52PM

25
#6 - Saki Gw / @Sakigw

11/19/2018 at 03:03PM

25
#7 - tweets about snakes / @theryangeary

11/23/2018 at 05:55PM

29
#8 - Smylers / @Smylers2

11/19/2018 at 09:04AM

29
#9 - Dax / @zacoxi

11/19/2018 at 10:02AM

29
#10 - Henrique Malheiro / @rike09

11/22/2018 at 12:50AM

29
#11 - PJ Frazer / @pj_frazer

11/22/2018 at 01:19AM

29
#12 - william cedervall / @Master_smily

11/22/2018 at 06:37PM

31
#13 - Andreas Nordahl / @andreasnordahl

11/20/2018 at 07:48PM

32
#14 - Andrey / @andreyrmg

11/19/2018 at 09:24AM

33
#15 - Paul Weaver / @UKWeaver

11/21/2018 at 07:42PM

33
#16 - Angry Dev / @AngryDev7

12/05/2018 at 07:50AM

34
#17 - tuyen / @tuyen66827418

11/23/2018 at 10:48AM

34
#18 - unclewangshushu / @shuwushu

11/29/2018 at 09:22AM

35
#19 - tPenguinLTG / @tpenguinltg

11/20/2018 at 02:03AM

36
#20 - Bob_V / @Bob_V

11/24/2018 at 03:19AM

37
#21 - Tact Overflow / @muppling

11/22/2018 at 02:31PM

39
#22 - PRK / @NoMoTo

11/19/2018 at 09:04AM

39
#23 - Mauricio Ariza / @_hell_spawn

11/19/2018 at 01:49PM

39
#24 - Rossi / @mrossinek

12/06/2018 at 08:28AM

40
#25 - Paul Inc / @hiniol1982

12/07/2018 at 10:07PM

53
#26 - Jurica / @Jurica34581259

11/19/2018 at 08:35PM