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


#73 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

73 active golfers, 365 entries

Leaderboard (lowest score wins):
25
#31 - MonkieeBoi / @MonkieeBoi

02/09/2024 at 10:30AM

26
#32 - Adam Hartz / @awareofnow

03/10/2020 at 01:52AM

29
#33 - β€œSmylers” / @Smylers2

11/19/2018 at 09:04AM

29
#34 - Dax / @zacoxi

11/19/2018 at 10:02AM

29
#35 - Henrique Malheiro / @rike09

11/22/2018 at 12:50AM

29
#36 - PJ Frazer / @pj_frazer

11/22/2018 at 01:19AM

29
#37 - william cedervall / @Master_smily

11/22/2018 at 06:37PM

30
#38 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 10:24AM

30
#39 - Henry Ruben Fischer / @HenryRubenFisc1

03/27/2019 at 07:26PM

30
#40 - wanghbxxxx / @wanghbxxxx

04/06/2019 at 08:54AM

30
#41 - ._. / @Katharsic

11/20/2022 at 07:31PM

31
#42 - Andreas Nordahl / @andreasnordahl

11/20/2018 at 07:48PM

32
#43 - Andrey / @andreyrmg

11/19/2018 at 09:24AM

32
#44 - Ivo BlΓΆchliger / @aigledesalpes

08/05/2019 at 09:03PM

32
#45 - Oleg Skillup / @skill_up

08/24/2019 at 08:27AM

33
#46 - Paul Weaver / @UKWeaver

11/21/2018 at 07:42PM

33
#47 - Angry Dev / @AngryDev7

12/05/2018 at 07:50AM

33
#48 - Bennett / @bennettbackward

12/19/2018 at 10:36AM

33
#49 - Jean George / @JeanGeo20504212

09/06/2021 at 06:03PM

33
#50 - UdonSari / @udonsari

07/24/2026 at 11:26AM

34
#51 - tuyen / @tuyen66827418

11/23/2018 at 10:48AM

34
#52 - unclewangshushu / @shuwushu

11/29/2018 at 09:22AM

34
#53 - pankaj singh / @pankajsingh013

01/15/2019 at 10:58AM

34
#54 - Aioriya / @AioriyaDonk

10/14/2019 at 02:01AM

34
#55 - RockerZZY / @rocker_zzy

06/13/2020 at 01:05PM

35
#56 - tPenguinLTG / @tpenguinltg

11/20/2018 at 02:03AM

35
#57 - gragedratshg / @gragedratshg

09/27/2022 at 08:06PM

36
#58 - Bob_V / @Bob_V

11/24/2018 at 03:19AM

37
#59 - Tact Overflow / @muppling

11/22/2018 at 02:31PM

38
#60 - πšƒπš’πšπš˜πšžπšŠπš— πšƒπšŽπš’πšœπšœπš’πšŽπš› / @TitouanT_

03/10/2019 at 03:10AM