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


#70 Paul McDowell / @191_paul - Score: 53 - 05/11/21 @ 22:19
:%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

70 active golfers, 335 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 - Filipe Brandenburger / @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

23
#9 - Grant / @grant_7788

04/30/2019 at 03:18PM

23
#10 - eric huang / @EricGodhand4826

05/05/2019 at 09:45AM

23
#11 - Miłosz Łakomy / @foobar01123

08/03/2019 at 11:40AM

23
#12 - Viktor Styrud / @ViktorStyrud

10/16/2019 at 12:26PM

23
#13 - Mario Olofo / @mario_olofo

10/24/2019 at 03:28AM

23
#14 - Jianfeng / @Jianfen22425058

02/01/2021 at 07:29AM

23
#15 - Jung Yeon Park / @park_jungy

02/06/2021 at 11:54PM

23
#16 - hepebexè / @hepebexe

02/14/2021 at 09:28PM

23
#17 - pikjes / @pikjes2

03/21/2021 at 07:39PM

23
#18 - Janzen / @__Coos

10/05/2022 at 06:04PM

23
#19 - someone / @IKvacenok

06/16/2023 at 11:09AM

23
#20 - Peppa Pig / @PeppaPigSg

07/01/2024 at 03:05AM

24
#21 - Mihai / @mihaicristiant

11/26/2018 at 12:52PM

24
#22 - churaki / @churaki

01/31/2019 at 11:59AM

24
#23 - Roger Stoltz / @rogsto1

03/07/2019 at 08:14PM

25
#24 - Saki Gw / @Sakigw

11/19/2018 at 03:03PM

25
#25 - rye bread / @theryangeary

11/23/2018 at 05:55PM

25
#26 - abgalphabet / @abgalphabet

01/22/2019 at 01:21PM

25
#27 - 默罕默德 / @Rt6RjEAJ987Woes

02/20/2019 at 04:03AM

25
#28 - ow / @ow34480012

04/29/2019 at 11:52AM

25
#29 - MonkieeBoi / @MonkieeBoi

02/09/2024 at 10:30AM

26
#30 - Adam Hartz / @awareofnow

03/10/2020 at 01:52AM