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 24 remaining solutions by signing in and submitting your own entry
#25 Yann Moisan / YannMoisan - Score: 26 - 01/05/14 @ 22:22
cG1,1<CR>10,1<CR>15,1<CR>1,2<CR>6,2<Esc>ZZ

0 comments

#26 TimWolla / TimWolla - Score: 26 - 06/09/14 @ 21:34
cG1,1<CR>10,1<CR>15,1<CR>1,2<CR>6,2<Esc>ZZ

0 comments

#27 Cristian Lupașcu / clupasq - Score: 26 - 03/24/16 @ 12:26
cG1,1<CR>10,1<CR>15,1<CR>1,2<CR>6,2<Esc>ZZ

0 comments

#28 Niil Öhlin / Niil94 - Score: 27 - 03/04/13 @ 21:21
cG1,1<CR>10,1<CR>15,1<CR>1,2<CR>6,2<C-C><C-C>ZZ

0 comments

#29 Matthieu Crapet / mcr05 - Score: 51 - 11/25/14 @ 11:38
:%s/test/\=col(".").",".line(".")/g|%s/ /<C-V><CR>/g|2d|x<CR>

0 comments

#30 Asmund Liseth / Asmund_L - 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

30 active golfers, 47 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

23
#6 - Kerson Hsiao / KersonHsiao

01/10/2013 at 12:02PM

23
#7 - 無ん垢の叫び / john_ababa

01/10/2013 at 02:02PM

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

01/10/2013 at 05:57PM

23
#9 - Victor Ramirez / virako

01/22/2013 at 08:50PM

23
#10 - Kai Yuan / kentyuan

03/02/2013 at 12:30AM

23
#11 - pftb12345 / pftb12345

04/27/2015 at 08:50AM

23
#12 - mark0829 / mark0829

05/07/2015 at 02:23AM

24
#13 - Édouard M'tou / DouardM

01/09/2013 at 08:37PM

25
#14 - Runar / runarfu

01/09/2013 at 01:45PM

25
#15 - Marco Hinz / _mhinz_

01/09/2013 at 07:08PM

25
#16 - Alex Hammel / AlexJHammel

01/09/2013 at 11:01PM

25
#17 - Emile Swarts / EmileSwarts

01/13/2013 at 08:37PM

26
#18 - Pradeep Kumar / pradeep6kumar

01/11/2013 at 08:33AM

26
#19 - mnx / mnxx

01/19/2013 at 03:09AM

26
#20 - lucapette / lucapette

01/27/2013 at 07:39PM

26
#21 - Christopher Harrison / Xophmeister

01/28/2013 at 11:39AM

26
#22 - Steve Tjoa / stevetjoa

02/03/2013 at 09:03AM

26
#23 - Joel Elkins / dice_tea

03/03/2013 at 12:13AM

26
#24 - James / Dronak

09/05/2013 at 08:37PM

26
#25 - Yann Moisan / YannMoisan

01/05/2014 at 10:22PM

26
#26 - TimWolla / TimWolla

06/09/2014 at 09:34PM

26
#27 - Cristian Lupașcu / clupasq

03/24/2016 at 12:26PM

27
#28 - Niil Öhlin / Niil94

03/04/2013 at 09:21PM

51
#29 - Matthieu Crapet / mcr05

11/25/2014 at 11:38AM

56
#30 - Asmund Liseth / Asmund_L

01/09/2013 at 08:44PM