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 50ed6ac0c0e3aa0002000003

Coordinates placeholder

Place coordinates instead of target search.

Start file
test bla test test
test test
End file
1,1
10,1
15,1
1,2
6,2

View Diff

1,2c1,5
< test bla test test
< test test
---
> 1,1
> 10,1
> 15,1
> 1,2
> 6,2

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 40 remaining solutions by signing in and submitting your own entry
#41 Asmund / @herrasbe - Score: 56 - 01/09/13 @ 20:44
j$qq?\<t<CR>ce<C-R>=getpos('.')<CR><BS><Esc>q4@q:g/^0/d<CR>qqkJxDPa,<Esc>kq4@qZZ

@Asmund_L: Not very short, but it was fun to use getpos()

@runarfu: Amazing! Maybe it could be a winner if @uzver submitted a much larger problem instance?

2 comments


Created by: @uzver

41 active golfers, 78 entries

Leaderboard (lowest score wins):
26
#31 - TimWolla / @TimWolla

06/09/2014 at 09:34PM

26
#32 - Cristian Lupașcu / @clupasq

03/24/2016 at 12:26PM

26
#33 - 于吉星 / @fishermryn

08/24/2020 at 09:29AM

26
#34 - thomasyang18 / @thomasyang18

05/16/2025 at 01:59AM

26
#35 - Breemskin / @Breemskin

07/25/2025 at 09:10PM

27
#36 - Niil Öhlin / @Niil94

03/04/2013 at 09:21PM

27
#37 - Mr_Djez / @DjezMr

08/18/2019 at 05:10AM

28
#38 - Olivier Bégassat / @zk_evm

06/15/2023 at 06:04PM

28
#39 - Karan / @KaranVaity

05/18/2025 at 06:41AM

51
#40 - Matt / @mcr05

11/25/2014 at 11:38AM

56
#41 - Asmund / @herrasbe

01/09/2013 at 08:44PM