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 543e53c037ba3a00022b3ec7

Winding path

It's a maze, but the bad paths have been blocked off. Mark the correct path.

Start file
|||||x|||||||
|   |   |   |
| | ||| | | |
| | | | | | |
| | | | | | |
| |   |   | |
||||||||||| |
|       |   |
| ||||| | |||
| |   |   | |
| ||||||||| |
|       |   |
|||||||x|||||
End file
|||||x|||||||
|   |xxx|xxx|
| | |||x|x|x|
| | | |x|x|x|
| | | |x|x|x|
| |   |xxx|x|
|||||||||||x|
|xxxxxxx|xxx|
|x|||||x|x|||
|x|   |xxx| |
|x||||||||| |
|xxxxxxx|   |
|||||||x|||||

View Diff

2,12c2,12
< |   |   |   |
< | | ||| | | |
< | | | | | | |
< | | | | | | |
< | |   |   | |
< ||||||||||| |
< |       |   |
< | ||||| | |||
< | |   |   | |
< | ||||||||| |
< |       |   |
---
> |   |xxx|xxx|
> | | |||x|x|x|
> | | | |x|x|x|
> | | | |x|x|x|
> | |   |xxx|x|
> |||||||||||x|
> |xxxxxxx|xxx|
> |x|||||x|x|||
> |x|   |xxx| |
> |x||||||||| |
> |xxxxxxx|   |

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 29 remaining solutions by signing in and submitting your own entry
#30 Andy Zhang / andyzg3 - Score: 67 - 10/23/14 @ 03:18
:%s/ /x/g<CR>2k3l3r 6l<C-V>jjr 2h2j2r ^6kl<C-V>kk2kr l2r <C-V>4jr 2j2l<C-V>jjr h2jr ZZ

0 comments

#31 Mattias Fransson / azzidoos - Score: 82 - 10/16/14 @ 17:31
:%s/ /x/g<CR>$hvhhr khhhhhhk.kkkk.kr k.k.k.h.h.j.j.j.j.llllk.k.jjjjjjjllllll. kjhk.ZZ

0 comments

#32 Aaron Lebahn / cplusplus - Score: 90 - 10/17/14 @ 23:54
fxj3rx<C-V>4jrx4j3rx<C-V>4krx3rx<C-V>6jrx6j<C-V>T|rx<C-V>2jrx2j2h2rxh<C-V>2krx<C-V>T|rx<C-V>4j4xu<C-V>jjjjrx4jr6xu6rxlxix<Esc>:wq<CR>

0 comments

#33 Wade / vvandy - Score: 96 - 12/17/14 @ 22:16
jwlRx<Esc>l.l.j.j.j.j.l.l.k.k.k.k.l.l.j.j.j.j.j.j.h.h.j.j.h.h.k.k.h.h.h.h.h.h.j.j.j.j.l.l.l.l.l.l.ZZ

0 comments

#34 Nic West / west_nic - Score: 113 - 10/15/14 @ 14:30
/|\s\+<CR>nqqlvt|rxqn@Qnnn@@n@@n@@n@@<Esc>unnn@@n@@@nn@@2@@@@@@@qnnnn@qn@Qn@Qnnn@qn@Qn@qn@qn@qn@qn@qn@qn@qnn@qnn@qnn@qZZ

0 comments

#35 Tom Schultz / tom_schultz - Score: 115 - 10/17/14 @ 17:40
llllljRxxx<Esc>jRx<Down><Left>x<Down><Left>x<Down><Left>xxx<Up><Left>x<Up><Left>x<Up><Left>x<Up><Left>xxx<Down><Left>x<Down><Left>x<Down><Left>x<Down><Left>x<Down><Left>x<Down><Left>x<Left><Left>x<Left><Left>x<Esc>jrxj.h.h.k.k.h.h.h.h.h.h.j.j.j.j.l.l.l.l.l.l.:w<CR>:q<CR>

0 comments

#36 Sabiki94@ブルスクの人 / _jptomoya - Score: 148 - 10/17/14 @ 12:34
jlllllvlllrxur<Esc>vlllrxur<Esc><Esc>vllrxllll.jjjjhh.jjll.jjhhkkhhhhhh.lll.jjjjhhh.lll.hhhk<C-V>kkkrxllllkkll.ukkkk.ll.ll.jjjjklh.jjjjjjhhhjhrxkkkkrxj.j.l.l.k.:wq<CR>

0 comments

#37 Diana Calvache / zephynao - Score: 216 - 10/15/14 @ 15:21
jlllllrxlrxlrxjrxkhhkjvllyjjjjllphhhxlllxxkkkjjhhkkhjrxjrxllrxkrxkrxkrl<Esc>rxlrxlrxjrlrxjrxjrxjrxjrxjxxuurxhrxhrxhr<Esc>jlrxjrxhrxhrxkrxkrxhrxhrxhrxhrxhrxhrxjrxjrxjrxjrxlrlrxlrxrlrxlrxr<Esc>lrxlrxlrxjj<CR>kjrxkkkkkkkkkkkkkkkkk:wq<CR>

0 comments

Created by: udioica

37 active golfers, 81 entries

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

10/16/2014 at 03:12PM

27
#2 - John Braxler / braxler

10/16/2014 at 03:43PM

27
#3 - Kerson Hsiao / KersonHsiao

10/18/2014 at 05:13AM

27
#4 - Petro Тrouq / zulolosi

10/18/2014 at 07:45AM

27
#5 - Johannes H. / neVexa

10/28/2014 at 04:08PM

27
#6 - ———đίxίє—flαтlίиє——— / _dixie_flatline

11/02/2014 at 08:12PM

30
#7 - Hans Liu / zhansliu

10/16/2014 at 05:14PM

39
#8 - Matthieu Crapet / mcr05

07/14/2015 at 08:50AM

40
#9 - Tim Chase / gumnos

10/16/2014 at 02:06AM

40
#10 - pftb12345 / pftb12345

04/12/2015 at 10:02AM

41
#11 - E Both / enboth

10/16/2014 at 09:00AM

42
#12 - Smylers / Smylers2

10/15/2014 at 08:30PM

42
#13 - John Meisner / jmeisned

10/15/2014 at 10:39PM

44
#14 - Carlos A Henríquez Q / lagunex

01/17/2015 at 10:34PM

45
#15 - Carlos López / morrizon

10/18/2014 at 04:38PM

46
#16 - Caek / Caek_

10/16/2014 at 04:02AM

46
#17 - Amer / amerlyq

10/16/2014 at 11:50AM

49
#18 - mnx / mnxx

10/15/2014 at 01:46PM

50
#19 - Jakob / jajob

10/20/2014 at 07:11PM

51
#20 - Ram Tamtam / ramtamtamtam

10/16/2014 at 08:08AM

51
#21 - Garrett Openshaw / gopenshaw

10/18/2014 at 08:50PM

52
#22 - Moritz / mollitz

10/26/2014 at 01:28AM

55
#23 - eBrnd / eBrnd

11/02/2014 at 01:12PM

56
#24 - Aaron Whittington / whittaaron

01/16/2015 at 12:40PM

58
#25 - Marcin Radomski / _dextero

10/17/2014 at 02:21PM

60
#26 - Walker Boh / walker_boh

12/15/2015 at 12:01PM

61
#27 - Amit Verma / amitv12

10/16/2014 at 01:16AM

65
#28 - James / Dronak

10/16/2014 at 01:01AM

67
#29 - Vincent Yu / vyuniverse

10/15/2014 at 07:51PM

67
#30 - Andy Zhang / andyzg3

10/23/2014 at 03:18AM

82
#31 - Mattias Fransson / azzidoos

10/16/2014 at 05:31PM

90
#32 - Aaron Lebahn / cplusplus

10/17/2014 at 11:54PM

96
#33 - Wade / vvandy

12/17/2014 at 10:16PM

113
#34 - Nic West / west_nic

10/15/2014 at 02:30PM

115
#35 - Tom Schultz / tom_schultz

10/17/2014 at 05:40PM

148
#36 - Sabiki94@ブルスクの人 / _jptomoya

10/17/2014 at 12:34PM

216
#37 - Diana Calvache / zephynao

10/15/2014 at 03:21PM