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 55b35f751b16ea1bc100a0e2

Maze path

Follow the given motions and mark your path with Xs. Attention: This maze is quite big (20x20), please set your terminal size to at least 82.

Start file
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8   8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
8               8   8                       8       8                   8       8
8   8aaaaaaa8   8   8   8aaa8   8aaaaaaa8   8   8   8aaa8   8   8aaa8   8aaa8   8
8   8       8   8       8       8       8       8           8       8           8
8   8aaa8   8   8aaaaaaa8   8aaa8   8   8aaaaaaa8   8aaaaaaaaaaa8   8   8aaaaaaa8
8       8   8   8                   8   8           8               8   8       8
8aaa8   8   8   8   8aaa8   8aaaaaaa8   8aaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8
8   8   8   8       8   8       8   8       8                               8   8
8   8   8   8aaaaaaa8   8aaa8   8   8aaa8   8aaaaaaaaaaa8   8aaaaaaaaaaaaaaa8   8
8       8       8       8           8       8               8               8   8
8   8aaaaaaa8   8   8aaaaaaa8   8aaa8   8aaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8
8   8       8   8   8               8   8   8   8               8       8       8
8   8   8   8   8   8aaaaaaaaaaaaaaa8   8   8   8   8aaaaaaa8   8   8   8aaaaaaa8
8   8   8   8           8   8       8   8   8   8           8       8           8
8   8   8   8aaaaaaa8   8   8   8   8   8   8   8aaaaaaaaaaaaaaa8   8aaaaaaa8   8
8   8   8                   8   8       8   8                       8           8
8   8aaaaaaaaaaa8   8   8aaa8   8aaaaaaa8   8aaaaaaa8   8aaaaaaaaaaa8   8aaaaaaa8
8               8   8       8   8                       8               8       8
8aaa8   8aaa8   8   8aaaaaaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8aaaaaaa8   8   8
8   8       8       8       8               8               8   8       8   8   8
8   8   8   8aaaaaaa8   8   8aaaaaaaaaaa8   8   8aaaaaaaaaaa8   8   8   8   8   8
8       8               8   8           8   8       8       8   8   8       8   8
8   8aaaaaaaaaaaaaaaaaaa8   8   8aaaaaaa8   8   8aaa8   8   8   8   8aaa8   8   8
8   8               8   8   8       8       8   8       8       8       8   8   8
8aaa8   8aaaaaaaaaaa8   8aaaaaaa8   8   8aaa8   8   8aaaaaaaaaaaaaaaaaaa8   8   8
8       8           8               8   8       8   8                       8   8
8   8   8   8aaa8   8aaa8   8aaa8   8   8   8aaa8   8   8aaaaaaaaaaaaaaaaaaa8   8
8   8   8       8           8       8   8   8       8       8       8       8   8
8   8   8aaa8   8aaaaaaaaaaaaaaa8   8   8   8   8   8aaa8   8   8aaa8   8   8   8
8   8           8       8           8   8   8   8       8       8       8   8   8
8   8aaaaaaaaaaaaaaa8   8aaa8   8aaa8   8   8aaaaaaa8   8aaaaaaa8   8aaa8   8   8
8       8       8       8       8   8   8   8           8               8   8   8
8   8aaa8   8   8   8aaa8   8aaa8   8   8   8   8aaaaaaa8   8aaaaaaaaaaa8   8   8
8   8       8   8           8       8   8   8               8       8           8
8   8   8aaa8   8aaa8   8aaa8   8aaa8   8aaaaaaaaaaaaaaaaaaa8   8   8   8aaaaaaa8
8       8       8       8   8       8                           8   8           8
8aaaaaaa8   8aaa8   8aaa8   8aaa8   8aaaaaaaaaaaaaaaaaaaaaaaaaaa8   8aaaaaaaaaaa8
8   8       8       8           8       8       8                   8           8
8   8   8aaa8   8   8   8aaa8   8aaa8   8   8   8   8aaa8   8aaaaaaa8   8aaa8   8
8       8       8       8               8   8       8                   8       8
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8   8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Your path:
1j8h2j4h2j8l2k4l4j4l2j4h6j4h2k4h6j12l4j4h12j24l2k4l4j16h2j4h2k4h3j

Your help (or not):
s/\v(\d)(\D+)/\=repeat(submatch(2),str2nr(submatch(1)))/g
s/./&rX/g
:s/\D/& /g
End file
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8 X 8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
8               8   8         XXXXXXXXX     8       8                   8       8
8   8aaaaaaa8   8   8   8aaa8 X 8aaaaaaa8   8   8   8aaa8   8   8aaa8   8aaa8   8
8   8       8   8       8 XXXXX 8 XXXXX 8       8           8       8           8
8   8aaa8   8   8aaaaaaa8 X 8aaa8 X 8 X 8aaaaaaa8   8aaaaaaaaaaa8   8   8aaaaaaa8
8       8   8   8         XXXXXXXXX 8 X 8           8               8   8       8
8aaa8   8   8   8   8aaa8   8aaaaaaa8 X 8aaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8
8   8   8   8       8   8       8   8 XXXXX 8                               8   8
8   8   8   8aaaaaaa8   8aaa8   8   8aaa8 X 8aaaaaaaaaaa8   8aaaaaaaaaaaaaaa8   8
8       8       8       8           8 XXXXX 8               8               8   8
8   8aaaaaaa8   8   8aaaaaaa8   8aaa8 X 8aaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8
8   8       8   8   8               8 X 8   8   8               8       8       8
8   8   8   8   8   8aaaaaaaaaaaaaaa8 X 8   8   8   8aaaaaaa8   8   8   8aaaaaaa8
8   8   8   8           8   8 XXXXX 8 X 8   8   8           8       8           8
8   8   8   8aaaaaaa8   8   8 X 8 X 8 X 8   8   8aaaaaaaaaaaaaaa8   8aaaaaaa8   8
8   8   8                   8 X 8 XXXXX 8   8                       8           8
8   8aaaaaaaaaaa8   8   8aaa8 X 8aaaaaaa8   8aaaaaaa8   8aaaaaaaaaaa8   8aaaaaaa8
8               8   8       8 X 8                       8               8       8
8aaa8   8aaa8   8   8aaaaaaa8 X 8aaaaaaaaaaaaaaaaaaaaaaa8   8   8aaaaaaa8   8   8
8   8       8       8       8 XXXXXXXXXXXXX 8               8   8       8   8   8
8   8   8   8aaaaaaa8   8   8aaaaaaaaaaa8 X 8   8aaaaaaaaaaa8   8   8   8   8   8
8       8               8   8           8 X 8       8       8   8   8       8   8
8   8aaaaaaaaaaaaaaaaaaa8   8   8aaaaaaa8 X 8   8aaa8   8   8   8   8aaa8   8   8
8   8               8   8   8       8 XXXXX 8   8       8       8       8   8   8
8aaa8   8aaaaaaaaaaa8   8aaaaaaa8   8 X 8aaa8   8   8aaaaaaaaaaaaaaaaaaa8   8   8
8       8           8               8 X 8       8   8                       8   8
8   8   8   8aaa8   8aaa8   8aaa8   8 X 8   8aaa8   8   8aaaaaaaaaaaaaaaaaaa8   8
8   8   8       8           8       8 X 8   8       8       8       8       8   8
8   8   8aaa8   8aaaaaaaaaaaaaaa8   8 X 8   8   8   8aaa8   8   8aaa8   8   8   8
8   8           8       8           8 X 8   8   8       8       8       8   8   8
8   8aaaaaaaaaaaaaaa8   8aaa8   8aaa8 X 8   8aaaaaaa8   8aaaaaaa8   8aaa8   8   8
8       8       8       8       8   8 X 8   8           8               8   8   8
8   8aaa8   8   8   8aaa8   8aaa8   8 X 8   8   8aaaaaaa8   8aaaaaaaaaaa8   8   8
8   8       8   8           8       8 X 8   8               8 XXXXX 8           8
8   8   8aaa8   8aaa8   8aaa8   8aaa8 X 8aaaaaaaaaaaaaaaaaaa8 X 8 X 8   8aaaaaaa8
8       8       8       8   8       8 XXXXXXXXXXXXXXXXXXXXXXXXX 8 X 8           8
8aaaaaaa8   8aaa8   8aaa8   8aaa8   8aaaaaaaaaaaaaaaaaaaaaaaaaaa8 X 8aaaaaaaaaaa8
8   8       8       8           8       8 XXXXX 8 XXXXXXXXXXXXXXXXX 8           8
8   8   8aaa8   8   8   8aaa8   8aaa8   8 X 8 X 8 X 8aaa8   8aaaaaaa8   8aaa8   8
8       8       8       8               8 X 8 XXXXX 8                   8       8
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8 X 8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Your path:
1j8h2j4h2j8l2k4l4j4l2j4h6j4h2k4h6j12l4j4h12j24l2k4l4j16h2j4h2k4h3j

Your help (or not):
s/\v(\d)(\D+)/\=repeat(submatch(2),str2nr(submatch(1)))/g
s/./&rX/g
:s/\D/& /g

View Diff

1,41c1,41
< aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8   8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
< 8               8   8                       8       8                   8       8
< 8   8aaaaaaa8   8   8   8aaa8   8aaaaaaa8   8   8   8aaa8   8   8aaa8   8aaa8   8
< 8   8       8   8       8       8       8       8           8       8           8
< 8   8aaa8   8   8aaaaaaa8   8aaa8   8   8aaaaaaa8   8aaaaaaaaaaa8   8   8aaaaaaa8
< 8       8   8   8                   8   8           8               8   8       8
< 8aaa8   8   8   8   8aaa8   8aaaaaaa8   8aaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8
< 8   8   8   8       8   8       8   8       8                               8   8
< 8   8   8   8aaaaaaa8   8aaa8   8   8aaa8   8aaaaaaaaaaa8   8aaaaaaaaaaaaaaa8   8
< 8       8       8       8           8       8               8               8   8
< 8   8aaaaaaa8   8   8aaaaaaa8   8aaa8   8aaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8
< 8   8       8   8   8               8   8   8   8               8       8       8
< 8   8   8   8   8   8aaaaaaaaaaaaaaa8   8   8   8   8aaaaaaa8   8   8   8aaaaaaa8
< 8   8   8   8           8   8       8   8   8   8           8       8           8
< 8   8   8   8aaaaaaa8   8   8   8   8   8   8   8aaaaaaaaaaaaaaa8   8aaaaaaa8   8
< 8   8   8                   8   8       8   8                       8           8
< 8   8aaaaaaaaaaa8   8   8aaa8   8aaaaaaa8   8aaaaaaa8   8aaaaaaaaaaa8   8aaaaaaa8
< 8               8   8       8   8                       8               8       8
< 8aaa8   8aaa8   8   8aaaaaaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8aaaaaaa8   8   8
< 8   8       8       8       8               8               8   8       8   8   8
< 8   8   8   8aaaaaaa8   8   8aaaaaaaaaaa8   8   8aaaaaaaaaaa8   8   8   8   8   8
< 8       8               8   8           8   8       8       8   8   8       8   8
< 8   8aaaaaaaaaaaaaaaaaaa8   8   8aaaaaaa8   8   8aaa8   8   8   8   8aaa8   8   8
< 8   8               8   8   8       8       8   8       8       8       8   8   8
< 8aaa8   8aaaaaaaaaaa8   8aaaaaaa8   8   8aaa8   8   8aaaaaaaaaaaaaaaaaaa8   8   8
< 8       8           8               8   8       8   8                       8   8
< 8   8   8   8aaa8   8aaa8   8aaa8   8   8   8aaa8   8   8aaaaaaaaaaaaaaaaaaa8   8
< 8   8   8       8           8       8   8   8       8       8       8       8   8
< 8   8   8aaa8   8aaaaaaaaaaaaaaa8   8   8   8   8   8aaa8   8   8aaa8   8   8   8
< 8   8           8       8           8   8   8   8       8       8       8   8   8
< 8   8aaaaaaaaaaaaaaa8   8aaa8   8aaa8   8   8aaaaaaa8   8aaaaaaa8   8aaa8   8   8
< 8       8       8       8       8   8   8   8           8               8   8   8
< 8   8aaa8   8   8   8aaa8   8aaa8   8   8   8   8aaaaaaa8   8aaaaaaaaaaa8   8   8
< 8   8       8   8           8       8   8   8               8       8           8
< 8   8   8aaa8   8aaa8   8aaa8   8aaa8   8aaaaaaaaaaaaaaaaaaa8   8   8   8aaaaaaa8
< 8       8       8       8   8       8                           8   8           8
< 8aaaaaaa8   8aaa8   8aaa8   8aaa8   8aaaaaaaaaaaaaaaaaaaaaaaaaaa8   8aaaaaaaaaaa8
< 8   8       8       8           8       8       8                   8           8
< 8   8   8aaa8   8   8   8aaa8   8aaa8   8   8   8   8aaa8   8aaaaaaa8   8aaa8   8
< 8       8       8       8               8   8       8                   8       8
< aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8   8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
---
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8 X 8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> 8               8   8         XXXXXXXXX     8       8                   8       8
> 8   8aaaaaaa8   8   8   8aaa8 X 8aaaaaaa8   8   8   8aaa8   8   8aaa8   8aaa8   8
> 8   8       8   8       8 XXXXX 8 XXXXX 8       8           8       8           8
> 8   8aaa8   8   8aaaaaaa8 X 8aaa8 X 8 X 8aaaaaaa8   8aaaaaaaaaaa8   8   8aaaaaaa8
> 8       8   8   8         XXXXXXXXX 8 X 8           8               8   8       8
> 8aaa8   8   8   8   8aaa8   8aaaaaaa8 X 8aaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8
> 8   8   8   8       8   8       8   8 XXXXX 8                               8   8
> 8   8   8   8aaaaaaa8   8aaa8   8   8aaa8 X 8aaaaaaaaaaa8   8aaaaaaaaaaaaaaa8   8
> 8       8       8       8           8 XXXXX 8               8               8   8
> 8   8aaaaaaa8   8   8aaaaaaa8   8aaa8 X 8aaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8
> 8   8       8   8   8               8 X 8   8   8               8       8       8
> 8   8   8   8   8   8aaaaaaaaaaaaaaa8 X 8   8   8   8aaaaaaa8   8   8   8aaaaaaa8
> 8   8   8   8           8   8 XXXXX 8 X 8   8   8           8       8           8
> 8   8   8   8aaaaaaa8   8   8 X 8 X 8 X 8   8   8aaaaaaaaaaaaaaa8   8aaaaaaa8   8
> 8   8   8                   8 X 8 XXXXX 8   8                       8           8
> 8   8aaaaaaaaaaa8   8   8aaa8 X 8aaaaaaa8   8aaaaaaa8   8aaaaaaaaaaa8   8aaaaaaa8
> 8               8   8       8 X 8                       8               8       8
> 8aaa8   8aaa8   8   8aaaaaaa8 X 8aaaaaaaaaaaaaaaaaaaaaaa8   8   8aaaaaaa8   8   8
> 8   8       8       8       8 XXXXXXXXXXXXX 8               8   8       8   8   8
> 8   8   8   8aaaaaaa8   8   8aaaaaaaaaaa8 X 8   8aaaaaaaaaaa8   8   8   8   8   8
> 8       8               8   8           8 X 8       8       8   8   8       8   8
> 8   8aaaaaaaaaaaaaaaaaaa8   8   8aaaaaaa8 X 8   8aaa8   8   8   8   8aaa8   8   8
> 8   8               8   8   8       8 XXXXX 8   8       8       8       8   8   8
> 8aaa8   8aaaaaaaaaaa8   8aaaaaaa8   8 X 8aaa8   8   8aaaaaaaaaaaaaaaaaaa8   8   8
> 8       8           8               8 X 8       8   8                       8   8
> 8   8   8   8aaa8   8aaa8   8aaa8   8 X 8   8aaa8   8   8aaaaaaaaaaaaaaaaaaa8   8
> 8   8   8       8           8       8 X 8   8       8       8       8       8   8
> 8   8   8aaa8   8aaaaaaaaaaaaaaa8   8 X 8   8   8   8aaa8   8   8aaa8   8   8   8
> 8   8           8       8           8 X 8   8   8       8       8       8   8   8
> 8   8aaaaaaaaaaaaaaa8   8aaa8   8aaa8 X 8   8aaaaaaa8   8aaaaaaa8   8aaa8   8   8
> 8       8       8       8       8   8 X 8   8           8               8   8   8
> 8   8aaa8   8   8   8aaa8   8aaa8   8 X 8   8   8aaaaaaa8   8aaaaaaaaaaa8   8   8
> 8   8       8   8           8       8 X 8   8               8 XXXXX 8           8
> 8   8   8aaa8   8aaa8   8aaa8   8aaa8 X 8aaaaaaaaaaaaaaaaaaa8 X 8 X 8   8aaaaaaa8
> 8       8       8       8   8       8 XXXXXXXXXXXXXXXXXXXXXXXXX 8 X 8           8
> 8aaaaaaa8   8aaa8   8aaa8   8aaa8   8aaaaaaaaaaaaaaaaaaaaaaaaaaa8 X 8aaaaaaaaaaa8
> 8   8       8       8           8       8 XXXXX 8 XXXXXXXXXXXXXXXXX 8           8
> 8   8   8aaa8   8   8   8aaa8   8aaa8   8 X 8 X 8 X 8aaa8   8aaaaaaa8   8aaa8   8
> 8       8       8       8               8 X 8 XXXXX 8                   8       8
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8 X 8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

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 8 remaining solutions by signing in and submitting your own entry
#9 Reef / Sir_Reef - Score: 124 - 07/26/15 @ 00:31
E2ljqk<C-V>kkrXqjqhv4hrXq@hqj<C-V>2jrX2jqqf@h@jqqtvt8hrXqqy@thEq@kqu@yjqqp5@uqqiT8l@tlT8lqqb@ijqqn6@bqk@k@n@pk2@n@y@k5@uk3@bk@k4@bZZ

0 comments

#10 Quark / PuzzleQuark - Score: 326 - 07/25/15 @ 21:35
ellrXjrX8h9rXbjrXjrX4h5rXbjrXj9rXkrXkrX4rXlrXjrXjrXjrXjrX5rXjrXjrXhhhh5rXbjrXjrXjrXjrXXjuljrXj5hl5rXbkrXkrXhhhh5rXbjrXjrXjrXjrXjrXj14rXxuhx i h<Esc>dduuulr hjrXjrXjrXjrX5hlrX4rXbjrXjrXjrXjrXjrXjrXjrXjrXjrXjrXjrXjrX20rX5rXlrXkrXkrXlrXlrXlrXlrXjrXjrXjrXjrXjrkuu15hh16rXlrXbjrXjrXhrXhrXhrXhrXkrXkrXhrXhrXhrXXurXkjjrXjrXiwh <BS><BS><BS><Esc>ljrXZZ

0 comments

Created by: mcr05

10 active golfers, 19 entries

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

07/25/2015 at 02:58PM

25
#2 - Petro Тrouq / zulolosi

07/26/2015 at 03:48PM

25
#3 - John Braxler / braxler

08/04/2015 at 01:49PM

26
#4 - Mutter Mumble / muttermumble

07/25/2015 at 03:54PM

26
#5 - Joaquin Coronel / joakonumberone

02/10/2017 at 09:17PM

40
#6 - Matthieu Crapet / mcr05

07/25/2015 at 03:11PM

64
#7 - Lifepillar / lifepillar

07/26/2015 at 12:53PM

117
#8 - David Willming / wdialvmeo

07/27/2015 at 03:41AM

124
#9 - Reef / Sir_Reef

07/26/2015 at 12:31AM

326
#10 - Quark / PuzzleQuark

07/25/2015 at 09:35PM