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

38 active golfers, 73 entries

Leaderboard (lowest score wins):
22
#1 - Urtica dioica / @udioica

01/09/2013 at 05:55PM

22
#2 - Tim Chase / @gumnos

01/09/2013 at 07:35PM

22
#3 - Petro Тrouq / @zulolosi

01/10/2013 at 10:47PM

22
#4 - John Braxler / @braxler

10/13/2014 at 05:46PM

22
#5 - Jon Krause / @jkrause314

10/15/2015 at 01:07AM

22
#6 - russellzhaomao / @russellzhaomao

06/06/2022 at 08:37AM

22
#7 - Peppa Pig / @PeppaPigSg

08/14/2024 at 09:57AM

22
#8 - nickGPT / @nickandbro

08/28/2024 at 06:59PM

23
#9 - Kerson Hsiao / @KersonHsiao

01/10/2013 at 12:02PM

23
#10 - じょんあば / @john_ababa

01/10/2013 at 02:02PM

23
#11 - h_east (トロッコ6個) / @h_east

01/10/2013 at 05:57PM

23
#12 - Victor Ramirez / @virako

01/22/2013 at 08:50PM

23
#13 - Kai Yuan / @kentyuan

03/02/2013 at 12:30AM

23
#14 - pftb12345 / @pftb12345

04/27/2015 at 08:50AM

23
#15 - mark0829 / @mark0829

05/07/2015 at 02:23AM

24
#16 - Édouard M'tou / @DouardM

01/09/2013 at 08:37PM

24
#17 - Paul Draghicescu / @pdragy

07/15/2018 at 05:56PM

25
#18 - Runar / @runarfu

01/09/2013 at 01:45PM

25
#19 - Marco Hinz / @_mhinz_

01/09/2013 at 07:08PM

25
#20 - ajh / @AlexJHammel

01/09/2013 at 11:01PM

25
#21 - Emile Swarts / @EmileSwarts

01/13/2013 at 08:37PM

25
#22 - Ron Holt / @ron_holt

08/19/2019 at 03:25AM

26
#23 - Pradeep Kumar 🇮🇳🇮🇳🇮🇳🇮🇱🇮🇱🇮🇱 / @pradeep6kumar

01/11/2013 at 08:33AM

26
#24 - mnx / @mnxx

01/19/2013 at 03:09AM

26
#25 - lucapette / @lucapette

01/27/2013 at 07:39PM

26
#26 - Christopher Harrison / @Xophmeister

01/28/2013 at 11:39AM

26
#27 - Steve Tjoa / @stevetjoa

02/03/2013 at 09:03AM

26
#28 - Joel Elkins / @dice_tea

03/03/2013 at 12:13AM

26
#29 - James / @Dronak

09/05/2013 at 08:37PM

26
#30 - Yann Moisan / @YannMoisan

01/05/2014 at 10:22PM