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 42 remaining solutions by signing in and submitting your own entry
#43 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

43 active golfers, 191 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

23
#5 - filbranden / @filbranden

02/17/2019 at 10:16AM

23
#6 - Turkey Man / @lvturkeyman

02/21/2019 at 02:49AM

23
#7 - james_bunch / @james_bunch

03/23/2019 at 02:38AM

23
#8 - Maximilian F. / @TheMaex

03/31/2019 at 08:52PM

24
#9 - Mihai / @mihaicristiant

11/26/2018 at 12:52PM

24
#10 - churaki / @churaki

01/31/2019 at 11:59AM

24
#11 - Roger Stoltz / @rogsto1

03/07/2019 at 08:14PM

25
#12 - Saki Gw / @Sakigw

11/19/2018 at 03:03PM

25
#13 - carly stan account / @theryangeary

11/23/2018 at 05:55PM

25
#14 - abgalphabet / @abgalphabet

01/22/2019 at 01:21PM

25
#15 - 默罕默德 / @Rt6RjEAJ987Woes

02/20/2019 at 04:03AM

29
#16 - Smylers / @Smylers2

11/19/2018 at 09:04AM

29
#17 - Dax / @zacoxi

11/19/2018 at 10:02AM

29
#18 - Henrique Malheiro / @rike09

11/22/2018 at 12:50AM

29
#19 - PJ Frazer / @pj_frazer

11/22/2018 at 01:19AM

29
#20 - william cedervall / @Master_smily

11/22/2018 at 06:37PM

30
#21 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 10:24AM

30
#22 - Henry Ruben Fischer / @HenryRubenFisc1

03/27/2019 at 07:26PM

30
#23 - wanghbxxxx / @wanghbxxxx

04/06/2019 at 08:54AM

31
#24 - Andreas Nordahl / @andreasnordahl

11/20/2018 at 07:48PM

32
#25 - Andrey / @andreyrmg

11/19/2018 at 09:24AM

33
#26 - Paul Weaver / @UKWeaver

11/21/2018 at 07:42PM

33
#27 - Angry Dev / @AngryDev7

12/05/2018 at 07:50AM

33
#28 - Bennett / @bennettbackward

12/19/2018 at 10:36AM

34
#29 - tuyen / @tuyen66827418

11/23/2018 at 10:48AM

34
#30 - unclewangshushu / @shuwushu

11/29/2018 at 09:22AM